# HG changeset patch # User Dremov Kirill (Nokia-D-MSW/Tampere) # Date 1277305940 -10800 # Node ID 6b911d05207e6b1eed049d22f5f060e36e6b9a4e # Parent ba76fc04e6c263557fce0cf79c8f016c2da7b7d3 Revision: 201023 Kit: 2010125 diff -r ba76fc04e6c2 -r 6b911d05207e .hgignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,23 @@ +syntax: glob +.make.cache +Makefile +Makefile*.mk +.cproject +.project +moc_*.cpp +qrc_*.cpp +*.moc +*.bak +*.orig +*_0*.mmp +*template.pkg +*.qtplugin +plugin_commonU.def + +phoneapp/phoneui2/*.loc +phoneapp/phoneui2/*.rss +phoneapp/phoneui2/*.pkg +phoneuis/bubblemanager2/*.pkg + +syntax: regexp +^inc/.* diff -r ba76fc04e6c2 -r 6b911d05207e phone.pro --- a/phone.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phone.pro Wed Jun 23 18:12:20 2010 +0300 @@ -22,7 +22,6 @@ :BLD_INF_RULES.prj_mmpfiles += $$LITERAL_HASH"include \"group/bld.inf\"" SUBDIRS += phoneengine/phonecntfinder2 SUBDIRS += phoneengine/phoneservices -SUBDIRS += phoneengine/parserrecognizer SUBDIRS += phoneengine/phonemodel SUBDIRS += phoneengine/networkhandlingstarter SUBDIRS += phoneuis/bubblemanager2 @@ -32,8 +31,7 @@ SUBDIRS += phoneapp/phonestringloader SUBDIRS += phoneapp/phoneui2 SUBDIRS += phonesettings/cpphonesettingsplugins -#SUBDIRS += phoneplugins/hsdialerwidgetplugin +SUBDIRS += phoneplugins/hsdialerwidgetplugin SUBDIRS += phoneplugins/infowidgetplugin -SUBDIRS += phoneuis/ussdeditor } \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phone_plat/dialer_keypad_api/dialer_keypad_api.metaxml --- a/phone_plat/dialer_keypad_api/dialer_keypad_api.metaxml Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ - - -Dialer Keypad API -CVideoDTMFDialer class provides dialer keypad functionalities. - -In Video Telephony dialer offers touch keypad for enter as DTMFs -and client's CCoeControl is used to show video and keypad. -Video DTMF dialer does not implement menu or command buttons, -only keypad which presses are forwarded to host application as key events. -c++ -phoneuis - - - - -no -yes - - diff -r ba76fc04e6c2 -r 6b911d05207e phone_plat/dialer_keypad_api/group/bld.inf --- a/phone_plat/dialer_keypad_api/group/bld.inf Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -/* -* 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: File that exports the files belonging to -: Dialer keypad API -* -*/ - - -#include - -PRJ_PLATFORMS -DEFAULT - -PRJ_EXPORTS - -../inc/cvideodtmfdialer.h APP_LAYER_PLATFORM_EXPORT_PATH(cvideodtmfdialer.h) diff -r ba76fc04e6c2 -r 6b911d05207e phone_plat/dialer_keypad_api/inc/cvideodtmfdialer.h --- a/phone_plat/dialer_keypad_api/inc/cvideodtmfdialer.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,183 +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: CVideoDTMFDialer class provides dialer keypad -* functionalities -* -*/ - - - -#ifndef CVIDEODTMFDIALER_H -#define CVIDEODTMFDIALER_H - -// INCLUDES -#include -#include -// CONSTANTS - -// FORWARD DECLARATIONS -class CDialerKeyPadContainer; -class CDialerVideoContainer; -class CEikonEnv; - -// CLASS DECLARATION - -/** -* CVideoDTMFDialer class. -* -* @lib dialer.lib -* @since Series60_5.0 -* -* Description: -* -* In Video Telephony dialer offers touch keypad for enter as DTMFs -* and client's CCoeControl is used to show video and keypad. -* Video DTMF dialer does not implement menu or command buttons, -* only keypad which presses are forwarded to host application as key events. -* -* From host application dialer requires: -* - View/container as CCoeControl -* - App UI HandleCommand, DynInitMenuBar/Pane and CBA handling -* - HandleKeyEventL to handle numbers/characters from touch pane input. -* -* -* Usage: - - // Create 'video window'. - CCoeControl* videoControl = new( ELeave ) CEikLabel; - videoControl->SetBufferReserveLengthL( 10 ); - videoControl->SetTextL( _L("Video Here") ) ; - - // Create dialer. - CVideoDTMFDialer* videoDialer = CVideoDTMFDialer::NewL( *this, *videoControl, aDialerArea ); - // Delete dialer - delete dialer; - -* -*/ -NONSHARABLE_CLASS(CVideoDTMFDialer) : public CCoeControl - { - public: // Constructors and destructor - - /** - * Two phase constructor - * @param aContainer Parent container - * @param aVideoWindow Control viewing video - * @param aRect Area to use for dialer - * @return New instance or Dialer - */ - IMPORT_C static CVideoDTMFDialer* NewL( const CCoeControl& aContainer, - CCoeControl& aVideoWindow, - const TRect& aRect ); - - /** - * Destructor. - */ - IMPORT_C virtual ~CVideoDTMFDialer(); - - private: // Functions from CCoeControl - - /** - * @see CCoeControl - */ - void SizeChanged(); - - /** - * @see CCoeControl - */ - void PositionChanged(); - - /** - * @see CCoeControl - */ - TInt CountComponentControls() const; - - /** - * @see CCoeControl - */ - CCoeControl* ComponentControl( TInt aIndex ) const; - - /** - * @see CCoeControl - */ - void Draw( const TRect& aRect ) const; - - /** - * @see CCoeControl - */ - void HandleResourceChange( TInt aType ); - - /** - * @see CCoeControl - */ - void HandlePointerEventL( const TPointerEvent& aPointerEvent ); - - private: - - /** - * Constructor - */ - CVideoDTMFDialer( ); - - /** - * 2nd phase constructor. - * @param aContainer Parent container - * @param aVideoWindow Control containing the video - * @param aRect area to use for dialer - */ - void ConstructL( const CCoeControl& aContainer , - CCoeControl& aVideoWindow, - const TRect& aRect ); - - /** - * Load resource file. - */ - void LoadResourceL(); - - /** - * Unload resource file. - */ - void UnLoadResources(); - - /** - * @see CCoeControl::ComponentControl() - * @param aIndex control index - */ - CCoeControl* ComponentControlForVideoMode( const TInt aIndex ) const; - - private: // Data - - // Keypad container - owned - CDialerKeyPadContainer* iKeypadArea; - - // Video container - owned - CDialerVideoContainer* iVideoWindow; - - // Parent container - const CCoeControl* iParentControl; - - // Reference to CEikonEnv - CEikonEnv& iEikEnv; - - // Resource - TInt iResourceOffset; - - // For future use. - TBool* iReserved1; - TBool* iReserved2; - }; - -#endif // CVIDEODTMFDIALER_H - -// End of File diff -r ba76fc04e6c2 -r 6b911d05207e phone_plat/group/bld.inf --- a/phone_plat/group/bld.inf Fri Jun 04 10:19:18 2010 +0100 +++ b/phone_plat/group/bld.inf Wed Jun 23 18:12:20 2010 +0300 @@ -25,8 +25,6 @@ #include "../telephony_video_mailbox_settings_api/group/bld.inf" //#include "../telephony_configuration_api/group/bld.inf" -//#include "../dialer_keypad_api/group/bld.inf" -//#include "../telephony_bubble_extension_api/group/bld.inf" #include "../telephony_menu_extension_api/group/bld.inf" #include "../telephony_microphone_mute_status_api/group/bld.inf" diff -r ba76fc04e6c2 -r 6b911d05207e phone_plat/phone_application_commands_api/inc/phoneappcommands.hrh --- a/phone_plat/phone_application_commands_api/inc/phoneappcommands.hrh Fri Jun 04 10:19:18 2010 +0100 +++ b/phone_plat/phone_application_commands_api/inc/phoneappcommands.hrh Wed Jun 23 18:12:20 2010 +0300 @@ -73,7 +73,6 @@ EPhoneNumberAcqCmdAddToName, EPhoneNumberAcqCmdCall, EPhoneNumberAcqCmdVideoCall, - EPhoneNumberAcqCmdSpeedDial, EPhoneNumberAcqCmdSendCommand, EPhoneNumberAcqCmdSendMessage, EPhoneNumberAcqCmdHashCheck, // NOT IN MENU. @@ -183,7 +182,6 @@ // DTMF specific EPhoneCmdDtmfSearch, EPhoneCmdDtmfOk, - EPhoneCmdDtmfSpeedDialOk, EPhoneInCallCmdDtmfListViewSearch, // other commands EPhoneCmdWaitNoteOk, @@ -209,7 +207,6 @@ EPhoneDialerCmdClear, EPhoneDialerCallHandling, EPhoneDialerCmdTouchInput, - EPhoneDialerCmdSpeedDial, EPhoneDialerCmdEditText, EPhoneDialerCallSettings, EPhoneDtmfDialerCancel, diff -r ba76fc04e6c2 -r 6b911d05207e phone_plat/phone_application_commands_api/inc/xqphoneappcommands.h --- a/phone_plat/phone_application_commands_api/inc/xqphoneappcommands.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phone_plat/phone_application_commands_api/inc/xqphoneappcommands.h Wed Jun 23 18:12:20 2010 +0300 @@ -37,7 +37,7 @@ }; // PUSH BUTTON COMMANDS -enum PhonePushButtonCommands +enum PhoneButtonCommands { // Push button commands for incall PhoneInCallCmdJoinToConference = PhoneMenuCmdLast, @@ -50,8 +50,16 @@ PhoneInCallCmdEndOutgoingCall, PhoneInCallCmdReplace, PhoneInCallCmdSwap, + PhoneCallComingCmdSoftReject, + PhoneCallComingCmdSilent, + PhoneInCallCmdOpenDialer, + PhoneInCallCmdMute, + PhoneInCallCmdUnmute, + PhoneInCallCmdActivateIhf, + PhoneInCallCmdDeactivateIhf, + PhoneInCallCmdOpenContacts, - PhonePushButtonCmdLast + PhoneButtonCmdLast }; #endif diff -r ba76fc04e6c2 -r 6b911d05207e phone_plat/phone_application_commands_api/phone_application_commands_api.metaxml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phone_plat/phone_application_commands_api/phone_application_commands_api.metaxml Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,13 @@ + + + phone_application_commands_api + List of phoneapp UI commands. This API is related to telephony_menu_extension_api. + c++ + phoneapp + + + + no + no + + diff -r ba76fc04e6c2 -r 6b911d05207e phone_plat/phone_application_voip_commands_api/phone_application_voip_commands_api.metaxml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phone_plat/phone_application_voip_commands_api/phone_application_voip_commands_api.metaxml Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,13 @@ + + + phone_application_voip_commands_api + List of phoneapp VoIP related UI commands. This API is related to telephony_menu_extension_api. + c++ + phoneapp + + + + no + no + + diff -r ba76fc04e6c2 -r 6b911d05207e phone_plat/telephony_bubble_extension_api/group/bld.inf --- a/phone_plat/telephony_bubble_extension_api/group/bld.inf Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -/* -* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: File that exports the files belonging to -: bubble extension API -* -*/ - - -#include - -PRJ_PLATFORMS -DEFAULT - -PRJ_EXPORTS -../inc/telbubbleanim.h APP_LAYER_PLATFORM_EXPORT_PATH(telbubbleanim.h) -../inc/telbubblecustomelement.h APP_LAYER_PLATFORM_EXPORT_PATH(telbubblecustomelement.h) -../inc/telbubbleimage.h APP_LAYER_PLATFORM_EXPORT_PATH(telbubbleimage.h) -../inc/telbubblelabel.h APP_LAYER_PLATFORM_EXPORT_PATH(telbubblelabel.h) -../inc/telbubblecallimage.h APP_LAYER_PLATFORM_EXPORT_PATH(telbubblecallimage.h) - -../inc/telbubbleextension.h APP_LAYER_PLATFORM_EXPORT_PATH(telbubbleextension.h) -../inc/telbubbleextension.inl APP_LAYER_PLATFORM_EXPORT_PATH(telbubbleextension.inl) -../inc/telbubbleextensionobserver.h APP_LAYER_PLATFORM_EXPORT_PATH(telbubbleextensionobserver.h) -../inc/telbubbleextensioninterface.h APP_LAYER_PLATFORM_EXPORT_PATH(telbubbleextensioninterface.h) -../inc/telbubbleextensiondata.h APP_LAYER_PLATFORM_EXPORT_PATH(telbubbleextensiondata.h) - diff -r ba76fc04e6c2 -r 6b911d05207e phone_plat/telephony_bubble_extension_api/inc/telbubbleanim.h --- a/phone_plat/telephony_bubble_extension_api/inc/telbubbleanim.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,103 +0,0 @@ -/* -* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: Extension control for window server animation. -* -*/ - - - -#ifndef TELBUBBLEANIM_H -#define TELBUBBLEANIM_H - -#include - -class CAknBitmapAnimation; -class CBitmapAnimClientData; -class CEikImage; - -/** - * Extension control for window server animation. - * - * - * @lib BMCustomization.lib - * @since S60 v5.0 - */ -class CTelBubbleAnim : public CCoeControl - { -public: - /** - * Two phased constructor. - * @param aFrameInterval Sets time between showed frames. - * Frames are played in cycle mode. - */ - IMPORT_C static CTelBubbleAnim* NewL( TInt aFrameInterval ); - - /** destructor */ - IMPORT_C virtual ~CTelBubbleAnim(); - -public: - /** Starts animation - this is called from BubbleManager */ - IMPORT_C void StartAnimationL(); - - /** Stop animation */ - IMPORT_C void StopAnimation(); - - /** - * Adds frame to animation. - * @param aFrame Frame to be added. Parameter is deleted before - * returning. Ownership of bitmaps transferred. - */ - IMPORT_C void AddFrameToAnimationLD( CEikImage* aFrame ) const; - - /** - * Adds frame to animation. - * @param aFrame Frame to be added. - * Ownership of bitmaps not transferred. - */ - IMPORT_C void AddFrameToAnimationL( CEikImage& aFrame ) const; - - /** - * Resets animation. Also frame array is reseted. - */ - IMPORT_C void Reset() const; - -protected: // from CCoeControl - - /** returns 0 for animation */ - IMPORT_C virtual TInt CountComponentControls() const; - - /** set container window */ - IMPORT_C virtual void SetContainerWindowL( - const CCoeControl& aContainer ); - - /** sets new size for animation */ - IMPORT_C virtual void SizeChanged(); - - /** starts animation */ - IMPORT_C virtual void Draw( const TRect& aRect ) const; - - /** handles animation visibility */ - IMPORT_C virtual void MakeVisible( TBool aVisible ); - -protected: - IMPORT_C virtual void ConstructL( TInt aFrameInterval ); - IMPORT_C CTelBubbleAnim(); - -protected: - CAknBitmapAnimation* iAnimation; // owned - }; - -#endif // TELBUBBLEANIM_H - -// end of file diff -r ba76fc04e6c2 -r 6b911d05207e phone_plat/telephony_bubble_extension_api/inc/telbubblecallimage.h --- a/phone_plat/telephony_bubble_extension_api/inc/telbubblecallimage.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,124 +0,0 @@ -/* -* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: Extension control for displaying call image. -* -*/ - - -#ifndef TELBUBBLECALLIMAGE_H -#define TELBUBBLECALLIMAGE_H - -#include - -class CFbsBitmap; - -/** - * Extension control for displaying call image. - * - * - * @lib BMCustomization.lib - * @since S60 v5.0 - */ -class CTelBubbleCallImage : public CCoeControl - { -public: - /** Two phase constructor */ - IMPORT_C static CTelBubbleCallImage* NewL(); - - /** destructor */ - IMPORT_C virtual ~CTelBubbleCallImage(); - -public: - /** - * Set call image. The bitmaps are set by Phone application, - * when it has created bitmaps from the call image. - * @param aImage Call image bitmap. - * @param aImageOwnership ETrue, if ownership is transferred. - * @param aMask Mask bitmap when exists. - * @param aMaskOwnership ETrue, if ownership is transferred. - */ - IMPORT_C void SetImage( CFbsBitmap* aImage, - TBool aImageOwnership = EFalse, - CFbsBitmap* aMask = NULL, - TBool aMaskOwnership = EFalse ); - - /** - * Set image placing area. This is set by Phone application. - * @param aRect - */ - IMPORT_C void SetImagePlacingArea( TRect& aRect ); - -protected: - /** - * Called when image is changed. - */ - IMPORT_C virtual void ImageChanged(); - - /** - * Returns pointer to image bitmap. - */ - IMPORT_C const CFbsBitmap* Image() const; - - /** - * Returns pointer to mask bitmap. - */ - IMPORT_C const CFbsBitmap* Mask() const; - - /** - * Returns ETrue if image covers this control entirely. - */ - IMPORT_C TBool IsFullScreenImage() const; - - /** - * Returns offset centering image to this control. - * For non fullscreen images this offset is relative - * to image placing area. - */ - IMPORT_C const TPoint& Offset() const; - - /** - * Returns source rect centering image to this control. - * For non-fullscreen images this offset is relative - * to image placing area. - */ - IMPORT_C const TRect& SourceRect() const; - - /** - * Returns image placing area. Can be used to position - * non-fullscreen sized images. - * @return Image placing area. - */ - IMPORT_C const TRect& ImagePlacingArea() const; - -protected: // from CCoeControl - IMPORT_C virtual void Draw( const TRect& /*aRect*/ ) const; - IMPORT_C virtual void SizeChanged(); - -protected: - IMPORT_C virtual void ConstructL(); - IMPORT_C CTelBubbleCallImage(); - -private: - TRect iSourceRect; - TPoint iOffset; - TRect iImagePlacingArea; - CFbsBitmap *iImage; - CFbsBitmap *iMask; - TBool iImageOwnership; - TBool iMaskOwnership; - }; - -#endif // TELBUBBLECALLIMAGE_H - -// end of file diff -r ba76fc04e6c2 -r 6b911d05207e phone_plat/telephony_bubble_extension_api/inc/telbubblecustomelement.h --- a/phone_plat/telephony_bubble_extension_api/inc/telbubblecustomelement.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,142 +0,0 @@ -/* -* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: Wraps extension control and binds it to UI element. -* -*/ - - -#ifndef TELBUBBLECUSTOMELEMENT_H -#define TELBUBBLECUSTOMELEMENT_H - -#include - -class CTelBubbleAnim; -class CTelBubbleLabel; -class CTelBubbleImage; -class CCoeControl; -class CTelBubbleCallImage; - -/** - * Wraps extension control and binds it to UI element. - * - * - * @lib BMCustomization.lib - * @since S60 v5.0 - * - * - * Usage: - * - * // Display custom icon in big call indicator position - * CTelBubbleImage* image = CTelBubbleImage::NewL(); - * image->SetPicture( bitmap, mask ); - * CTelBubbleCustomElement* element = - * CTelBubbleCustomElement::NewL( - * image, - * CTelBubbleCustomElement::EBigCallIndicator ); - * - */ -NONSHARABLE_CLASS( CTelBubbleCustomElement ) : public CBase - { -public: - // Customized UI element - enum TElementType - { - // Handset icon in initializing call states - EBigCallIndicator = 0, - // Number type icon ( ie. internet or video call ) - ENumberTypeIcon, - // Handset icon - ESmallCallIndicator, - // Icon in call bubble (placeholder) - EBrandImage, - // Contact or default picture in main pane - ECallImage, - // Keep this last - ECustomElementCount - }; - - // Custom control type - enum TControlType - { - // CTelBubbleImage based control - EBubbleImage, - // CTelBubbleAnim based control - EBubbleAnimation, - // CCoeControl based control - EBubbleControl, - // CTelBubbleLabel based control - EBubbleLabel, - // CTelBubbleCallImage based control - EBubbleCallImage - }; - -public: - /** - * Two phase constructor - * @param aControl Sets owned control, ownership is transferred - * @param aElement Sets place where control is shown - * @return New instance - */ - IMPORT_C static CTelBubbleCustomElement* NewL( - CCoeControl* aControl, TElementType aElement ); - IMPORT_C static CTelBubbleCustomElement* NewL( - CTelBubbleAnim* aControl, TElementType aElement ); - IMPORT_C static CTelBubbleCustomElement* NewL( - CTelBubbleLabel* aControl, TElementType aElement ); - IMPORT_C static CTelBubbleCustomElement* NewL( - CTelBubbleImage* aControl, TElementType aElement ); - IMPORT_C static CTelBubbleCustomElement* NewL( - CTelBubbleCallImage* aControl, TElementType aElement ); - - /** Destructor */ - IMPORT_C virtual ~CTelBubbleCustomElement(); - -public: - /** - * Returns custom control. - */ - IMPORT_C CCoeControl* Control() const; - - /** - * Returns control type. - */ - IMPORT_C TControlType ControlType() const; - - /** - * Return constomized UI element. - */ - IMPORT_C TElementType ElementType() const; - -private: - // C++ constructors - CTelBubbleCustomElement( CCoeControl* aControl, - TElementType aElement ); - CTelBubbleCustomElement( CTelBubbleAnim* aControl, - TElementType aElement ); - CTelBubbleCustomElement( CTelBubbleLabel* aControl, - TElementType aElement ); - CTelBubbleCustomElement( CTelBubbleImage* aControl, - TElementType aElement ); - CTelBubbleCustomElement( CTelBubbleCallImage* aControl, - TElementType aElement ); - -private: - CCoeControl* iControl; // owned - TControlType iControlType; - TElementType iElementType; - }; - -#endif // TELBUBBLECUSTOMELEMENT_H - -// end of file diff -r ba76fc04e6c2 -r 6b911d05207e phone_plat/telephony_bubble_extension_api/inc/telbubbleextension.h --- a/phone_plat/telephony_bubble_extension_api/inc/telbubbleextension.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,92 +0,0 @@ -/* -* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: Base class for extension plug-in. -* -*/ - - -#ifndef TELBUBBLEEXTENSION_H -#define TELBUBBLEEXTENSION_H - -// INCLUDES -#include -#include "telbubbleextensioninterface.h" - -// CONSTANTS -// Constants used in ECOM implementation -const TUid KTelBubbleExtensionInterfaceUid = { 0x102078F6 }; - -class MTelBubbleExtensionObserver; -class MTelBubbleExtensionData; - -class CTelBubbleExtension : public CBase, - public MTelBubbleExtensionInterface - { -public: - /** - * Two phase constructor - * - * @leave Uses Leave code KErrNotFound if implementation is not found. - * @param aImplementationUid Implementation UID of the plugin to be - * created. - */ - static CTelBubbleExtension* NewL( - TUid aImplementationUid ); - - /** Destructor */ - virtual inline ~CTelBubbleExtension(); - - /** - * Initialize plug-in. Called after NewL - * @param aBubbles Interface for bubbles - */ - virtual void InitializeL( MTelBubbleExtensionObserver& aBubbles ) = 0; - -// from MTelBubbleExtensionInterface - - /** - * Notifies that a new customizable bubble is available - * - * @param aCallData Reference to call data. - */ - virtual void StartCustomizedBubble( - MTelBubbleExtensionData& aCallData ) = 0; - - /** - * Notifies that a customizable bubble has been removed - * - * @param aCallData Reference to call data. - */ - virtual void StopCustomizedBubble( - MTelBubbleExtensionData& aCallData ) = 0; - - /** - * Indicates that currently bubble drawing is started. - * Customizing is preferred to be done during this call. - */ - virtual void BubbleUpdating() = 0; - -private: // data - - /** - * ECOM plugin instance UID. - */ - TUid iDtor_ID_Key; - }; - -#include "telbubbleextension.inl" - -#endif // TELBUBBLEEXTENSION_H - -// end of file diff -r ba76fc04e6c2 -r 6b911d05207e phone_plat/telephony_bubble_extension_api/inc/telbubbleextension.inl --- a/phone_plat/telephony_bubble_extension_api/inc/telbubbleextension.inl Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,49 +0,0 @@ -/* -* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: Inline functions for CTelBubbleExtension. -* -*/ - - -#include - -// ============================ MEMBER FUNCTIONS =============================== -// ----------------------------------------------------------------------------- -// Destructor. -// ----------------------------------------------------------------------------- -// -inline CTelBubbleExtension::~CTelBubbleExtension() - { - REComSession::DestroyedImplementation( iDtor_ID_Key ); - } - -// ----------------------------------------------------------------------------- -// Two-phased constructor. -// ----------------------------------------------------------------------------- -// -inline CTelBubbleExtension* CTelBubbleExtension::NewL( - TUid aImplementationUid ) - { - TAny* ptr( NULL ); - TInt32 keyOffset = _FOFF( CTelBubbleExtension, iDtor_ID_Key ); - ptr = REComSession::CreateImplementationL( - aImplementationUid, - keyOffset ); - - CTelBubbleExtension* plugin = - reinterpret_cast (ptr); - return plugin; - } - -// End of File diff -r ba76fc04e6c2 -r 6b911d05207e phone_plat/telephony_bubble_extension_api/inc/telbubbleextensiondata.h --- a/phone_plat/telephony_bubble_extension_api/inc/telbubbleextensiondata.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,91 +0,0 @@ -/* -* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: Interface for call data access. -* -*/ - - -#ifndef TELBUBBLEEXTENSIONDATA_H -#define TELBUBBLEEXTENSIONDATA_H - -#include - -class MTelBubbleExtensionData - { -public: - // Specifies call types - enum TCallType - { - EUninitialized = 0, - ECsVoice = 1, // Circuit switched voice call - ECsVideo = 2, // Multimedia/Video call - EPsVoice = 3 // Voice over IP call - }; - - // Specifies call states - enum TCallState - { - ENone = 0, // Default on creation - EOnHold = 1, - EDisconnected = 2, - EActive = 3, - EIncoming = 4, - EWaiting = 5, - EAlertToDisconnected = 6, - EOutgoing = 7, - EAlerting = 8, - }; - -public: - - /** - * Bubble ID this call is connected to. - * @return Bubble ID. - */ - virtual TInt BubbleId() const = 0; - - /** - * Call state information. - * @return Call state. - */ - virtual TCallState State() const = 0; - - /** - * Call type information - * @return Call type. - */ - virtual TCallType Type() const = 0; - - /** - * Call service id - * @return Call service - */ - virtual TUint32 ServiceId() const = 0; - - /** - * Contact Link related to this call. - * @return Reference to Contact Link - */ - virtual const TDesC8& ContactLink() const = 0; - - /** - * Remote party number related to this call. - * @return Reference to remote party number. - */ - virtual const TDesC& RemotePhoneNumber() const = 0; - }; - -#endif // TELBUBBLEEXTENSIONDATA_H - -// end of file diff -r ba76fc04e6c2 -r 6b911d05207e phone_plat/telephony_bubble_extension_api/inc/telbubbleextensioninterface.h --- a/phone_plat/telephony_bubble_extension_api/inc/telbubbleextensioninterface.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,71 +0,0 @@ -/* -* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: Bubble extension interface. -* -*/ - - -#ifndef TELBUBBLEEXTENSIONINTERFACE_H -#define TELBUBBLEEXTENSIONINTERFACE_H - -#include - -class MTelBubbleExtensionData; - -class MTelBubbleExtensionInterface - { -public: - - /** - * Notifies that a new customizable bubble is available. - * - * This function is called when a new bubbleheader is created. Plugin - * should initiate a new customization instance inside this method and - * store the reference to the call data. - * - * @param aCallData Reference to call data. - */ - virtual void StartCustomizedBubble( - MTelBubbleExtensionData& aCallData ) = 0; - - /** - * Notifies that a customizable bubble has been removed - * - * This function is called when a bubbleheader is going to be deleted. - * Plugin should detach all customizations related to this call and - * delete the local datas related to this call. - * - * @param aCallData Reference to call data. - */ - virtual void StopCustomizedBubble( - MTelBubbleExtensionData& aCallData ) = 0; - - /** - * Indicates that currently bubble drawing is started. - * Customizing is preferred to be done during this call. - * - * This function is called when the call bubbles are being updated. - * The call datas are updated before this function is called. Plugin should - * check whether any of the calls are changed so that change to the - * customized element is needed and make the change. Doing the - * changes during this method will prevent excess flickering and - * redraws and therefore is suggested. - */ - virtual void BubbleUpdating() = 0; - - }; - -#endif // TELBUBBLEEXTENSIONINTERFACE_H - -// end of file diff -r ba76fc04e6c2 -r 6b911d05207e phone_plat/telephony_bubble_extension_api/inc/telbubbleextensionobserver.h --- a/phone_plat/telephony_bubble_extension_api/inc/telbubbleextensionobserver.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,75 +0,0 @@ -/* -* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: Customization interface for plugins to use. -* -*/ - - -#ifndef TELBUBBLEEXTENSIONOBSERVER_H -#define TELBUBBLEEXTENSIONOBSERVER_H - -#include - -class CTelBubbleCustomElement; - -class MTelBubbleExtensionObserver - { -public: - /** - * Call this before attach, detach and replace operations, - * when doing multipe changes outside BubbleUpdating() method. - * UI is not redrawn until calling EndChanges() is called. - */ - virtual void StartChanges() = 0; - - /** - * Call this when all changes have been done and UI can be - * redrawn. - */ - virtual void EndChanges() = 0; - - /** - * Attaches element to bubble. Causes redraw. - * @param aBubbleId Bubble id - * @param aElement Element to be attached, ownership is not transferred - */ - virtual void AttachElement( - TInt aBubbleId, - CTelBubbleCustomElement* aElement ) = 0; - - /** - * Replaces element in bubble. Causes redraw. - * @param aBubbleId Bubble id - * @param aOld Element to be detached, ownership is not transferred - * @param aNew Element to be attached, ownership is not transferred - */ - virtual void ReplaceElement( - TInt aBubbleId, - CTelBubbleCustomElement* aOld, - CTelBubbleCustomElement* aNew ) = 0; - - /** - * Detaches element in bubble. Causes redraw. - * @param aBubbleId Bubble id - * @param aElement Element to be detached, ownership is not transferred - */ - virtual void DetachElement( - TInt aBubbleId, - CTelBubbleCustomElement* aElement ) = 0; - - }; - -#endif // TELBUBBLEEXTENSIONOBSERVER_H - -// end of file diff -r ba76fc04e6c2 -r 6b911d05207e phone_plat/telephony_bubble_extension_api/inc/telbubbleimage.h --- a/phone_plat/telephony_bubble_extension_api/inc/telbubbleimage.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,51 +0,0 @@ -/* -* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: Extension control for displaying an icon (static image). -* -*/ - - -#ifndef TELBUBBLEIMAGE_H -#define TELBUBBLEIMAGE_H - -#include - -/** - * Extension control for displaying an icon (static image). - * - * - * @lib BMCustomization.lib - * @since S60 v5.0 - */ -class CTelBubbleImage : public CEikImage - { -public: - /** Two phase constructor */ - IMPORT_C static CTelBubbleImage* NewL(); - - /** destructor */ - IMPORT_C virtual ~CTelBubbleImage(); - -protected: // from CCoeControl - IMPORT_C virtual void PositionChanged(); - IMPORT_C virtual void SizeChanged(); - -protected: - IMPORT_C virtual void ConstructL(); - IMPORT_C CTelBubbleImage(); - }; - -#endif // TELBUBBLEIMAGE_H - -// end of file diff -r ba76fc04e6c2 -r 6b911d05207e phone_plat/telephony_bubble_extension_api/inc/telbubblelabel.h --- a/phone_plat/telephony_bubble_extension_api/inc/telbubblelabel.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +0,0 @@ -/* -* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: Extension control for displaying text. -* -*/ - - -#ifndef TELBUBBLELABEL_H -#define TELBUBBLELABEL_H - -#include - -/** - * Extension control for displaying text. - * - * - * @lib BMCustomization.lib - * @since S60 v5.0 - */ -class CTelBubbleLabel : public CEikLabel - { -public: - }; - -#endif // TELBUBBLELABEL_H - -// end of file diff -r ba76fc04e6c2 -r 6b911d05207e phone_plat/telephony_logging_extension_api/telephony_logging_extension_api.metaxml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phone_plat/telephony_logging_extension_api/telephony_logging_extension_api.metaxml Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,13 @@ + + + telephony_logging_extension_api + This plug-in API enables manipulation of telephony event logging. + c++ + phoneengine + + + + no + no + + diff -r ba76fc04e6c2 -r 6b911d05207e phone_plat/telephony_matching_extension_api/telephony_matching_extension_api.metaxml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phone_plat/telephony_matching_extension_api/telephony_matching_extension_api.metaxml Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,13 @@ + + + telephony_matching_extension_api + This plug-in API enables manipulation of telephony contact matching. + c++ + phoneengine + + + + no + no + + diff -r ba76fc04e6c2 -r 6b911d05207e phone_plat/telephony_mediator_api/telephony_mediator_api.metaxml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phone_plat/telephony_mediator_api/telephony_mediator_api.metaxml Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,13 @@ + + + telephony_mediator_api + This mediator API can be used to: end calls, mute/unmute microphone and get call status information. + c++ + phoneapp + + + + no + no + + diff -r ba76fc04e6c2 -r 6b911d05207e phone_plat/telephony_menu_extension_api/inc/xqteluicommandextension.h --- a/phone_plat/telephony_menu_extension_api/inc/xqteluicommandextension.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phone_plat/telephony_menu_extension_api/inc/xqteluicommandextension.h Wed Jun 23 18:12:20 2010 +0300 @@ -11,14 +11,14 @@ * * Contributors: * -* Description: Defines interface for manipulating telephony call menus. +* Description: Defines interface for manipulating telephony call commands. * */ #ifndef XQTELUICOMMANDEXTENSION_H #define XQTELUICOMMANDEXTENSION_H -#include +#include #include @@ -30,7 +30,7 @@ /*! XQTelUiCommandExtension - Defines interface for manipulating telephony call menus. + Defines interface for manipulating telephony call commands. */ class DLL_EXPORT XQTelUiCommandExtension @@ -70,6 +70,21 @@ }; /*! + Capsulates Tool Bar command info. + */ + class ToolBarCommand + { + public: + + // Tool Bar command Id + int mCommandId; + + // Is command enabled + bool mIsEnabled; + + }; + + /*! \fn void modifyMenuItemList(QList &menuCmdList) Modifies menu command list. CallInfo contains current call information and @@ -96,6 +111,22 @@ virtual void modifyPushButtonCommandList(const QList &callInfo, QList &buttonCmdList) = 0; + + /*! + \fn void modifyToolBarCommandList(QList &menuCmdList) + + Modifies tool bar command list. CallInfo contains current call + information and toolBarCmdList contains current list of tool + bar commands. + Interface can remove/disable commands if the command list contains + unsupported call commands (For example if service doesn't support + conference call) or add commads which should be handled by telephony + call handling (maximum amount of tool bar commands is 4 and list + index 0 is used for right button). + */ + virtual void modifyToolBarCommandList(const QList &callInfo, + QList &toolBarCmdList) = 0; + /*! \fn void addMenuActions(QList &menuActions) diff -r ba76fc04e6c2 -r 6b911d05207e phone_plat/telephony_menu_extension_api/telephony_menu_extension_api.metaxml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phone_plat/telephony_menu_extension_api/telephony_menu_extension_api.metaxml Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,13 @@ + + + telephony_menu_extension_api + This plug-in API enables customization of phoneapp menus. + c++ + phoneapp + + + + no + no + + diff -r ba76fc04e6c2 -r 6b911d05207e phone_plat/video_telephony_control_mediator_api/video_telephony_control_mediator_api.metaxml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phone_plat/video_telephony_control_mediator_api/video_telephony_control_mediator_api.metaxml Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,13 @@ + + + video_telephony_control_mediator_api + Video telephony specific mediator service. Used by telephony to send commands to video telephony. + c++ + phoneapp + + + + no + no + + diff -r ba76fc04e6c2 -r 6b911d05207e phone_plat/video_telephony_mediator_api/video_telephony_mediator_api.metaxml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phone_plat/video_telephony_mediator_api/video_telephony_mediator_api.metaxml Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,13 @@ + + + video_telephony_mediator_api + Video telephony specific mediator service. Used by video telephony. + c++ + phoneapp + + + + no + no + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneringingtoneplayer/src/cphoneaudioplayer.cpp --- a/phoneapp/phoneringingtoneplayer/src/cphoneaudioplayer.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneringingtoneplayer/src/cphoneaudioplayer.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -997,11 +997,11 @@ TInt result( 0 ); - if ( iFormat == EFormatTone ) + if ( iFormat == EFormatTone && iTonePlayer) { result = iTonePlayer->MaxVolume() * aVolume / KMaxVolumeLevel; } - else if ( iFormat == EFormatTts ) + else if ( iFormat == EFormatTts && iTtsPlayer ) { result = iTtsPlayer->MaxVolume() * aVolume / KMaxVolumeLevel; } diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneringingtoneplayer/src/cphoneringingtone.cpp --- a/phoneapp/phoneringingtoneplayer/src/cphoneringingtone.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneringingtoneplayer/src/cphoneringingtone.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -44,6 +44,9 @@ _LIT(KVMp4, "video/mp4"); _LIT(KV3gpp2, "video/3gpp2"); +//file size limit +const TUint KPhoneToneFileSizeLimitKB = 5000; + // MACROS // ============================ MEMBER FUNCTIONS =============================== @@ -424,26 +427,8 @@ // void CPhoneRingingTone::GetMaxToneFileSize() { - __LOGMETHODSTARTEND( EPhoneControl, "CPhoneRingingtone::GetMaxToneFileSize()" ); - - TInt error(KErrNone); - iToneFileSizeLimitKB = 5000; - - if ( error != KErrNone ) - { - iToneFileSizeLimitKB = 0; - } - if ( iToneFileSizeLimitKB < 0 ) - { - iToneFileSizeLimitKB = 0; - } - - __PHONELOG2( - EBasic, - EPhoneControl, - "CPhoneRingingtonePlayer::GetMaxToneFileSize - error (%d), aMaxSizeKB(%d)", - error, - iToneFileSizeLimitKB ); + __LOGMETHODSTARTEND( EPhoneControl, "CPhoneRingingtone::GetMaxToneFileSize()" ); + iToneFileSizeLimitKB = KPhoneToneFileSizeLimitKB; } // End of File diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneringingtoneplayer/src/cphoneringingtoneplayer.cpp --- a/phoneapp/phoneringingtoneplayer/src/cphoneringingtoneplayer.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneringingtoneplayer/src/cphoneringingtoneplayer.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -23,7 +23,6 @@ #include #include #include -#include #include #include "cphoneringingtoneplayer.h" #include "cphoneaudioplayer.h" diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneui2/inc/phoneuihousehold_p.h --- a/phoneapp/phoneui2/inc/phoneuihousehold_p.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneui2/inc/phoneuihousehold_p.h Wed Jun 23 18:12:20 2010 +0300 @@ -25,7 +25,6 @@ class MPEPhoneModel; class CPhoneUIController; -class CPhoneQwertyHandler; class HbMainWindow; class PhoneUIKeyEventAdapter; class PhoneUiCommandAdapter; @@ -102,8 +101,6 @@ //Indicates whether onscreen dialer is defined TBool iOnScreenDialer; - - CPhoneQwertyHandler* iQwertyHandler; CPhoneUIController* iPhoneUIController; diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneui2/phoneui2.pro --- a/phoneapp/phoneui2/phoneui2.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneui2/phoneui2.pro Wed Jun 23 18:12:20 2010 +0300 @@ -10,7 +10,7 @@ # Nokia Corporation - initial contribution. # # Contributors: -# +# # Description: Project file for building Phoneui component # # @@ -19,7 +19,6 @@ TEMPLATE = app TARGET = phoneui CONFIG += hb svg -RESOURCES = ./phoneui2.qrc TRANSLATIONS = telephone.ts @@ -27,7 +26,7 @@ TARGET.CAPABILITY = ALL -TCB TARGET.UID3 = 0x100058B3 TARGET.VID = VID_DEFAULT - TARGET.EPOCHEAPSIZE = 0x1000 0xA00000 + TARGET.EPOCHEAPSIZE = 0x1000 0xA00000 DEFINES += FT_SYMBIAN_INTEGRATION INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE @@ -43,13 +42,17 @@ -lphoneuicontrol \ -lphoneuiqtviewadapter \ -lphoneuiqtview \ - -lFeatMgr - + -lxqserviceutil \ + -lfeatmgr \ + -lavkon \ + -lcone \ + -leikcore + BLD_INF_RULES.prj_exports += \ "$${LITERAL_HASH}include " \ "./rom/phoneui.iby CORE_APP_LAYER_IBY_EXPORT_PATH(phoneui.iby)" \ "./rom/phoneuiresources.iby LANGUAGE_APP_LAYER_IBY_EXPORT_PATH(phoneuiresources.iby)" - + RSS_RULES += "hidden = KAppIsHidden;" } @@ -58,7 +61,7 @@ ./inc/phoneuicommandadapter.h \ ./inc/phoneuihousehold.h \ ./inc/phoneuihousehold_p.h - + SOURCES += ./src/main.cpp \ ./src/phoneuikeyeventadapter.cpp \ ./src/phoneuicommandadapter.cpp \ diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneui2/phoneui2.qrc --- a/phoneapp/phoneui2/phoneui2.qrc Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ - - - themes/icons/hbdefault/scalable/qtg_mono_swap.svg - themes/icons/hbdefault/scalable/qtg_mono_call.svg - themes/icons/hbdefault/scalable/qtg_mono_reject_call.svg - themes/icons/hbdefault/scalable/qtg_mono_end_call.svg - themes/icons/hbdefault/scalable/qtg_mono_hold_call.svg - themes/icons/hbdefault/scalable/qtg_mono_join_call.svg - themes/icons/hbdefault/scalable/qtg_mono_private_call.svg - themes/icons/hbdefault/scalable/qtg_mono_drop_call.svg - themes/icons/hbdefault/scalable/qtg_mono_replace_call.svg - themes/icons/hbdefault/scalable/qtg_mono_send.svg - themes/icons/hbdefault/scalable/qtg_mono_mic_mute.svg - themes/icons/hbdefault/scalable/qtg_mono_mic_unmute.svg - themes/icons/hbdefault/scalable/qtg_mono_dialer.svg - themes/icons/hbdefault/scalable/qtg_mono_speaker.svg - themes/icons/hbdefault/scalable/qtg_mono_contacts.svg - themes/icons/hbdefault/scalable/qtg_mono_speaker_off.svg - themes/icons/hbdefault/scalable/qtg_mono_mobile.svg - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneui2/rom/phoneui.iby --- a/phoneapp/phoneui2/rom/phoneui.iby Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneui2/rom/phoneui.iby Wed Jun 23 18:12:20 2010 +0300 @@ -44,6 +44,8 @@ file=ABI_DIR\BUILD_DIR\phonemediatorcenter.dll SHARED_LIB_DIR\phonemediatorcenter.dll file=ABI_DIR\BUILD_DIR\phoneuivoipextension.dll SHARED_LIB_DIR\phoneuivoipextension.dll +data=\epoc32\data\c\resource\qt\crml\carmode.qcrml resource\qt\crml\carmode.qcrml + data=ZSYSTEM\install\phoneuivoipextension_stub.sis System\Install\phoneuivoipextension_stub.sis //data=ZSYSTEM\install\phoneui_stub.sis System\Install\phoneui_stub.sis data=ZSYSTEM\install\phoneuicontrol_stub.sis System\Install\phoneuicontrol_stub.sis diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneui2/src/main.cpp --- a/phoneapp/phoneui2/src/main.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneui2/src/main.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -19,6 +19,7 @@ #include #include #include +#include #include "hbphonemainwindow.h" @@ -27,5 +28,6 @@ { HbApplication app (argc, argv, Hb::NoSplash); HbPhoneMainWindow window; + XQServiceUtil::toBackground( true ); return app.exec (); } diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneui2/src/phoneuihousehold_p.cpp --- a/phoneapp/phoneui2/src/phoneuihousehold_p.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneui2/src/phoneuihousehold_p.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -29,7 +29,6 @@ #include "phoneconstants.h" #include "cphonelogger.h" #include "cphonepubsubproxy.h" -#include "cphoneqwertyhandler.h" #include "cphoneuicontroller.h" #include "phoneuihousehold_p.h" #include "phoneuiqtviewadapter.h" @@ -43,7 +42,7 @@ PhoneUiHouseHoldPrivate::PhoneUiHouseHoldPrivate(HbMainWindow &window) : iAppsReady (0), iStartupSignalRecoveryId (0), iLightIdleReached (EFalse), - iOnScreenDialer (EFalse), iQwertyHandler (0), iPhoneUIController (0), + iOnScreenDialer (EFalse), iPhoneUIController (0), m_window (window) { PHONE_DEBUG("phoneui - Start phoneapp"); @@ -219,7 +218,6 @@ m_window.addView (view); m_window.setCurrentView (view); m_window.scene ()->setFocusItem (view); - iQwertyHandler = CPhoneQwertyHandler::NewL(); iKeyEventAdapter = new PhoneUIKeyEventAdapter (*iPhoneUIController); iCommandAdapter = new PhoneUiCommandAdapter (*iPhoneUIController); QObject::connect(view, SIGNAL(dialpadIsAboutToClose()), iViewAdapter, SLOT(dialpadClosed())); diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneui2/src/phoneuikeyeventadapter.cpp --- a/phoneapp/phoneui2/src/phoneuikeyeventadapter.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneui2/src/phoneuikeyeventadapter.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -17,7 +17,7 @@ */ #include // must be before e32base.h so uncaught_exception gets defined -#include +#include #include "phoneuikeyeventadapter.h" #include "phoneconstants.h" diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_call.svg --- a/phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_call.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_contacts.svg --- a/phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_contacts.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_dialer.svg --- a/phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_dialer.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_drop_call.svg --- a/phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_drop_call.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_end_call.svg --- a/phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_end_call.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ - - - -]> - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_hold_call.svg --- a/phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_hold_call.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ - - - -]> - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_join_call.svg --- a/phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_join_call.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ - - - -]> - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_mic_mute.svg --- a/phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_mic_mute.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_mic_unmute.svg --- a/phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_mic_unmute.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_mobile.svg --- a/phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_mobile.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_private_call.svg --- a/phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_private_call.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_reject_call.svg --- a/phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_reject_call.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ - - - -]> - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_replace_call.svg --- a/phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_replace_call.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ - - - -]> - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_send.svg --- a/phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_send.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_speaker.svg --- a/phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_speaker.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_speaker_off.svg --- a/phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_speaker_off.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_swap.svg --- a/phoneapp/phoneui2/themes/icons/hbdefault/scalable/qtg_mono_swap.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuicontrol/bwins/phoneuicontrolu.def --- a/phoneapp/phoneuicontrol/bwins/phoneuicontrolu.def Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuicontrol/bwins/phoneuicontrolu.def Wed Jun 23 18:12:20 2010 +0300 @@ -15,18 +15,18 @@ ?PhoneNumberAvailableInPhoneEngineL@CPhoneStateInCall@@IAEXH@Z @ 14 NONAME ; void CPhoneStateInCall::PhoneNumberAvailableInPhoneEngineL(int) ?DisplayCallTerminationNoteL@CPhoneState@@IAEXXZ @ 15 NONAME ; void CPhoneState::DisplayCallTerminationNoteL(void) ??0CPhoneStateInCall@@IAE@PAVMPhoneStateMachine@@PAVMPhoneViewCommandHandle@@PAVMPhoneCustomization@@@Z @ 16 NONAME ; CPhoneStateInCall::CPhoneStateInCall(class MPhoneStateMachine *, class MPhoneViewCommandHandle *, class MPhoneCustomization *) - ?HandleNumberLongKeyPressL@CPhoneStateIdle@@IAEXXZ @ 17 NONAME ; void CPhoneStateIdle::HandleNumberLongKeyPressL(void) - ?PhoneEngine@CPhoneStateMachine@@UAEPAVMPEPhoneModel@@XZ @ 18 NONAME ; class MPEPhoneModel * CPhoneStateMachine::PhoneEngine(void) - ?OpenMenuBarL@CPhoneStateCallSetup@@MAEXXZ @ 19 NONAME ; void CPhoneStateCallSetup::OpenMenuBarL(void) - ??1CPhoneStateCallSetup@@UAE@XZ @ 20 NONAME ; CPhoneStateCallSetup::~CPhoneStateCallSetup(void) - ?HandleEnvironmentChangeL@CPhoneUIController@@UAEXH@Z @ 21 NONAME ; void CPhoneUIController::HandleEnvironmentChangeL(int) - ?SetToolbarButtonLoudspeakerEnabled@CPhoneState@@IAEXXZ @ 22 NONAME ; void CPhoneState::SetToolbarButtonLoudspeakerEnabled(void) - ?Instance@CPhoneStateHandle@@SAPAV1@XZ @ 23 NONAME ; class CPhoneStateHandle * CPhoneStateHandle::Instance(void) - ?HandleNumberEntryClearedL@CPhoneStateIdle@@MAEXXZ @ 24 NONAME ; void CPhoneStateIdle::HandleNumberEntryClearedL(void) - ?DynInitMenuPaneL@CPhoneStateIncoming@@MAEXHPAVCEikMenuPane@@@Z @ 25 NONAME ; void CPhoneStateIncoming::DynInitMenuPaneL(int, class CEikMenuPane *) - ?HandleCommandL@CPhoneState@@UAEHH@Z @ 26 NONAME ; int CPhoneState::HandleCommandL(int) - ?StartAlsLineChangeTimerL@CPhoneState@@IAEXXZ @ 27 NONAME ; void CPhoneState::StartAlsLineChangeTimerL(void) - ?IsNumberEntryVisibleL@CPhoneState@@QAEHXZ @ 28 NONAME ; int CPhoneState::IsNumberEntryVisibleL(void) + ?PhoneEngine@CPhoneStateMachine@@UAEPAVMPEPhoneModel@@XZ @ 17 NONAME ; class MPEPhoneModel * CPhoneStateMachine::PhoneEngine(void) + ?OpenMenuBarL@CPhoneStateCallSetup@@MAEXXZ @ 18 NONAME ; void CPhoneStateCallSetup::OpenMenuBarL(void) + ??1CPhoneStateCallSetup@@UAE@XZ @ 19 NONAME ; CPhoneStateCallSetup::~CPhoneStateCallSetup(void) + ?HandleEnvironmentChangeL@CPhoneUIController@@UAEXH@Z @ 20 NONAME ; void CPhoneUIController::HandleEnvironmentChangeL(int) + ?SetToolbarButtonLoudspeakerEnabled@CPhoneState@@IAEXXZ @ 21 NONAME ; void CPhoneState::SetToolbarButtonLoudspeakerEnabled(void) + ?Instance@CPhoneStateHandle@@SAPAV1@XZ @ 22 NONAME ; class CPhoneStateHandle * CPhoneStateHandle::Instance(void) + ?HandleNumberEntryClearedL@CPhoneStateIdle@@MAEXXZ @ 23 NONAME ; void CPhoneStateIdle::HandleNumberEntryClearedL(void) + ?DynInitMenuPaneL@CPhoneStateIncoming@@MAEXHPAVCEikMenuPane@@@Z @ 24 NONAME ; void CPhoneStateIncoming::DynInitMenuPaneL(int, class CEikMenuPane *) + ?HandleCommandL@CPhoneState@@UAEHH@Z @ 25 NONAME ; int CPhoneState::HandleCommandL(int) + ?StartAlsLineChangeTimerL@CPhoneState@@IAEXXZ @ 26 NONAME ; void CPhoneState::StartAlsLineChangeTimerL(void) + ?IsNumberEntryVisibleL@CPhoneState@@QAEHXZ @ 27 NONAME ; int CPhoneState::IsNumberEntryVisibleL(void) + ?DialL@CPhoneStateIdle@@MAEXABVTDesC16@@W4TPhoneNumberType@1@W4TDialInitiationMethod@1@@Z @ 28 NONAME ; void CPhoneStateIdle::DialL(class TDesC16 const &, enum CPhoneStateIdle::TPhoneNumberType, enum CPhoneStateIdle::TDialInitiationMethod) ?RetainPreviousKeylockStateL@CPhoneState@@QAEXXZ @ 29 NONAME ; void CPhoneState::RetainPreviousKeylockStateL(void) ?HandlePhoneEngineMessageL@CPhoneStateIdle@@UAEXHH@Z @ 30 NONAME ; void CPhoneStateIdle::HandlePhoneEngineMessageL(int, int) ?HandleDialingL@CPhoneStateIdle@@MAEXH@Z @ 31 NONAME ; void CPhoneStateIdle::HandleDialingL(int) @@ -42,197 +42,193 @@ ?HandleAudioPlayStoppedL@CPhoneStateIncoming@@MAEXXZ @ 41 NONAME ; void CPhoneStateIncoming::HandleAudioPlayStoppedL(void) ?HandleCenRepChangeL@CPhoneState@@UAEXABVTUid@@I@Z @ 42 NONAME ; void CPhoneState::HandleCenRepChangeL(class TUid const &, unsigned int) ?HandleLongHashL@CPhoneState@@UAEXXZ @ 43 NONAME ; void CPhoneState::HandleLongHashL(void) - ?DialL@CPhoneStateIdle@@MAEXABVTDesC16@@W4TPhoneNumberType@@W4TDialInitiationMethod@1@@Z @ 44 NONAME ; void CPhoneStateIdle::DialL(class TDesC16 const &, enum TPhoneNumberType, enum CPhoneStateIdle::TDialInitiationMethod) - ?ShowNumberBusyNoteL@CPhoneState@@IAEXXZ @ 45 NONAME ; void CPhoneState::ShowNumberBusyNoteL(void) - ?DisconnectCallL@CPhoneState@@IAEHXZ @ 46 NONAME ; int CPhoneState::DisconnectCallL(void) - ?HandleNumberEntryClearedL@CPhoneStateCallSetup@@MAEXXZ @ 47 NONAME ; void CPhoneStateCallSetup::HandleNumberEntryClearedL(void) - ?HandleIdleForegroundEventL@CPhoneStateIdle@@UAEXXZ @ 48 NONAME ; void CPhoneStateIdle::HandleIdleForegroundEventL(void) - ?HandleDisconnectingL@CPhoneState@@IAEXH@Z @ 49 NONAME ; void CPhoneState::HandleDisconnectingL(int) - ?HandleAudioMuteChangedL@CPhoneState@@IAEXXZ @ 50 NONAME ; void CPhoneState::HandleAudioMuteChangedL(void) - ?HandleKeyLockEnabled@CPhoneState@@UAEXH@Z @ 51 NONAME ; void CPhoneState::HandleKeyLockEnabled(int) - ?HandleCommandL@CPhoneStateIncoming@@UAEHH@Z @ 52 NONAME ; int CPhoneStateIncoming::HandleCommandL(int) - ?UpdateSingleActiveCallL@CPhoneState@@IAEXH@Z @ 53 NONAME ; void CPhoneState::UpdateSingleActiveCallL(int) - ?IsOnScreenDialerSupported@CPhoneState@@IBEHXZ @ 54 NONAME ; int CPhoneState::IsOnScreenDialerSupported(void) const - ?SimState@CPhoneState@@IBE?AW4TPESimState@@XZ @ 55 NONAME ; enum TPESimState CPhoneState::SimState(void) const - ?HandleKeyEventL@CPhoneStateCallSetup@@UAEXABUTKeyEvent@@W4TEventCode@@@Z @ 56 NONAME ; void CPhoneStateCallSetup::HandleKeyEventL(struct TKeyEvent const &, enum TEventCode) - ?SetupIdleScreenInBackgroundL@CPhoneState@@IAEXXZ @ 57 NONAME ; void CPhoneState::SetupIdleScreenInBackgroundL(void) - ?SendGlobalWarningNoteL@CPhoneState@@IAEXH@Z @ 58 NONAME ; void CPhoneState::SendGlobalWarningNoteL(int) - ?CompleteSatRequestL@CPhoneState@@IAEXH@Z @ 59 NONAME ; void CPhoneState::CompleteSatRequestL(int) - ?NewL@CPhoneStateStartup@@SAPAV1@PAVMPhoneStateMachine@@PAVMPhoneViewCommandHandle@@PAVMPhoneCustomization@@@Z @ 60 NONAME ; class CPhoneStateStartup * CPhoneStateStartup::NewL(class MPhoneStateMachine *, class MPhoneViewCommandHandle *, class MPhoneCustomization *) - ?LaunchNewCallQueryL@CPhoneStateInCall@@IAEXXZ @ 61 NONAME ; void CPhoneStateInCall::LaunchNewCallQueryL(void) - ?NeedToSendToBackgroundL@CPhoneState@@IBEHXZ @ 62 NONAME ; int CPhoneState::NeedToSendToBackgroundL(void) const - ?SetCallHeaderTextsForCallComingInL@CPhoneState@@IAEXHHPAVTPhoneCmdParamCallHeaderData@@@Z @ 63 NONAME ; void CPhoneState::SetCallHeaderTextsForCallComingInL(int, int, class TPhoneCmdParamCallHeaderData *) - ?IsSimOk@CPhoneState@@QAEHXZ @ 64 NONAME ; int CPhoneState::IsSimOk(void) - ?ClearNumberEntryContentCache@CPhoneState@@IAEXXZ @ 65 NONAME ; void CPhoneState::ClearNumberEntryContentCache(void) - ?HandleCommandL@CPhoneStateIdle@@UAEHH@Z @ 66 NONAME ; int CPhoneStateIdle::HandleCommandL(int) - ?ViewCommandHandle@CPhoneStateHandle@@QAEPAVMPhoneViewCommandHandle@@XZ @ 67 NONAME ; class MPhoneViewCommandHandle * CPhoneStateHandle::ViewCommandHandle(void) - ?DialMultimediaCallL@CPhoneStateIdle@@IAEXXZ @ 68 NONAME ; void CPhoneStateIdle::DialMultimediaCallL(void) - ?DisconnectOutgoingCallL@CPhoneStateInCall@@IAEXXZ @ 69 NONAME ; void CPhoneStateInCall::DisconnectOutgoingCallL(void) - ?IsKeyLockOn@CPhoneState@@MBEHXZ @ 70 NONAME ; int CPhoneState::IsKeyLockOn(void) const - ??1CPhoneStateInCall@@UAE@XZ @ 71 NONAME ; CPhoneStateInCall::~CPhoneStateInCall(void) - ?CustomizedDialerMenuResourceIdL@CPhoneState@@IAEHXZ @ 72 NONAME ; int CPhoneState::CustomizedDialerMenuResourceIdL(void) - ?ShowReconnectQueryL@CPhoneReconnectQuery@@QAEXH@Z @ 73 NONAME ; void CPhoneReconnectQuery::ShowReconnectQueryL(int) - ?UpdateSilenceButtonDimming@CPhoneState@@IAEXXZ @ 74 NONAME ; void CPhoneState::UpdateSilenceButtonDimming(void) - ?SetNumberEntryVisibilityL@CPhoneState@@IAEXH@Z @ 75 NONAME ; void CPhoneState::SetNumberEntryVisibilityL(int) - ?HandleError@CPhoneUIController@@UAEXABUTPEErrorInfo@@@Z @ 76 NONAME ; void CPhoneUIController::HandleError(struct TPEErrorInfo const &) - ?ConstructL@CPhoneStateInCall@@MAEXXZ @ 77 NONAME ; void CPhoneStateInCall::ConstructL(void) - ?OnlyHashInNumberEntryL@CPhoneStateIdle@@MAEXXZ @ 78 NONAME ; void CPhoneStateIdle::OnlyHashInNumberEntryL(void) - ?IsVideoCallRingingL@CPhoneStateInCall@@MAEHXZ @ 79 NONAME ; int CPhoneStateInCall::IsVideoCallRingingL(void) - ?HandlePhoneForegroundEventL@CPhoneStateIdle@@UAEXXZ @ 80 NONAME ; void CPhoneStateIdle::HandlePhoneForegroundEventL(void) - ?HandleHoldSwitchL@CPhoneState@@QAEXXZ @ 81 NONAME ; void CPhoneState::HandleHoldSwitchL(void) - ?CloseDtmfQueryL@CPhoneStateInCall@@IAEXXZ @ 82 NONAME ; void CPhoneStateInCall::CloseDtmfQueryL(void) - ?DynInitMenuBarL@CPhoneState@@UAEXHPAVCEikMenuBar@@@Z @ 83 NONAME ; void CPhoneState::DynInitMenuBarL(int, class CEikMenuBar *) - ?HandleDtmfKeyToneL@CPhoneStateStartup@@EAEXABUTKeyEvent@@W4TEventCode@@@Z @ 84 NONAME ; void CPhoneStateStartup::HandleDtmfKeyToneL(struct TKeyEvent const &, enum TEventCode) - ?HandleNumberEntryEdited@CPhoneState@@MAEXXZ @ 85 NONAME ; void CPhoneState::HandleNumberEntryEdited(void) - ?ShowTextQueryL@CPhoneState@@IAEXHHHPAVTDes16@@H@Z @ 86 NONAME ; void CPhoneState::ShowTextQueryL(int, int, int, class TDes16 *, int) - ?DialMultimediaCallL@CPhoneState@@IAEXXZ @ 87 NONAME ; void CPhoneState::DialMultimediaCallL(void) - ?NewL@CPhoneUIController@@SAPAV1@PAVMPhoneViewCommandHandle@@@Z @ 88 NONAME ; class CPhoneUIController * CPhoneUIController::NewL(class MPhoneViewCommandHandle *) - ?HandleCreateNumberEntryL@CPhoneStateStartup@@EAEXABUTKeyEvent@@W4TEventCode@@@Z @ 89 NONAME ; void CPhoneStateStartup::HandleCreateNumberEntryL(struct TKeyEvent const &, enum TEventCode) - ?CheckDisableHWKeysAndCallUIL@CPhoneState@@QAEXXZ @ 90 NONAME ; void CPhoneState::CheckDisableHWKeysAndCallUIL(void) - ?IsMenuBarVisibleL@CPhoneState@@UBEHXZ @ 91 NONAME ; int CPhoneState::IsMenuBarVisibleL(void) const - ?HandleErrorL@CPhoneState@@UAEXABUTPEErrorInfo@@@Z @ 92 NONAME ; void CPhoneState::HandleErrorL(struct TPEErrorInfo const &) - ?HandleCommandL@CPhoneStateCallSetup@@UAEHH@Z @ 93 NONAME ; int CPhoneStateCallSetup::HandleCommandL(int) - ?HandleAudioOutputChangedL@CPhoneState@@IAEXXZ @ 94 NONAME ; void CPhoneState::HandleAudioOutputChangedL(void) - ??1CPhoneUIController@@UAE@XZ @ 95 NONAME ; CPhoneUIController::~CPhoneUIController(void) - ?HandleKeyEventL@CPhoneState@@UAEXABUTKeyEvent@@W4TEventCode@@@Z @ 96 NONAME ; void CPhoneState::HandleKeyEventL(struct TKeyEvent const &, enum TEventCode) - ?UpdateIncomingContextMenuL@CPhoneState@@MAEXH@Z @ 97 NONAME ; void CPhoneState::UpdateIncomingContextMenuL(int) - ?OpenMenuBarL@CPhoneStateInCall@@MAEXXZ @ 98 NONAME ; void CPhoneStateInCall::OpenMenuBarL(void) - ?UpdateIncomingCbaL@CPhoneCbaManager@@QAEXH@Z @ 99 NONAME ; void CPhoneCbaManager::UpdateIncomingCbaL(int) - ?SetTouchPaneButtonDisabled@CPhoneState@@IAEXH@Z @ 100 NONAME ; void CPhoneState::SetTouchPaneButtonDisabled(int) - ?ConstructL@CPhoneStateIncoming@@MAEXXZ @ 101 NONAME ; void CPhoneStateIncoming::ConstructL(void) - ?CreatePhoneEngineL@CPhoneStateMachine@@UAEPAVMPEPhoneModel@@AAVMEngineMonitor@@@Z @ 102 NONAME ; class MPEPhoneModel * CPhoneStateMachine::CreatePhoneEngineL(class MEngineMonitor &) - ?SetTouchPaneButtons@CPhoneState@@IAEXH@Z @ 103 NONAME ; void CPhoneState::SetTouchPaneButtons(int) - ?HandleIdleForegroundEventL@CPhoneStateStartup@@UAEXXZ @ 104 NONAME ; void CPhoneStateStartup::HandleIdleForegroundEventL(void) - ?CallFromNumberEntryL@CPhoneState@@IAEXXZ @ 105 NONAME ; void CPhoneState::CallFromNumberEntryL(void) - ?UpdateCbaL@CPhoneCbaManager@@QAEXH@Z @ 106 NONAME ; void CPhoneCbaManager::UpdateCbaL(int) - ?IsVideoCall@CPhoneState@@IAEHH@Z @ 107 NONAME ; int CPhoneState::IsVideoCall(int) - ?IsSwivelClosed@CPhoneState@@QBEHXZ @ 108 NONAME ; int CPhoneState::IsSwivelClosed(void) const - ?CloseCustomizedDialerL@CPhoneState@@QAEXXZ @ 109 NONAME ; void CPhoneState::CloseCustomizedDialerL(void) - ?HandlePhoneForegroundEventL@CPhoneUIController@@UAEXXZ @ 110 NONAME ; void CPhoneUIController::HandlePhoneForegroundEventL(void) - ?CheckIfRestoreNEContentAfterDtmfDialer@CPhoneState@@IAEXXZ @ 111 NONAME ; void CPhoneState::CheckIfRestoreNEContentAfterDtmfDialer(void) - ?UpdateInCallContextMenuL@CPhoneState@@UAEXXZ @ 112 NONAME ; void CPhoneState::UpdateInCallContextMenuL(void) - ?HandleNumericKeyEventL@CPhoneState@@MAEXABUTKeyEvent@@W4TEventCode@@@Z @ 113 NONAME ; void CPhoneState::HandleNumericKeyEventL(struct TKeyEvent const &, enum TEventCode) - ?SetToolbarDimming@CPhoneState@@IAEXH@Z @ 114 NONAME ; void CPhoneState::SetToolbarDimming(int) - ?SendGlobalErrorNoteL@CPhoneState@@QAEXH@Z @ 115 NONAME ; void CPhoneState::SendGlobalErrorNoteL(int) - ?IsAutoLockOn@CPhoneState@@UBEHXZ @ 116 NONAME ; int CPhoneState::IsAutoLockOn(void) const - ?UpdateCbaL@CPhoneStateCallSetup@@MAEXH@Z @ 117 NONAME ; void CPhoneStateCallSetup::UpdateCbaL(int) - ?RestoreNumberEntryContentL@CPhoneState@@IAEXXZ @ 118 NONAME ; void CPhoneState::RestoreNumberEntryContentL(void) - ?HandleKeyEventL@CPhoneStateIdle@@UAEXABUTKeyEvent@@W4TEventCode@@@Z @ 119 NONAME ; void CPhoneStateIdle::HandleKeyEventL(struct TKeyEvent const &, enum TEventCode) - ?IsNumberEntryContentStored@CPhoneState@@IAEHXZ @ 120 NONAME ; int CPhoneState::IsNumberEntryContentStored(void) - ?IsVideoCallActiveL@CPhoneStateInCall@@MAEHXZ @ 121 NONAME ; int CPhoneStateInCall::IsVideoCallActiveL(void) - ?HandlePhoneStartupL@CPhoneStateStartup@@UAEXXZ @ 122 NONAME ; void CPhoneStateStartup::HandlePhoneStartupL(void) - ?DialVoiceCallL@CPhoneState@@IAEXXZ @ 123 NONAME ; void CPhoneState::DialVoiceCallL(void) - ?StateMachine@CPhoneStateHandle@@QAEPAVMPhoneStateMachine@@XZ @ 124 NONAME ; class MPhoneStateMachine * CPhoneStateHandle::StateMachine(void) - ?EndUiUpdate@CPhoneState@@IAEXXZ @ 125 NONAME ; void CPhoneState::EndUiUpdate(void) - ?HandleKeyPressDurationL@CPhoneStateIncoming@@UAEXW4TKeyCode@@VTTimeIntervalMicroSeconds@@@Z @ 126 NONAME ; void CPhoneStateIncoming::HandleKeyPressDurationL(enum TKeyCode, class TTimeIntervalMicroSeconds) - ?UpdateInCallCbaL@CPhoneStateInCall@@MAEXXZ @ 127 NONAME ; void CPhoneStateInCall::UpdateInCallCbaL(void) - ?EndTransEffect@CPhoneState@@QAEXXZ @ 128 NONAME ; void CPhoneState::EndTransEffect(void) - ?HandleEnvironmentChangeL@CPhoneState@@UAEXH@Z @ 129 NONAME ; void CPhoneState::HandleEnvironmentChangeL(int) - ?HandleKeyMessageL@CPhoneStateInCall@@UAEXW4TPhoneKeyEventMessages@MPhoneKeyEvents@@W4TKeyCode@@@Z @ 130 NONAME ; void CPhoneStateInCall::HandleKeyMessageL(enum MPhoneKeyEvents::TPhoneKeyEventMessages, enum TKeyCode) - ?SetRingingTonePlaybackL@CPhoneState@@IAEXH@Z @ 131 NONAME ; void CPhoneState::SetRingingTonePlaybackL(int) - ?ProcessCommandL@CPhoneState@@UAEHH@Z @ 132 NONAME ; int CPhoneState::ProcessCommandL(int) - ?BeginUiUpdateLC@CPhoneState@@IAEXXZ @ 133 NONAME ; void CPhoneState::BeginUiUpdateLC(void) - ?DecreaseAudioVolumeL@CPhoneState@@IAEXXZ @ 134 NONAME ; void CPhoneState::DecreaseAudioVolumeL(void) - ?PhoneEngineInfo@CPhoneStateMachine@@UAEPAVMPEEngineInfo@@XZ @ 135 NONAME ; class MPEEngineInfo * CPhoneStateMachine::PhoneEngineInfo(void) - ?CreateNumberEntryL@CPhoneStateInCall@@IAEXXZ @ 136 NONAME ; void CPhoneStateInCall::CreateNumberEntryL(void) - ?HandleSystemEventL@CPhoneUIController@@UAEXABVTWsEvent@@@Z @ 137 NONAME ; void CPhoneUIController::HandleSystemEventL(class TWsEvent const &) - ?DynInitMenuPaneL@CPhoneUIController@@UAEXHPAVCEikMenuPane@@@Z @ 138 NONAME ; void CPhoneUIController::DynInitMenuPaneL(int, class CEikMenuPane *) - ??0CPhoneStateStartup@@IAE@PAVMPhoneStateMachine@@PAVMPhoneViewCommandHandle@@PAVMPhoneCustomization@@@Z @ 139 NONAME ; CPhoneStateStartup::CPhoneStateStartup(class MPhoneStateMachine *, class MPhoneViewCommandHandle *, class MPhoneCustomization *) - ?GetRemoteInfoDataL@CPhoneState@@IAEXHAAVTDes16@@@Z @ 140 NONAME ; void CPhoneState::GetRemoteInfoDataL(int, class TDes16 &) - ?SetDivertIndication@CPhoneState@@UAEXH@Z @ 141 NONAME ; void CPhoneState::SetDivertIndication(int) - ?UpdateCbaL@CPhoneStateInCall@@MAEXH@Z @ 142 NONAME ; void CPhoneStateInCall::UpdateCbaL(int) - ?SetCallId@CPhoneStateMachine@@UAEXH@Z @ 143 NONAME ; void CPhoneStateMachine::SetCallId(int) - ?ProcessCommandL@CPhoneUIController@@UAEHH@Z @ 144 NONAME ; int CPhoneUIController::ProcessCommandL(int) - ?DisplayHeaderForCallComingInL@CPhoneState@@IAEXHH@Z @ 145 NONAME ; void CPhoneState::DisplayHeaderForCallComingInL(int, int) - ??0CPhoneStateIdle@@IAE@PAVMPhoneStateMachine@@PAVMPhoneViewCommandHandle@@PAVMPhoneCustomization@@@Z @ 146 NONAME ; CPhoneStateIdle::CPhoneStateIdle(class MPhoneStateMachine *, class MPhoneViewCommandHandle *, class MPhoneCustomization *) - ?SendPhoneEngineMessage@CPhoneStateMachine@@UAEXH@Z @ 147 NONAME ; void CPhoneStateMachine::SendPhoneEngineMessage(int) - ??0CPhoneStateCallSetup@@IAE@PAVMPhoneStateMachine@@PAVMPhoneViewCommandHandle@@PAVMPhoneCustomization@@@Z @ 148 NONAME ; CPhoneStateCallSetup::CPhoneStateCallSetup(class MPhoneStateMachine *, class MPhoneViewCommandHandle *, class MPhoneCustomization *) - ??0CPhoneState@@QAE@PAVMPhoneStateMachine@@PAVMPhoneViewCommandHandle@@PAVMPhoneCustomization@@@Z @ 149 NONAME ; CPhoneState::CPhoneState(class MPhoneStateMachine *, class MPhoneViewCommandHandle *, class MPhoneCustomization *) - ?HandleDtmfKeyToneL@CPhoneState@@UAEXABUTKeyEvent@@W4TEventCode@@@Z @ 150 NONAME ; void CPhoneState::HandleDtmfKeyToneL(struct TKeyEvent const &, enum TEventCode) - ?HandleKeyMessageL@CPhoneStateIdle@@UAEXW4TPhoneKeyEventMessages@MPhoneKeyEvents@@W4TKeyCode@@@Z @ 151 NONAME ; void CPhoneStateIdle::HandleKeyMessageL(enum MPhoneKeyEvents::TPhoneKeyEventMessages, enum TKeyCode) - ?HandleForegroundEventL@CPhoneUIController@@UAEXH@Z @ 152 NONAME ; void CPhoneUIController::HandleForegroundEventL(int) - ?HandleSendCommandL@CPhoneStateIdle@@MAEXXZ @ 153 NONAME ; void CPhoneStateIdle::HandleSendCommandL(void) - ?HandleCommandL@CPhoneUIController@@UAEHH@Z @ 154 NONAME ; int CPhoneUIController::HandleCommandL(int) - ?HandleCreateNumberEntryL@CPhoneState@@UAEXABUTKeyEvent@@W4TEventCode@@@Z @ 155 NONAME ; void CPhoneState::HandleCreateNumberEntryL(struct TKeyEvent const &, enum TEventCode) - ?DisableHWKeysL@CPhoneState@@QAEXXZ @ 156 NONAME ; void CPhoneState::DisableHWKeysL(void) - ?DisplayHeaderForOutgoingCallL@CPhoneState@@IAEXH@Z @ 157 NONAME ; void CPhoneState::DisplayHeaderForOutgoingCallL(int) - ?GetBlockedKeyList@CPhoneState@@UBEABV?$RArray@H@@XZ @ 158 NONAME ; class RArray const & CPhoneState::GetBlockedKeyList(void) const - ?HandlePhoneEngineMessageL@CPhoneStateInCall@@UAEXHH@Z @ 159 NONAME ; void CPhoneStateInCall::HandlePhoneEngineMessageL(int, int) - ?IsSpeedDialNumber@CPhoneStateIdle@@IBEHABVTDesC16@@@Z @ 160 NONAME ; int CPhoneStateIdle::IsSpeedDialNumber(class TDesC16 const &) const - ?IsNumberEntryUsedL@CPhoneState@@UAEHXZ @ 161 NONAME ; int CPhoneState::IsNumberEntryUsedL(void) - ?PhoneStorage@CPhoneStateMachine@@UAEPAVMPhoneStorage@@XZ @ 162 NONAME ; class MPhoneStorage * CPhoneStateMachine::PhoneStorage(void) - ??1CPhoneState@@UAE@XZ @ 163 NONAME ; CPhoneState::~CPhoneState(void) - ?HandleCreateNumberEntryL@CPhoneStateCallSetup@@MAEXABUTKeyEvent@@W4TEventCode@@@Z @ 164 NONAME ; void CPhoneStateCallSetup::HandleCreateNumberEntryL(struct TKeyEvent const &, enum TEventCode) - ?HandlePhoneEngineMessageL@CPhoneStateCallSetup@@UAEXHH@Z @ 165 NONAME ; void CPhoneStateCallSetup::HandlePhoneEngineMessageL(int, int) - ?HandlePhoneFocusLostEventL@CPhoneState@@UAEXXZ @ 166 NONAME ; void CPhoneState::HandlePhoneFocusLostEventL(void) - ??1CPhoneStateMachine@@UAE@XZ @ 167 NONAME ; CPhoneStateMachine::~CPhoneStateMachine(void) - ?HandleIdleForegroundEventL@CPhoneState@@UAEXXZ @ 168 NONAME ; void CPhoneState::HandleIdleForegroundEventL(void) - ?DynInitMenuPaneL@CPhoneState@@UAEXHPAVCEikMenuPane@@@Z @ 169 NONAME ; void CPhoneState::DynInitMenuPaneL(int, class CEikMenuPane *) - ?IsDTMFEditorVisibleL@CPhoneState@@IBEHXZ @ 170 NONAME ; int CPhoneState::IsDTMFEditorVisibleL(void) const - ?ConstructL@CPhoneStateCallSetup@@MAEXXZ @ 171 NONAME ; void CPhoneStateCallSetup::ConstructL(void) - ?BeginTransEffectLC@CPhoneState@@QAEXW4TStateTransEffectType@@@Z @ 172 NONAME ; void CPhoneState::BeginTransEffectLC(enum TStateTransEffectType) - ?HandleMessage@CPhoneUIController@@UAEXHH@Z @ 173 NONAME ; void CPhoneUIController::HandleMessage(int, int) - ?HandleSystemEventL@CPhoneState@@UAEXABVTWsEvent@@@Z @ 174 NONAME ; void CPhoneState::HandleSystemEventL(class TWsEvent const &) - ?DisplayCallSetupL@CPhoneStateIdle@@IAEXH@Z @ 175 NONAME ; void CPhoneStateIdle::DisplayCallSetupL(int) - ?ConstructL@CPhoneStateStartup@@MAEXXZ @ 176 NONAME ; void CPhoneStateStartup::ConstructL(void) - ?HandleKeyMessageL@CPhoneStateStartup@@UAEXW4TPhoneKeyEventMessages@MPhoneKeyEvents@@W4TKeyCode@@@Z @ 177 NONAME ; void CPhoneStateStartup::HandleKeyMessageL(enum MPhoneKeyEvents::TPhoneKeyEventMessages, enum TKeyCode) - ?ShowNoteL@CPhoneState@@IAEXH@Z @ 178 NONAME ; void CPhoneState::ShowNoteL(int) - ?HandlePropertyChangedL@CPhoneState@@UAEXABVTUid@@IH@Z @ 179 NONAME ; void CPhoneState::HandlePropertyChangedL(class TUid const &, unsigned int, int) - ?IsAnyQueryActiveL@CPhoneState@@QAEHXZ @ 180 NONAME ; int CPhoneState::IsAnyQueryActiveL(void) - ?State@CPhoneStateMachine@@UAEPAVMPhoneState@@XZ @ 181 NONAME ; class MPhoneState * CPhoneStateMachine::State(void) - ?SetHandsfreeModeL@CPhoneState@@IAEXH@Z @ 182 NONAME ; void CPhoneState::SetHandsfreeModeL(int) - ?IsCustomizedDialerVisibleL@CPhoneState@@QBEHXZ @ 183 NONAME ; int CPhoneState::IsCustomizedDialerVisibleL(void) const - ?UpdateInCallCbaL@CPhoneStateCallSetup@@MAEXXZ @ 184 NONAME ; void CPhoneStateCallSetup::UpdateInCallCbaL(void) - ?HandleNumberEntryClearedL@CPhoneStateInCall@@MAEXXZ @ 185 NONAME ; void CPhoneStateInCall::HandleNumberEntryClearedL(void) - ??0CPhoneStateIncoming@@IAE@PAVMPhoneStateMachine@@PAVMPhoneViewCommandHandle@@PAVMPhoneCustomization@@@Z @ 186 NONAME ; CPhoneStateIncoming::CPhoneStateIncoming(class MPhoneStateMachine *, class MPhoneViewCommandHandle *, class MPhoneCustomization *) - ??1CPhoneStateIncoming@@UAE@XZ @ 187 NONAME ; CPhoneStateIncoming::~CPhoneStateIncoming(void) - ?HandleKeyLockEnabled@CPhoneUIController@@UAEXH@Z @ 188 NONAME ; void CPhoneUIController::HandleKeyLockEnabled(int) - ?DisableCallUIL@CPhoneState@@QAEXXZ @ 189 NONAME ; void CPhoneState::DisableCallUIL(void) - ?DeleteTouchPaneButtons@CPhoneState@@IAEXXZ @ 190 NONAME ; void CPhoneState::DeleteTouchPaneButtons(void) - ?ProcessCommandL@CPhoneStateIdle@@UAEHH@Z @ 191 NONAME ; int CPhoneStateIdle::ProcessCommandL(int) - ?IsNoteVisibleL@CPhoneState@@MAEHXZ @ 192 NONAME ; int CPhoneState::IsNoteVisibleL(void) - ?DynInitMenuBarL@CPhoneUIController@@UAEXHPAVCEikMenuBar@@@Z @ 193 NONAME ; void CPhoneUIController::DynInitMenuBarL(int, class CEikMenuBar *) - ?IsAlphanumericSupportedAndCharInput@CPhoneState@@MAEHABUTKeyEvent@@@Z @ 194 NONAME ; int CPhoneState::IsAlphanumericSupportedAndCharInput(struct TKeyEvent const &) - ?HandlePhoneEngineMessageL@CPhoneStateStartup@@UAEXHH@Z @ 195 NONAME ; void CPhoneStateStartup::HandlePhoneEngineMessageL(int, int) - ?HandleKeyEventL@CPhoneStateIncoming@@UAEXABUTKeyEvent@@W4TEventCode@@@Z @ 196 NONAME ; void CPhoneStateIncoming::HandleKeyEventL(struct TKeyEvent const &, enum TEventCode) - ?HandleKeyEventL@CPhoneStateStartup@@UAEXABUTKeyEvent@@W4TEventCode@@@Z @ 197 NONAME ; void CPhoneStateStartup::HandleKeyEventL(struct TKeyEvent const &, enum TEventCode) - ?HandleNumberEntryClearedL@CPhoneState@@MAEXXZ @ 198 NONAME ; void CPhoneState::HandleNumberEntryClearedL(void) - ?OnlyHashInNumberEntryL@CPhoneState@@MAEXXZ @ 199 NONAME ; void CPhoneState::OnlyHashInNumberEntryL(void) - ?IncreaseAudioVolumeL@CPhoneState@@IAEXXZ @ 200 NONAME ; void CPhoneState::IncreaseAudioVolumeL(void) - ?ConstructL@CPhoneStateIdle@@MAEXXZ @ 201 NONAME ; void CPhoneStateIdle::ConstructL(void) - ?CheckIfShowCallTerminationNote@CPhoneState@@MAEHXZ @ 202 NONAME ; int CPhoneState::CheckIfShowCallTerminationNote(void) - ?SendGlobalInfoNoteL@CPhoneState@@QAEXH@Z @ 203 NONAME ; void CPhoneState::SendGlobalInfoNoteL(int) - ?DisplayIdleScreenL@CPhoneState@@IAEXXZ @ 204 NONAME ; void CPhoneState::DisplayIdleScreenL(void) - ?StartShowSecurityNoteL@CPhoneState@@IAEXXZ @ 205 NONAME ; void CPhoneState::StartShowSecurityNoteL(void) - ?StoreNumberEntryContentL@CPhoneState@@IAEXXZ @ 206 NONAME ; void CPhoneState::StoreNumberEntryContentL(void) - ?SetBTHandsfreeModeL@CPhoneState@@IAEXH@Z @ 207 NONAME ; void CPhoneState::SetBTHandsfreeModeL(int) - ?HandlePhoneEngineMessageL@CPhoneStateIncoming@@UAEXHH@Z @ 208 NONAME ; void CPhoneStateIncoming::HandlePhoneEngineMessageL(int, int) - ?SetDefaultFlagsL@CPhoneState@@IAEXXZ @ 209 NONAME ; void CPhoneState::SetDefaultFlagsL(void) - ?HandleCommandL@CPhoneStateInCall@@UAEHH@Z @ 210 NONAME ; int CPhoneStateInCall::HandleCommandL(int) - ?DialVoiceCallL@CPhoneStateIdle@@IAEXXZ @ 211 NONAME ; void CPhoneStateIdle::DialVoiceCallL(void) - ?UpdateRemoteInfoDataL@CPhoneState@@IAEXH@Z @ 212 NONAME ; void CPhoneState::UpdateRemoteInfoDataL(int) - ?GetRingingCallL@CPhoneStateInCall@@MAEHXZ @ 213 NONAME ; int CPhoneStateInCall::GetRingingCallL(void) - ?HandleIdleForegroundEventL@CPhoneUIController@@UAEXXZ @ 214 NONAME ; void CPhoneUIController::HandleIdleForegroundEventL(void) - ?SetBackButtonActive@CPhoneState@@IAEXH@Z @ 215 NONAME ; void CPhoneState::SetBackButtonActive(int) - ?HandlePhoneForegroundEventL@CPhoneState@@UAEXXZ @ 216 NONAME ; void CPhoneState::HandlePhoneForegroundEventL(void) - ?HandleForegroundEventL@CPhoneState@@UAEXH@Z @ 217 NONAME ; void CPhoneState::HandleForegroundEventL(int) - ?DisplayIncomingCallL@CPhoneStateIdle@@IAEXH@Z @ 218 NONAME ; void CPhoneStateIdle::DisplayIncomingCallL(int) - ?HandleRemConCommandL@CPhoneState@@UAEHW4TRemConCoreApiOperationId@@W4TRemConCoreApiButtonAction@@@Z @ 219 NONAME ; int CPhoneState::HandleRemConCommandL(enum TRemConCoreApiOperationId, enum TRemConCoreApiButtonAction) - ??1CPhoneStateIdle@@UAE@XZ @ 220 NONAME ; CPhoneStateIdle::~CPhoneStateIdle(void) - ?PhoneNumberFromEntryLC@CPhoneState@@IAEPAVHBufC16@@XZ @ 221 NONAME ; class HBufC16 * CPhoneState::PhoneNumberFromEntryLC(void) - ?BaseConstructL@CPhoneState@@QAEXXZ @ 222 NONAME ; void CPhoneState::BaseConstructL(void) - ?HandlePhoneStartupL@CPhoneUIController@@UAEXXZ @ 223 NONAME ; void CPhoneUIController::HandlePhoneStartupL(void) - ?SpeedDialL@CPhoneStateIdle@@IAEXABIW4TDialInitiationMethod@1@@Z @ 224 NONAME ; void CPhoneStateIdle::SpeedDialL(unsigned int const &, enum CPhoneStateIdle::TDialInitiationMethod) - ?SetCallHeaderType@CPhoneState@@IAEXH@Z @ 225 NONAME ; void CPhoneState::SetCallHeaderType(int) - ?SetTouchPaneButtonEnabled@CPhoneState@@IAEXH@Z @ 226 NONAME ; void CPhoneState::SetTouchPaneButtonEnabled(int) - ?SetPhoneEngine@CPhoneStateMachine@@UAEXPAVMPEPhoneModel@@@Z @ 227 NONAME ; void CPhoneStateMachine::SetPhoneEngine(class MPEPhoneModel *) - ?SpeedDialCanceledL@CPhoneStateIdle@@IAEXABI@Z @ 228 NONAME ; void CPhoneStateIdle::SpeedDialCanceledL(unsigned int const &) - ?CloseDTMFEditorL@CPhoneState@@IAEXXZ @ 229 NONAME ; void CPhoneState::CloseDTMFEditorL(void) - ?SetTouchPaneVisible@CPhoneState@@IAEXH@Z @ 230 NONAME ; void CPhoneState::SetTouchPaneVisible(int) - ?HandlePhoneFocusLostEventL@CPhoneUIController@@UAEXXZ @ 231 NONAME ; void CPhoneUIController::HandlePhoneFocusLostEventL(void) - ?HandleKeyLockEnabled@CPhoneStateIncoming@@UAEXH@Z @ 232 NONAME ; void CPhoneStateIncoming::HandleKeyLockEnabled(int) - ??0CPhoneStateMachine@@IAE@PAVMPhoneViewCommandHandle@@@Z @ 233 NONAME ; CPhoneStateMachine::CPhoneStateMachine(class MPhoneViewCommandHandle *) - ??1CPhoneStateStartup@@UAE@XZ @ 234 NONAME ; CPhoneStateStartup::~CPhoneStateStartup(void) - ?HandleKeyMessageL@CPhoneState@@UAEXW4TPhoneKeyEventMessages@MPhoneKeyEvents@@W4TKeyCode@@@Z @ 235 NONAME ; void CPhoneState::HandleKeyMessageL(enum MPhoneKeyEvents::TPhoneKeyEventMessages, enum TKeyCode) - ?OpenSoftRejectMessageEditorL@CPhoneState@@MAEXXZ @ 236 NONAME ; void CPhoneState::OpenSoftRejectMessageEditorL(void) + ?ShowNumberBusyNoteL@CPhoneState@@IAEXXZ @ 44 NONAME ; void CPhoneState::ShowNumberBusyNoteL(void) + ?DisconnectCallL@CPhoneState@@IAEHXZ @ 45 NONAME ; int CPhoneState::DisconnectCallL(void) + ?HandleNumberEntryClearedL@CPhoneStateCallSetup@@MAEXXZ @ 46 NONAME ; void CPhoneStateCallSetup::HandleNumberEntryClearedL(void) + ?HandleIdleForegroundEventL@CPhoneStateIdle@@UAEXXZ @ 47 NONAME ; void CPhoneStateIdle::HandleIdleForegroundEventL(void) + ?HandleDisconnectingL@CPhoneState@@IAEXH@Z @ 48 NONAME ; void CPhoneState::HandleDisconnectingL(int) + ?HandleAudioMuteChangedL@CPhoneState@@IAEXXZ @ 49 NONAME ; void CPhoneState::HandleAudioMuteChangedL(void) + ?HandleKeyLockEnabled@CPhoneState@@UAEXH@Z @ 50 NONAME ; void CPhoneState::HandleKeyLockEnabled(int) + ?HandleCommandL@CPhoneStateIncoming@@UAEHH@Z @ 51 NONAME ; int CPhoneStateIncoming::HandleCommandL(int) + ?UpdateSingleActiveCallL@CPhoneState@@IAEXH@Z @ 52 NONAME ; void CPhoneState::UpdateSingleActiveCallL(int) + ?IsOnScreenDialerSupported@CPhoneState@@IBEHXZ @ 53 NONAME ; int CPhoneState::IsOnScreenDialerSupported(void) const + ?SimState@CPhoneState@@IBE?AW4TPESimState@@XZ @ 54 NONAME ; enum TPESimState CPhoneState::SimState(void) const + ?HandleKeyEventL@CPhoneStateCallSetup@@UAEXABUTKeyEvent@@W4TEventCode@@@Z @ 55 NONAME ; void CPhoneStateCallSetup::HandleKeyEventL(struct TKeyEvent const &, enum TEventCode) + ?SetupIdleScreenInBackgroundL@CPhoneState@@IAEXXZ @ 56 NONAME ; void CPhoneState::SetupIdleScreenInBackgroundL(void) + ?CompleteSatRequestL@CPhoneState@@IAEXH@Z @ 57 NONAME ; void CPhoneState::CompleteSatRequestL(int) + ?NewL@CPhoneStateStartup@@SAPAV1@PAVMPhoneStateMachine@@PAVMPhoneViewCommandHandle@@PAVMPhoneCustomization@@@Z @ 58 NONAME ; class CPhoneStateStartup * CPhoneStateStartup::NewL(class MPhoneStateMachine *, class MPhoneViewCommandHandle *, class MPhoneCustomization *) + ?LaunchNewCallQueryL@CPhoneStateInCall@@IAEXXZ @ 59 NONAME ; void CPhoneStateInCall::LaunchNewCallQueryL(void) + ?NeedToSendToBackgroundL@CPhoneState@@IBEHXZ @ 60 NONAME ; int CPhoneState::NeedToSendToBackgroundL(void) const + ?SetCallHeaderTextsForCallComingInL@CPhoneState@@IAEXHHPAVTPhoneCmdParamCallHeaderData@@@Z @ 61 NONAME ; void CPhoneState::SetCallHeaderTextsForCallComingInL(int, int, class TPhoneCmdParamCallHeaderData *) + ?IsSimOk@CPhoneState@@QAEHXZ @ 62 NONAME ; int CPhoneState::IsSimOk(void) + ?ClearNumberEntryContentCache@CPhoneState@@IAEXXZ @ 63 NONAME ; void CPhoneState::ClearNumberEntryContentCache(void) + ?HandleCommandL@CPhoneStateIdle@@UAEHH@Z @ 64 NONAME ; int CPhoneStateIdle::HandleCommandL(int) + ?ViewCommandHandle@CPhoneStateHandle@@QAEPAVMPhoneViewCommandHandle@@XZ @ 65 NONAME ; class MPhoneViewCommandHandle * CPhoneStateHandle::ViewCommandHandle(void) + ?DialMultimediaCallL@CPhoneStateIdle@@IAEXXZ @ 66 NONAME ; void CPhoneStateIdle::DialMultimediaCallL(void) + ?DisconnectOutgoingCallL@CPhoneStateInCall@@IAEXXZ @ 67 NONAME ; void CPhoneStateInCall::DisconnectOutgoingCallL(void) + ?IsKeyLockOn@CPhoneState@@MBEHXZ @ 68 NONAME ; int CPhoneState::IsKeyLockOn(void) const + ??1CPhoneStateInCall@@UAE@XZ @ 69 NONAME ; CPhoneStateInCall::~CPhoneStateInCall(void) + ?CustomizedDialerMenuResourceIdL@CPhoneState@@IAEHXZ @ 70 NONAME ; int CPhoneState::CustomizedDialerMenuResourceIdL(void) + ?ShowReconnectQueryL@CPhoneReconnectQuery@@QAEXH@Z @ 71 NONAME ; void CPhoneReconnectQuery::ShowReconnectQueryL(int) + ?UpdateSilenceButtonDimming@CPhoneState@@IAEXXZ @ 72 NONAME ; void CPhoneState::UpdateSilenceButtonDimming(void) + ?SetNumberEntryVisibilityL@CPhoneState@@IAEXH@Z @ 73 NONAME ; void CPhoneState::SetNumberEntryVisibilityL(int) + ?HandleError@CPhoneUIController@@UAEXABUTPEErrorInfo@@@Z @ 74 NONAME ; void CPhoneUIController::HandleError(struct TPEErrorInfo const &) + ?ConstructL@CPhoneStateInCall@@MAEXXZ @ 75 NONAME ; void CPhoneStateInCall::ConstructL(void) + ?OnlyHashInNumberEntryL@CPhoneStateIdle@@MAEXXZ @ 76 NONAME ; void CPhoneStateIdle::OnlyHashInNumberEntryL(void) + ?IsVideoCallRingingL@CPhoneStateInCall@@MAEHXZ @ 77 NONAME ; int CPhoneStateInCall::IsVideoCallRingingL(void) + ?HandlePhoneForegroundEventL@CPhoneStateIdle@@UAEXXZ @ 78 NONAME ; void CPhoneStateIdle::HandlePhoneForegroundEventL(void) + ?HandleHoldSwitchL@CPhoneState@@QAEXXZ @ 79 NONAME ; void CPhoneState::HandleHoldSwitchL(void) + ?CloseDtmfQueryL@CPhoneStateInCall@@IAEXXZ @ 80 NONAME ; void CPhoneStateInCall::CloseDtmfQueryL(void) + ?DynInitMenuBarL@CPhoneState@@UAEXHPAVCEikMenuBar@@@Z @ 81 NONAME ; void CPhoneState::DynInitMenuBarL(int, class CEikMenuBar *) + ?HandleDtmfKeyToneL@CPhoneStateStartup@@EAEXABUTKeyEvent@@W4TEventCode@@@Z @ 82 NONAME ; void CPhoneStateStartup::HandleDtmfKeyToneL(struct TKeyEvent const &, enum TEventCode) + ?HandleNumberEntryEdited@CPhoneState@@MAEXXZ @ 83 NONAME ; void CPhoneState::HandleNumberEntryEdited(void) + ?ShowTextQueryL@CPhoneState@@IAEXHHHPAVTDes16@@H@Z @ 84 NONAME ; void CPhoneState::ShowTextQueryL(int, int, int, class TDes16 *, int) + ?DialMultimediaCallL@CPhoneState@@IAEXXZ @ 85 NONAME ; void CPhoneState::DialMultimediaCallL(void) + ?NewL@CPhoneUIController@@SAPAV1@PAVMPhoneViewCommandHandle@@@Z @ 86 NONAME ; class CPhoneUIController * CPhoneUIController::NewL(class MPhoneViewCommandHandle *) + ?HandleCreateNumberEntryL@CPhoneStateStartup@@EAEXABUTKeyEvent@@W4TEventCode@@@Z @ 87 NONAME ; void CPhoneStateStartup::HandleCreateNumberEntryL(struct TKeyEvent const &, enum TEventCode) + ?CheckDisableHWKeysAndCallUIL@CPhoneState@@QAEXXZ @ 88 NONAME ; void CPhoneState::CheckDisableHWKeysAndCallUIL(void) + ?IsMenuBarVisibleL@CPhoneState@@UBEHXZ @ 89 NONAME ; int CPhoneState::IsMenuBarVisibleL(void) const + ?HandleErrorL@CPhoneState@@UAEXABUTPEErrorInfo@@@Z @ 90 NONAME ; void CPhoneState::HandleErrorL(struct TPEErrorInfo const &) + ?HandleCommandL@CPhoneStateCallSetup@@UAEHH@Z @ 91 NONAME ; int CPhoneStateCallSetup::HandleCommandL(int) + ?HandleAudioOutputChangedL@CPhoneState@@IAEXXZ @ 92 NONAME ; void CPhoneState::HandleAudioOutputChangedL(void) + ??1CPhoneUIController@@UAE@XZ @ 93 NONAME ; CPhoneUIController::~CPhoneUIController(void) + ?HandleKeyEventL@CPhoneState@@UAEXABUTKeyEvent@@W4TEventCode@@@Z @ 94 NONAME ; void CPhoneState::HandleKeyEventL(struct TKeyEvent const &, enum TEventCode) + ?UpdateIncomingContextMenuL@CPhoneState@@MAEXH@Z @ 95 NONAME ; void CPhoneState::UpdateIncomingContextMenuL(int) + ?OpenMenuBarL@CPhoneStateInCall@@MAEXXZ @ 96 NONAME ; void CPhoneStateInCall::OpenMenuBarL(void) + ?UpdateIncomingCbaL@CPhoneCbaManager@@QAEXH@Z @ 97 NONAME ; void CPhoneCbaManager::UpdateIncomingCbaL(int) + ?SetTouchPaneButtonDisabled@CPhoneState@@IAEXH@Z @ 98 NONAME ; void CPhoneState::SetTouchPaneButtonDisabled(int) + ?SendGlobalErrorNoteL@CPhoneState@@QAEXHH@Z @ 99 NONAME ; void CPhoneState::SendGlobalErrorNoteL(int, int) + ?ConstructL@CPhoneStateIncoming@@MAEXXZ @ 100 NONAME ; void CPhoneStateIncoming::ConstructL(void) + ?CreatePhoneEngineL@CPhoneStateMachine@@UAEPAVMPEPhoneModel@@AAVMEngineMonitor@@@Z @ 101 NONAME ; class MPEPhoneModel * CPhoneStateMachine::CreatePhoneEngineL(class MEngineMonitor &) + ?SetTouchPaneButtons@CPhoneState@@IAEXH@Z @ 102 NONAME ; void CPhoneState::SetTouchPaneButtons(int) + ?HandleIdleForegroundEventL@CPhoneStateStartup@@UAEXXZ @ 103 NONAME ; void CPhoneStateStartup::HandleIdleForegroundEventL(void) + ?CallFromNumberEntryL@CPhoneState@@IAEXXZ @ 104 NONAME ; void CPhoneState::CallFromNumberEntryL(void) + ?UpdateCbaL@CPhoneCbaManager@@QAEXH@Z @ 105 NONAME ; void CPhoneCbaManager::UpdateCbaL(int) + ?IsVideoCall@CPhoneState@@IAEHH@Z @ 106 NONAME ; int CPhoneState::IsVideoCall(int) + ?IsSwivelClosed@CPhoneState@@QBEHXZ @ 107 NONAME ; int CPhoneState::IsSwivelClosed(void) const + ?CloseCustomizedDialerL@CPhoneState@@QAEXXZ @ 108 NONAME ; void CPhoneState::CloseCustomizedDialerL(void) + ?HandlePhoneForegroundEventL@CPhoneUIController@@UAEXXZ @ 109 NONAME ; void CPhoneUIController::HandlePhoneForegroundEventL(void) + ?CheckIfRestoreNEContentAfterDtmfDialer@CPhoneState@@IAEXXZ @ 110 NONAME ; void CPhoneState::CheckIfRestoreNEContentAfterDtmfDialer(void) + ?UpdateInCallContextMenuL@CPhoneState@@UAEXXZ @ 111 NONAME ; void CPhoneState::UpdateInCallContextMenuL(void) + ?HandleNumericKeyEventL@CPhoneState@@MAEXABUTKeyEvent@@W4TEventCode@@@Z @ 112 NONAME ; void CPhoneState::HandleNumericKeyEventL(struct TKeyEvent const &, enum TEventCode) + ?SetToolbarDimming@CPhoneState@@IAEXH@Z @ 113 NONAME ; void CPhoneState::SetToolbarDimming(int) + ?IsAutoLockOn@CPhoneState@@UBEHXZ @ 114 NONAME ; int CPhoneState::IsAutoLockOn(void) const + ?UpdateCbaL@CPhoneStateCallSetup@@MAEXH@Z @ 115 NONAME ; void CPhoneStateCallSetup::UpdateCbaL(int) + ?RestoreNumberEntryContentL@CPhoneState@@IAEXXZ @ 116 NONAME ; void CPhoneState::RestoreNumberEntryContentL(void) + ?HandleKeyEventL@CPhoneStateIdle@@UAEXABUTKeyEvent@@W4TEventCode@@@Z @ 117 NONAME ; void CPhoneStateIdle::HandleKeyEventL(struct TKeyEvent const &, enum TEventCode) + ?SendGlobalWarningNoteL@CPhoneState@@IAEXHH@Z @ 118 NONAME ; void CPhoneState::SendGlobalWarningNoteL(int, int) + ?IsNumberEntryContentStored@CPhoneState@@IAEHXZ @ 119 NONAME ; int CPhoneState::IsNumberEntryContentStored(void) + ?IsVideoCallActiveL@CPhoneStateInCall@@MAEHXZ @ 120 NONAME ; int CPhoneStateInCall::IsVideoCallActiveL(void) + ?HandlePhoneStartupL@CPhoneStateStartup@@UAEXXZ @ 121 NONAME ; void CPhoneStateStartup::HandlePhoneStartupL(void) + ?DialVoiceCallL@CPhoneState@@IAEXXZ @ 122 NONAME ; void CPhoneState::DialVoiceCallL(void) + ?StateMachine@CPhoneStateHandle@@QAEPAVMPhoneStateMachine@@XZ @ 123 NONAME ; class MPhoneStateMachine * CPhoneStateHandle::StateMachine(void) + ?EndUiUpdate@CPhoneState@@IAEXXZ @ 124 NONAME ; void CPhoneState::EndUiUpdate(void) + ?HandleKeyPressDurationL@CPhoneStateIncoming@@UAEXW4TKeyCode@@VTTimeIntervalMicroSeconds@@@Z @ 125 NONAME ; void CPhoneStateIncoming::HandleKeyPressDurationL(enum TKeyCode, class TTimeIntervalMicroSeconds) + ?UpdateInCallCbaL@CPhoneStateInCall@@MAEXXZ @ 126 NONAME ; void CPhoneStateInCall::UpdateInCallCbaL(void) + ?EndTransEffect@CPhoneState@@QAEXXZ @ 127 NONAME ; void CPhoneState::EndTransEffect(void) + ?HandleEnvironmentChangeL@CPhoneState@@UAEXH@Z @ 128 NONAME ; void CPhoneState::HandleEnvironmentChangeL(int) + ?HandleKeyMessageL@CPhoneStateInCall@@UAEXW4TPhoneKeyEventMessages@MPhoneKeyEvents@@W4TKeyCode@@@Z @ 129 NONAME ; void CPhoneStateInCall::HandleKeyMessageL(enum MPhoneKeyEvents::TPhoneKeyEventMessages, enum TKeyCode) + ?SetRingingTonePlaybackL@CPhoneState@@IAEXH@Z @ 130 NONAME ; void CPhoneState::SetRingingTonePlaybackL(int) + ?ProcessCommandL@CPhoneState@@UAEHH@Z @ 131 NONAME ; int CPhoneState::ProcessCommandL(int) + ?BeginUiUpdateLC@CPhoneState@@IAEXXZ @ 132 NONAME ; void CPhoneState::BeginUiUpdateLC(void) + ?DecreaseAudioVolumeL@CPhoneState@@IAEXXZ @ 133 NONAME ; void CPhoneState::DecreaseAudioVolumeL(void) + ?PhoneEngineInfo@CPhoneStateMachine@@UAEPAVMPEEngineInfo@@XZ @ 134 NONAME ; class MPEEngineInfo * CPhoneStateMachine::PhoneEngineInfo(void) + ?CreateNumberEntryL@CPhoneStateInCall@@IAEXXZ @ 135 NONAME ; void CPhoneStateInCall::CreateNumberEntryL(void) + ?HandleSystemEventL@CPhoneUIController@@UAEXABVTWsEvent@@@Z @ 136 NONAME ; void CPhoneUIController::HandleSystemEventL(class TWsEvent const &) + ?DynInitMenuPaneL@CPhoneUIController@@UAEXHPAVCEikMenuPane@@@Z @ 137 NONAME ; void CPhoneUIController::DynInitMenuPaneL(int, class CEikMenuPane *) + ??0CPhoneStateStartup@@IAE@PAVMPhoneStateMachine@@PAVMPhoneViewCommandHandle@@PAVMPhoneCustomization@@@Z @ 138 NONAME ; CPhoneStateStartup::CPhoneStateStartup(class MPhoneStateMachine *, class MPhoneViewCommandHandle *, class MPhoneCustomization *) + ?GetRemoteInfoDataL@CPhoneState@@IAEXHAAVTDes16@@@Z @ 139 NONAME ; void CPhoneState::GetRemoteInfoDataL(int, class TDes16 &) + ?SetDivertIndication@CPhoneState@@UAEXH@Z @ 140 NONAME ; void CPhoneState::SetDivertIndication(int) + ?UpdateCbaL@CPhoneStateInCall@@MAEXH@Z @ 141 NONAME ; void CPhoneStateInCall::UpdateCbaL(int) + ?SetCallId@CPhoneStateMachine@@UAEXH@Z @ 142 NONAME ; void CPhoneStateMachine::SetCallId(int) + ?ProcessCommandL@CPhoneUIController@@UAEHH@Z @ 143 NONAME ; int CPhoneUIController::ProcessCommandL(int) + ?DisplayHeaderForCallComingInL@CPhoneState@@IAEXHH@Z @ 144 NONAME ; void CPhoneState::DisplayHeaderForCallComingInL(int, int) + ??0CPhoneStateIdle@@IAE@PAVMPhoneStateMachine@@PAVMPhoneViewCommandHandle@@PAVMPhoneCustomization@@@Z @ 145 NONAME ; CPhoneStateIdle::CPhoneStateIdle(class MPhoneStateMachine *, class MPhoneViewCommandHandle *, class MPhoneCustomization *) + ?SendPhoneEngineMessage@CPhoneStateMachine@@UAEXH@Z @ 146 NONAME ; void CPhoneStateMachine::SendPhoneEngineMessage(int) + ??0CPhoneStateCallSetup@@IAE@PAVMPhoneStateMachine@@PAVMPhoneViewCommandHandle@@PAVMPhoneCustomization@@@Z @ 147 NONAME ; CPhoneStateCallSetup::CPhoneStateCallSetup(class MPhoneStateMachine *, class MPhoneViewCommandHandle *, class MPhoneCustomization *) + ??0CPhoneState@@QAE@PAVMPhoneStateMachine@@PAVMPhoneViewCommandHandle@@PAVMPhoneCustomization@@@Z @ 148 NONAME ; CPhoneState::CPhoneState(class MPhoneStateMachine *, class MPhoneViewCommandHandle *, class MPhoneCustomization *) + ?HandleDtmfKeyToneL@CPhoneState@@UAEXABUTKeyEvent@@W4TEventCode@@@Z @ 149 NONAME ; void CPhoneState::HandleDtmfKeyToneL(struct TKeyEvent const &, enum TEventCode) + ?HandleKeyMessageL@CPhoneStateIdle@@UAEXW4TPhoneKeyEventMessages@MPhoneKeyEvents@@W4TKeyCode@@@Z @ 150 NONAME ; void CPhoneStateIdle::HandleKeyMessageL(enum MPhoneKeyEvents::TPhoneKeyEventMessages, enum TKeyCode) + ?HandleForegroundEventL@CPhoneUIController@@UAEXH@Z @ 151 NONAME ; void CPhoneUIController::HandleForegroundEventL(int) + ?HandleSendCommandL@CPhoneStateIdle@@MAEXXZ @ 152 NONAME ; void CPhoneStateIdle::HandleSendCommandL(void) + ?HandleCommandL@CPhoneUIController@@UAEHH@Z @ 153 NONAME ; int CPhoneUIController::HandleCommandL(int) + ?HandleCreateNumberEntryL@CPhoneState@@UAEXABUTKeyEvent@@W4TEventCode@@@Z @ 154 NONAME ; void CPhoneState::HandleCreateNumberEntryL(struct TKeyEvent const &, enum TEventCode) + ?DisableHWKeysL@CPhoneState@@QAEXXZ @ 155 NONAME ; void CPhoneState::DisableHWKeysL(void) + ?DisplayHeaderForOutgoingCallL@CPhoneState@@IAEXH@Z @ 156 NONAME ; void CPhoneState::DisplayHeaderForOutgoingCallL(int) + ?GetBlockedKeyList@CPhoneState@@UBEABV?$RArray@H@@XZ @ 157 NONAME ; class RArray const & CPhoneState::GetBlockedKeyList(void) const + ?HandlePhoneEngineMessageL@CPhoneStateInCall@@UAEXHH@Z @ 158 NONAME ; void CPhoneStateInCall::HandlePhoneEngineMessageL(int, int) + ?IsNumberEntryUsedL@CPhoneState@@UAEHXZ @ 159 NONAME ; int CPhoneState::IsNumberEntryUsedL(void) + ?PhoneStorage@CPhoneStateMachine@@UAEPAVMPhoneStorage@@XZ @ 160 NONAME ; class MPhoneStorage * CPhoneStateMachine::PhoneStorage(void) + ??1CPhoneState@@UAE@XZ @ 161 NONAME ; CPhoneState::~CPhoneState(void) + ?HandleCreateNumberEntryL@CPhoneStateCallSetup@@MAEXABUTKeyEvent@@W4TEventCode@@@Z @ 162 NONAME ; void CPhoneStateCallSetup::HandleCreateNumberEntryL(struct TKeyEvent const &, enum TEventCode) + ?HandlePhoneEngineMessageL@CPhoneStateCallSetup@@UAEXHH@Z @ 163 NONAME ; void CPhoneStateCallSetup::HandlePhoneEngineMessageL(int, int) + ?HandlePhoneFocusLostEventL@CPhoneState@@UAEXXZ @ 164 NONAME ; void CPhoneState::HandlePhoneFocusLostEventL(void) + ??1CPhoneStateMachine@@UAE@XZ @ 165 NONAME ; CPhoneStateMachine::~CPhoneStateMachine(void) + ?HandleIdleForegroundEventL@CPhoneState@@UAEXXZ @ 166 NONAME ; void CPhoneState::HandleIdleForegroundEventL(void) + ?DynInitMenuPaneL@CPhoneState@@UAEXHPAVCEikMenuPane@@@Z @ 167 NONAME ; void CPhoneState::DynInitMenuPaneL(int, class CEikMenuPane *) + ?IsDTMFEditorVisibleL@CPhoneState@@IBEHXZ @ 168 NONAME ; int CPhoneState::IsDTMFEditorVisibleL(void) const + ?ConstructL@CPhoneStateCallSetup@@MAEXXZ @ 169 NONAME ; void CPhoneStateCallSetup::ConstructL(void) + ?BeginTransEffectLC@CPhoneState@@QAEXW4TStateTransEffectType@@@Z @ 170 NONAME ; void CPhoneState::BeginTransEffectLC(enum TStateTransEffectType) + ?HandleMessage@CPhoneUIController@@UAEXHH@Z @ 171 NONAME ; void CPhoneUIController::HandleMessage(int, int) + ?HandleSystemEventL@CPhoneState@@UAEXABVTWsEvent@@@Z @ 172 NONAME ; void CPhoneState::HandleSystemEventL(class TWsEvent const &) + ?DisplayCallSetupL@CPhoneStateIdle@@IAEXH@Z @ 173 NONAME ; void CPhoneStateIdle::DisplayCallSetupL(int) + ?ConstructL@CPhoneStateStartup@@MAEXXZ @ 174 NONAME ; void CPhoneStateStartup::ConstructL(void) + ?HandleKeyMessageL@CPhoneStateStartup@@UAEXW4TPhoneKeyEventMessages@MPhoneKeyEvents@@W4TKeyCode@@@Z @ 175 NONAME ; void CPhoneStateStartup::HandleKeyMessageL(enum MPhoneKeyEvents::TPhoneKeyEventMessages, enum TKeyCode) + ?ShowNoteL@CPhoneState@@IAEXH@Z @ 176 NONAME ; void CPhoneState::ShowNoteL(int) + ?HandlePropertyChangedL@CPhoneState@@UAEXABVTUid@@IH@Z @ 177 NONAME ; void CPhoneState::HandlePropertyChangedL(class TUid const &, unsigned int, int) + ?IsAnyQueryActiveL@CPhoneState@@QAEHXZ @ 178 NONAME ; int CPhoneState::IsAnyQueryActiveL(void) + ?State@CPhoneStateMachine@@UAEPAVMPhoneState@@XZ @ 179 NONAME ; class MPhoneState * CPhoneStateMachine::State(void) + ?SetHandsfreeModeL@CPhoneState@@IAEXH@Z @ 180 NONAME ; void CPhoneState::SetHandsfreeModeL(int) + ?IsCustomizedDialerVisibleL@CPhoneState@@QBEHXZ @ 181 NONAME ; int CPhoneState::IsCustomizedDialerVisibleL(void) const + ?UpdateInCallCbaL@CPhoneStateCallSetup@@MAEXXZ @ 182 NONAME ; void CPhoneStateCallSetup::UpdateInCallCbaL(void) + ?HandleNumberEntryClearedL@CPhoneStateInCall@@MAEXXZ @ 183 NONAME ; void CPhoneStateInCall::HandleNumberEntryClearedL(void) + ??0CPhoneStateIncoming@@IAE@PAVMPhoneStateMachine@@PAVMPhoneViewCommandHandle@@PAVMPhoneCustomization@@@Z @ 184 NONAME ; CPhoneStateIncoming::CPhoneStateIncoming(class MPhoneStateMachine *, class MPhoneViewCommandHandle *, class MPhoneCustomization *) + ?SendGlobalInfoNoteL@CPhoneState@@QAEXHH@Z @ 185 NONAME ; void CPhoneState::SendGlobalInfoNoteL(int, int) + ??1CPhoneStateIncoming@@UAE@XZ @ 186 NONAME ; CPhoneStateIncoming::~CPhoneStateIncoming(void) + ?HandleKeyLockEnabled@CPhoneUIController@@UAEXH@Z @ 187 NONAME ; void CPhoneUIController::HandleKeyLockEnabled(int) + ?DisableCallUIL@CPhoneState@@QAEXXZ @ 188 NONAME ; void CPhoneState::DisableCallUIL(void) + ?DeleteTouchPaneButtons@CPhoneState@@IAEXXZ @ 189 NONAME ; void CPhoneState::DeleteTouchPaneButtons(void) + ?ProcessCommandL@CPhoneStateIdle@@UAEHH@Z @ 190 NONAME ; int CPhoneStateIdle::ProcessCommandL(int) + ?IsNoteVisibleL@CPhoneState@@MAEHXZ @ 191 NONAME ; int CPhoneState::IsNoteVisibleL(void) + ?DynInitMenuBarL@CPhoneUIController@@UAEXHPAVCEikMenuBar@@@Z @ 192 NONAME ; void CPhoneUIController::DynInitMenuBarL(int, class CEikMenuBar *) + ?IsAlphanumericSupportedAndCharInput@CPhoneState@@MAEHABUTKeyEvent@@@Z @ 193 NONAME ; int CPhoneState::IsAlphanumericSupportedAndCharInput(struct TKeyEvent const &) + ?HandlePhoneEngineMessageL@CPhoneStateStartup@@UAEXHH@Z @ 194 NONAME ; void CPhoneStateStartup::HandlePhoneEngineMessageL(int, int) + ?HandleKeyEventL@CPhoneStateIncoming@@UAEXABUTKeyEvent@@W4TEventCode@@@Z @ 195 NONAME ; void CPhoneStateIncoming::HandleKeyEventL(struct TKeyEvent const &, enum TEventCode) + ?HandleKeyEventL@CPhoneStateStartup@@UAEXABUTKeyEvent@@W4TEventCode@@@Z @ 196 NONAME ; void CPhoneStateStartup::HandleKeyEventL(struct TKeyEvent const &, enum TEventCode) + ?HandleNumberEntryClearedL@CPhoneState@@MAEXXZ @ 197 NONAME ; void CPhoneState::HandleNumberEntryClearedL(void) + ?OnlyHashInNumberEntryL@CPhoneState@@MAEXXZ @ 198 NONAME ; void CPhoneState::OnlyHashInNumberEntryL(void) + ?IncreaseAudioVolumeL@CPhoneState@@IAEXXZ @ 199 NONAME ; void CPhoneState::IncreaseAudioVolumeL(void) + ?ConstructL@CPhoneStateIdle@@MAEXXZ @ 200 NONAME ; void CPhoneStateIdle::ConstructL(void) + ?CheckIfShowCallTerminationNote@CPhoneState@@MAEHXZ @ 201 NONAME ; int CPhoneState::CheckIfShowCallTerminationNote(void) + ?DisplayIdleScreenL@CPhoneState@@IAEXXZ @ 202 NONAME ; void CPhoneState::DisplayIdleScreenL(void) + ?StartShowSecurityNoteL@CPhoneState@@IAEXXZ @ 203 NONAME ; void CPhoneState::StartShowSecurityNoteL(void) + ?StoreNumberEntryContentL@CPhoneState@@IAEXXZ @ 204 NONAME ; void CPhoneState::StoreNumberEntryContentL(void) + ?SetBTHandsfreeModeL@CPhoneState@@IAEXH@Z @ 205 NONAME ; void CPhoneState::SetBTHandsfreeModeL(int) + ?HandlePhoneEngineMessageL@CPhoneStateIncoming@@UAEXHH@Z @ 206 NONAME ; void CPhoneStateIncoming::HandlePhoneEngineMessageL(int, int) + ?SetDefaultFlagsL@CPhoneState@@IAEXXZ @ 207 NONAME ; void CPhoneState::SetDefaultFlagsL(void) + ?HandleCommandL@CPhoneStateInCall@@UAEHH@Z @ 208 NONAME ; int CPhoneStateInCall::HandleCommandL(int) + ?DialVoiceCallL@CPhoneStateIdle@@IAEXXZ @ 209 NONAME ; void CPhoneStateIdle::DialVoiceCallL(void) + ?UpdateRemoteInfoDataL@CPhoneState@@IAEXH@Z @ 210 NONAME ; void CPhoneState::UpdateRemoteInfoDataL(int) + ?GetRingingCallL@CPhoneStateInCall@@MAEHXZ @ 211 NONAME ; int CPhoneStateInCall::GetRingingCallL(void) + ?HandleIdleForegroundEventL@CPhoneUIController@@UAEXXZ @ 212 NONAME ; void CPhoneUIController::HandleIdleForegroundEventL(void) + ?SetBackButtonActive@CPhoneState@@IAEXH@Z @ 213 NONAME ; void CPhoneState::SetBackButtonActive(int) + ?HandlePhoneForegroundEventL@CPhoneState@@UAEXXZ @ 214 NONAME ; void CPhoneState::HandlePhoneForegroundEventL(void) + ?HandleForegroundEventL@CPhoneState@@UAEXH@Z @ 215 NONAME ; void CPhoneState::HandleForegroundEventL(int) + ?DisplayIncomingCallL@CPhoneStateIdle@@IAEXH@Z @ 216 NONAME ; void CPhoneStateIdle::DisplayIncomingCallL(int) + ?HandleRemConCommandL@CPhoneState@@UAEHW4TRemConCoreApiOperationId@@W4TRemConCoreApiButtonAction@@@Z @ 217 NONAME ; int CPhoneState::HandleRemConCommandL(enum TRemConCoreApiOperationId, enum TRemConCoreApiButtonAction) + ??1CPhoneStateIdle@@UAE@XZ @ 218 NONAME ; CPhoneStateIdle::~CPhoneStateIdle(void) + ?PhoneNumberFromEntryLC@CPhoneState@@IAEPAVHBufC16@@XZ @ 219 NONAME ; class HBufC16 * CPhoneState::PhoneNumberFromEntryLC(void) + ?BaseConstructL@CPhoneState@@QAEXXZ @ 220 NONAME ; void CPhoneState::BaseConstructL(void) + ?HandlePhoneStartupL@CPhoneUIController@@UAEXXZ @ 221 NONAME ; void CPhoneUIController::HandlePhoneStartupL(void) + ?SetCallHeaderType@CPhoneState@@IAEXH@Z @ 222 NONAME ; void CPhoneState::SetCallHeaderType(int) + ?SetTouchPaneButtonEnabled@CPhoneState@@IAEXH@Z @ 223 NONAME ; void CPhoneState::SetTouchPaneButtonEnabled(int) + ?SetPhoneEngine@CPhoneStateMachine@@UAEXPAVMPEPhoneModel@@@Z @ 224 NONAME ; void CPhoneStateMachine::SetPhoneEngine(class MPEPhoneModel *) + ?CloseDTMFEditorL@CPhoneState@@IAEXXZ @ 225 NONAME ; void CPhoneState::CloseDTMFEditorL(void) + ?SetTouchPaneVisible@CPhoneState@@IAEXH@Z @ 226 NONAME ; void CPhoneState::SetTouchPaneVisible(int) + ?HandlePhoneFocusLostEventL@CPhoneUIController@@UAEXXZ @ 227 NONAME ; void CPhoneUIController::HandlePhoneFocusLostEventL(void) + ?HandleKeyLockEnabled@CPhoneStateIncoming@@UAEXH@Z @ 228 NONAME ; void CPhoneStateIncoming::HandleKeyLockEnabled(int) + ??0CPhoneStateMachine@@IAE@PAVMPhoneViewCommandHandle@@@Z @ 229 NONAME ; CPhoneStateMachine::CPhoneStateMachine(class MPhoneViewCommandHandle *) + ??1CPhoneStateStartup@@UAE@XZ @ 230 NONAME ; CPhoneStateStartup::~CPhoneStateStartup(void) + ?HandleKeyMessageL@CPhoneState@@UAEXW4TPhoneKeyEventMessages@MPhoneKeyEvents@@W4TKeyCode@@@Z @ 231 NONAME ; void CPhoneState::HandleKeyMessageL(enum MPhoneKeyEvents::TPhoneKeyEventMessages, enum TKeyCode) + ?OpenSoftRejectMessageEditorL@CPhoneState@@MAEXXZ @ 232 NONAME ; void CPhoneState::OpenSoftRejectMessageEditorL(void) diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuicontrol/eabi/phoneuicontrolu.def --- a/phoneapp/phoneuicontrol/eabi/phoneuicontrolu.def Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuicontrol/eabi/phoneuicontrolu.def Wed Jun 23 18:12:20 2010 +0300 @@ -39,7 +39,7 @@ _ZN11CPhoneState19DialMultimediaCallLEv @ 38 NONAME _ZN11CPhoneState19HandleCenRepChangeLERK4TUidj @ 39 NONAME _ZN11CPhoneState19HandlePhoneStartupLEv @ 40 NONAME - _ZN11CPhoneState19SendGlobalInfoNoteLEi @ 41 NONAME + _ZN11CPhoneState19SendGlobalInfoNoteLEii @ 41 NONAME _ZN11CPhoneState19SetBTHandsfreeModeLEi @ 42 NONAME _ZN11CPhoneState19SetBackButtonActiveEi @ 43 NONAME _ZN11CPhoneState19SetDivertIndicationEi @ 44 NONAME @@ -52,7 +52,7 @@ _ZN11CPhoneState20HandleKeyLockEnabledEi @ 51 NONAME _ZN11CPhoneState20HandleRemConCommandLE25TRemConCoreApiOperationId26TRemConCoreApiButtonAction @ 52 NONAME _ZN11CPhoneState20IncreaseAudioVolumeLEv @ 53 NONAME - _ZN11CPhoneState20SendGlobalErrorNoteLEi @ 54 NONAME + _ZN11CPhoneState20SendGlobalErrorNoteLEii @ 54 NONAME _ZN11CPhoneState21IsNumberEntryVisibleLEv @ 55 NONAME _ZN11CPhoneState21UpdateRemoteInfoDataLEi @ 56 NONAME _ZN11CPhoneState22CloseCustomizedDialerLEv @ 57 NONAME @@ -62,7 +62,7 @@ _ZN11CPhoneState22HandlePropertyChangedLERK4TUidji @ 61 NONAME _ZN11CPhoneState22OnlyHashInNumberEntryLEv @ 62 NONAME _ZN11CPhoneState22PhoneNumberFromEntryLCEv @ 63 NONAME - _ZN11CPhoneState22SendGlobalWarningNoteLEi @ 64 NONAME + _ZN11CPhoneState22SendGlobalWarningNoteLEii @ 64 NONAME _ZN11CPhoneState22StartShowSecurityNoteLEv @ 65 NONAME _ZN11CPhoneState23HandleAudioMuteChangedLEv @ 66 NONAME _ZN11CPhoneState23HandleKeyPressDurationLE8TKeyCode25TTimeIntervalMicroSeconds @ 67 NONAME @@ -112,363 +112,359 @@ _ZN11CPhoneStateD1Ev @ 111 NONAME _ZN11CPhoneStateD2Ev @ 112 NONAME _ZN15CPhoneStateIdle10ConstructLEv @ 113 NONAME - _ZN15CPhoneStateIdle10SpeedDialLERKjNS_21TDialInitiationMethodE @ 114 NONAME - _ZN15CPhoneStateIdle14DialVoiceCallLEv @ 115 NONAME - _ZN15CPhoneStateIdle14HandleCommandLEi @ 116 NONAME - _ZN15CPhoneStateIdle14HandleDialingLEi @ 117 NONAME - _ZN15CPhoneStateIdle15HandleKeyEventLERK9TKeyEvent10TEventCode @ 118 NONAME - _ZN15CPhoneStateIdle15ProcessCommandLEi @ 119 NONAME - _ZN15CPhoneStateIdle17DisplayCallSetupLEi @ 120 NONAME - _ZN15CPhoneStateIdle17HandleKeyMessageLEN15MPhoneKeyEvents22TPhoneKeyEventMessagesE8TKeyCode @ 121 NONAME - _ZN15CPhoneStateIdle18HandleSendCommandLEv @ 122 NONAME - _ZN15CPhoneStateIdle18SpeedDialCanceledLERKj @ 123 NONAME - _ZN15CPhoneStateIdle19DialMultimediaCallLEv @ 124 NONAME - _ZN15CPhoneStateIdle20DisplayIncomingCallLEi @ 125 NONAME - _ZN15CPhoneStateIdle20HandleRemConCommandLE25TRemConCoreApiOperationId26TRemConCoreApiButtonAction @ 126 NONAME - _ZN15CPhoneStateIdle22OnlyHashInNumberEntryLEv @ 127 NONAME - _ZN15CPhoneStateIdle25HandleNumberEntryClearedLEv @ 128 NONAME - _ZN15CPhoneStateIdle25HandleNumberLongKeyPressLEv @ 129 NONAME - _ZN15CPhoneStateIdle25HandlePhoneEngineMessageLEii @ 130 NONAME - _ZN15CPhoneStateIdle26HandleIdleForegroundEventLEv @ 131 NONAME - _ZN15CPhoneStateIdle26HandlePhoneFocusLostEventLEv @ 132 NONAME - _ZN15CPhoneStateIdle27HandlePhoneForegroundEventLEv @ 133 NONAME - _ZN15CPhoneStateIdle5DialLERK7TDesC1616TPhoneNumberTypeNS_21TDialInitiationMethodE @ 134 NONAME - _ZN15CPhoneStateIdleC1EP18MPhoneStateMachineP23MPhoneViewCommandHandleP19MPhoneCustomization @ 135 NONAME - _ZN15CPhoneStateIdleC2EP18MPhoneStateMachineP23MPhoneViewCommandHandleP19MPhoneCustomization @ 136 NONAME - _ZN15CPhoneStateIdleD0Ev @ 137 NONAME - _ZN15CPhoneStateIdleD1Ev @ 138 NONAME - _ZN15CPhoneStateIdleD2Ev @ 139 NONAME - _ZN16CPhoneCbaManager10UpdateCbaLEi @ 140 NONAME - _ZN16CPhoneCbaManager18UpdateIncomingCbaLEi @ 141 NONAME - _ZN16CPhoneCbaManager7SetCbaLEi @ 142 NONAME - _ZN17CPhoneStateHandle12StateMachineEv @ 143 NONAME - _ZN17CPhoneStateHandle17ViewCommandHandleEv @ 144 NONAME - _ZN17CPhoneStateHandle8InstanceEv @ 145 NONAME - _ZN17CPhoneStateInCall10ConstructLEv @ 146 NONAME - _ZN17CPhoneStateInCall10UpdateCbaLEi @ 147 NONAME - _ZN17CPhoneStateInCall11HandleIdleLEi @ 148 NONAME - _ZN17CPhoneStateInCall12OpenMenuBarLEv @ 149 NONAME - _ZN17CPhoneStateInCall14HandleCommandLEi @ 150 NONAME - _ZN17CPhoneStateInCall15CloseDtmfQueryLEv @ 151 NONAME - _ZN17CPhoneStateInCall15GetRingingCallLEv @ 152 NONAME - _ZN17CPhoneStateInCall16UpdateInCallCbaLEv @ 153 NONAME - _ZN17CPhoneStateInCall17HandleKeyMessageLEN15MPhoneKeyEvents22TPhoneKeyEventMessagesE8TKeyCode @ 154 NONAME - _ZN17CPhoneStateInCall18CallFetchedNumberLERK7TDesC16 @ 155 NONAME - _ZN17CPhoneStateInCall18CreateNumberEntryLEv @ 156 NONAME - _ZN17CPhoneStateInCall18IsVideoCallActiveLEv @ 157 NONAME - _ZN17CPhoneStateInCall19IsVideoCallRingingLEv @ 158 NONAME - _ZN17CPhoneStateInCall19LaunchNewCallQueryLEv @ 159 NONAME - _ZN17CPhoneStateInCall23DisconnectOutgoingCallLEv @ 160 NONAME - _ZN17CPhoneStateInCall25HandleNumberEntryClearedLEv @ 161 NONAME - _ZN17CPhoneStateInCall25HandlePhoneEngineMessageLEii @ 162 NONAME - _ZN17CPhoneStateInCall34PhoneNumberAvailableInPhoneEngineLEi @ 163 NONAME - _ZN17CPhoneStateInCallC1EP18MPhoneStateMachineP23MPhoneViewCommandHandleP19MPhoneCustomization @ 164 NONAME - _ZN17CPhoneStateInCallC2EP18MPhoneStateMachineP23MPhoneViewCommandHandleP19MPhoneCustomization @ 165 NONAME - _ZN17CPhoneStateInCallD0Ev @ 166 NONAME - _ZN17CPhoneStateInCallD1Ev @ 167 NONAME - _ZN17CPhoneStateInCallD2Ev @ 168 NONAME - _ZN18CPhoneStateMachine11ChangeStateEi @ 169 NONAME - _ZN18CPhoneStateMachine11PhoneEngineEv @ 170 NONAME - _ZN18CPhoneStateMachine12PhoneStorageEv @ 171 NONAME - _ZN18CPhoneStateMachine14SetPhoneEngineEP13MPEPhoneModel @ 172 NONAME - _ZN18CPhoneStateMachine15PhoneEngineInfoEv @ 173 NONAME - _ZN18CPhoneStateMachine18CreatePhoneEngineLER14MEngineMonitor @ 174 NONAME - _ZN18CPhoneStateMachine22SendPhoneEngineMessageEi @ 175 NONAME - _ZN18CPhoneStateMachine5StateEv @ 176 NONAME - _ZN18CPhoneStateMachine9SetCallIdEi @ 177 NONAME - _ZN18CPhoneStateMachineC1EP23MPhoneViewCommandHandle @ 178 NONAME - _ZN18CPhoneStateMachineC2EP23MPhoneViewCommandHandle @ 179 NONAME - _ZN18CPhoneStateMachineD0Ev @ 180 NONAME - _ZN18CPhoneStateMachineD1Ev @ 181 NONAME - _ZN18CPhoneStateMachineD2Ev @ 182 NONAME - _ZN18CPhoneStateStartup10ConstructLEv @ 183 NONAME - _ZN18CPhoneStateStartup15HandleKeyEventLERK9TKeyEvent10TEventCode @ 184 NONAME - _ZN18CPhoneStateStartup17HandleKeyMessageLEN15MPhoneKeyEvents22TPhoneKeyEventMessagesE8TKeyCode @ 185 NONAME - _ZN18CPhoneStateStartup18HandleDtmfKeyToneLERK9TKeyEvent10TEventCode @ 186 NONAME - _ZN18CPhoneStateStartup19HandlePhoneStartupLEv @ 187 NONAME - _ZN18CPhoneStateStartup24HandleCreateNumberEntryLERK9TKeyEvent10TEventCode @ 188 NONAME - _ZN18CPhoneStateStartup25HandlePhoneEngineMessageLEii @ 189 NONAME - _ZN18CPhoneStateStartup26HandleIdleForegroundEventLEv @ 190 NONAME - _ZN18CPhoneStateStartup4NewLEP18MPhoneStateMachineP23MPhoneViewCommandHandleP19MPhoneCustomization @ 191 NONAME - _ZN18CPhoneStateStartupC1EP18MPhoneStateMachineP23MPhoneViewCommandHandleP19MPhoneCustomization @ 192 NONAME - _ZN18CPhoneStateStartupC2EP18MPhoneStateMachineP23MPhoneViewCommandHandleP19MPhoneCustomization @ 193 NONAME - _ZN18CPhoneStateStartupD0Ev @ 194 NONAME - _ZN18CPhoneStateStartupD1Ev @ 195 NONAME - _ZN18CPhoneStateStartupD2Ev @ 196 NONAME - _ZN18CPhoneUIController11HandleErrorERK12TPEErrorInfo @ 197 NONAME - _ZN18CPhoneUIController13HandleMessageEii @ 198 NONAME - _ZN18CPhoneUIController14HandleCommandLEi @ 199 NONAME - _ZN18CPhoneUIController15DynInitMenuBarLEiP11CEikMenuBar @ 200 NONAME - _ZN18CPhoneUIController15HandleKeyEventLERK9TKeyEvent10TEventCode @ 201 NONAME - _ZN18CPhoneUIController15ProcessCommandLEi @ 202 NONAME - _ZN18CPhoneUIController16DynInitMenuPaneLEiP12CEikMenuPane @ 203 NONAME - _ZN18CPhoneUIController18HandleSystemEventLERK8TWsEvent @ 204 NONAME - _ZN18CPhoneUIController19HandlePhoneStartupLEv @ 205 NONAME - _ZN18CPhoneUIController20HandleKeyLockEnabledEi @ 206 NONAME - _ZN18CPhoneUIController22HandleForegroundEventLEi @ 207 NONAME - _ZN18CPhoneUIController24HandleEnvironmentChangeLEi @ 208 NONAME - _ZN18CPhoneUIController26HandleIdleForegroundEventLEv @ 209 NONAME - _ZN18CPhoneUIController26HandlePhoneFocusLostEventLEv @ 210 NONAME - _ZN18CPhoneUIController27HandlePhoneForegroundEventLEv @ 211 NONAME - _ZN18CPhoneUIController4NewLEP23MPhoneViewCommandHandle @ 212 NONAME - _ZN18CPhoneUIControllerD0Ev @ 213 NONAME - _ZN18CPhoneUIControllerD1Ev @ 214 NONAME - _ZN18CPhoneUIControllerD2Ev @ 215 NONAME - _ZN19CPhoneStateIncoming10ConstructLEv @ 216 NONAME - _ZN19CPhoneStateIncoming14HandleCommandLEi @ 217 NONAME - _ZN19CPhoneStateIncoming15HandleKeyEventLERK9TKeyEvent10TEventCode @ 218 NONAME - _ZN19CPhoneStateIncoming16DynInitMenuPaneLEiP12CEikMenuPane @ 219 NONAME - _ZN19CPhoneStateIncoming17HandleKeyMessageLEN15MPhoneKeyEvents22TPhoneKeyEventMessagesE8TKeyCode @ 220 NONAME - _ZN19CPhoneStateIncoming20HandleKeyLockEnabledEi @ 221 NONAME - _ZN19CPhoneStateIncoming23HandleAudioPlayStoppedLEv @ 222 NONAME - _ZN19CPhoneStateIncoming23HandleKeyPressDurationLE8TKeyCode25TTimeIntervalMicroSeconds @ 223 NONAME - _ZN19CPhoneStateIncoming25HandleNumberEntryClearedLEv @ 224 NONAME - _ZN19CPhoneStateIncoming25HandlePhoneEngineMessageLEii @ 225 NONAME - _ZN19CPhoneStateIncomingC1EP18MPhoneStateMachineP23MPhoneViewCommandHandleP19MPhoneCustomization @ 226 NONAME - _ZN19CPhoneStateIncomingC2EP18MPhoneStateMachineP23MPhoneViewCommandHandleP19MPhoneCustomization @ 227 NONAME - _ZN19CPhoneStateIncomingD0Ev @ 228 NONAME - _ZN19CPhoneStateIncomingD1Ev @ 229 NONAME - _ZN19CPhoneStateIncomingD2Ev @ 230 NONAME - _ZN20CPhoneReconnectQuery19ShowReconnectQueryLEi @ 231 NONAME - _ZN20CPhoneReconnectQuery9InstanceLEv @ 232 NONAME - _ZN20CPhoneStateCallSetup10ConstructLEv @ 233 NONAME - _ZN20CPhoneStateCallSetup10UpdateCbaLEi @ 234 NONAME - _ZN20CPhoneStateCallSetup12OpenMenuBarLEv @ 235 NONAME - _ZN20CPhoneStateCallSetup14HandleCommandLEi @ 236 NONAME - _ZN20CPhoneStateCallSetup15HandleKeyEventLERK9TKeyEvent10TEventCode @ 237 NONAME - _ZN20CPhoneStateCallSetup16UpdateInCallCbaLEv @ 238 NONAME - _ZN20CPhoneStateCallSetup17HandleKeyMessageLEN15MPhoneKeyEvents22TPhoneKeyEventMessagesE8TKeyCode @ 239 NONAME - _ZN20CPhoneStateCallSetup24HandleCreateNumberEntryLERK9TKeyEvent10TEventCode @ 240 NONAME - _ZN20CPhoneStateCallSetup25HandleNumberEntryClearedLEv @ 241 NONAME - _ZN20CPhoneStateCallSetup25HandlePhoneEngineMessageLEii @ 242 NONAME - _ZN20CPhoneStateCallSetupC1EP18MPhoneStateMachineP23MPhoneViewCommandHandleP19MPhoneCustomization @ 243 NONAME - _ZN20CPhoneStateCallSetupC2EP18MPhoneStateMachineP23MPhoneViewCommandHandleP19MPhoneCustomization @ 244 NONAME - _ZN20CPhoneStateCallSetupD0Ev @ 245 NONAME - _ZN20CPhoneStateCallSetupD1Ev @ 246 NONAME - _ZN20CPhoneStateCallSetupD2Ev @ 247 NONAME - _ZNK11CPhoneState11IsKeyLockOnEv @ 248 NONAME - _ZNK11CPhoneState12IsAutoLockOnEv @ 249 NONAME - _ZNK11CPhoneState14IsSwivelClosedEv @ 250 NONAME - _ZNK11CPhoneState17GetBlockedKeyListEv @ 251 NONAME - _ZNK11CPhoneState17IsMenuBarVisibleLEv @ 252 NONAME - _ZNK11CPhoneState18TopAppIsDisplayedLEv @ 253 NONAME - _ZNK11CPhoneState20IsDTMFEditorVisibleLEv @ 254 NONAME - _ZNK11CPhoneState23NeedToSendToBackgroundLEv @ 255 NONAME - _ZNK11CPhoneState25IsOnScreenDialerSupportedEv @ 256 NONAME - _ZNK11CPhoneState26IsCustomizedDialerVisibleLEv @ 257 NONAME - _ZNK11CPhoneState8SimStateEv @ 258 NONAME - _ZNK15CPhoneStateIdle17IsSpeedDialNumberERK7TDesC16 @ 259 NONAME - _ZTI11CPhoneState @ 260 NONAME - _ZTI15CPhoneStateIdle @ 261 NONAME - _ZTI17CPhoneStateHandle @ 262 NONAME - _ZTI17CPhoneStateInCall @ 263 NONAME - _ZTI18CPhoneStateMachine @ 264 NONAME - _ZTI18CPhoneStateStartup @ 265 NONAME - _ZTI18CPhoneUIController @ 266 NONAME - _ZTI19CPhoneStateIncoming @ 267 NONAME - _ZTI20CPhoneReconnectQuery @ 268 NONAME - _ZTI20CPhoneStateCallSetup @ 269 NONAME - _ZTI23CPhoneDtmfWaitCharTimer @ 270 NONAME - _ZTI23CPhoneKeyEventForwarder @ 271 NONAME - _ZTI24CPhoneSystemEventHandler @ 272 NONAME - _ZTI26CPhoneRemoteControlHandler @ 273 NONAME - _ZTI27CPhoneBtaaDisconnectHandler @ 274 NONAME - _ZTV11CPhoneState @ 275 NONAME - _ZTV15CPhoneStateIdle @ 276 NONAME - _ZTV17CPhoneStateHandle @ 277 NONAME - _ZTV17CPhoneStateInCall @ 278 NONAME - _ZTV18CPhoneStateMachine @ 279 NONAME - _ZTV18CPhoneStateStartup @ 280 NONAME - _ZTV18CPhoneUIController @ 281 NONAME - _ZTV19CPhoneStateIncoming @ 282 NONAME - _ZTV20CPhoneReconnectQuery @ 283 NONAME - _ZTV20CPhoneStateCallSetup @ 284 NONAME - _ZTV23CPhoneDtmfWaitCharTimer @ 285 NONAME - _ZTV23CPhoneKeyEventForwarder @ 286 NONAME - _ZTV24CPhoneSystemEventHandler @ 287 NONAME - _ZTV26CPhoneRemoteControlHandler @ 288 NONAME - _ZTV27CPhoneBtaaDisconnectHandler @ 289 NONAME - _ZThn12_N11CPhoneState15DynInitMenuBarLEiP11CEikMenuBar @ 290 NONAME - _ZThn12_N11CPhoneState16DynInitMenuPaneLEiP12CEikMenuPane @ 291 NONAME - _ZThn12_N11CPhoneState18HandleSystemEventLERK8TWsEvent @ 292 NONAME - _ZThn12_N11CPhoneState19HandleCenRepChangeLERK4TUidj @ 293 NONAME - _ZThn12_N11CPhoneState19HandlePhoneStartupLEv @ 294 NONAME - _ZThn12_N11CPhoneState20HandleKeyLockEnabledEi @ 295 NONAME - _ZThn12_N11CPhoneState22HandleForegroundEventLEi @ 296 NONAME - _ZThn12_N11CPhoneState22HandlePropertyChangedLERK4TUidji @ 297 NONAME - _ZThn12_N11CPhoneState24HandleEnvironmentChangeLEi @ 298 NONAME - _ZThn12_N11CPhoneState26HandleIdleForegroundEventLEv @ 299 NONAME - _ZThn12_N11CPhoneState26HandlePhoneFocusLostEventLEv @ 300 NONAME - _ZThn12_N11CPhoneState27HandlePhoneForegroundEventLEv @ 301 NONAME - _ZThn12_N11CPhoneStateD0Ev @ 302 NONAME - _ZThn12_N11CPhoneStateD1Ev @ 303 NONAME - _ZThn12_N15CPhoneStateIdle26HandleIdleForegroundEventLEv @ 304 NONAME - _ZThn12_N15CPhoneStateIdle26HandlePhoneFocusLostEventLEv @ 305 NONAME - _ZThn12_N15CPhoneStateIdle27HandlePhoneForegroundEventLEv @ 306 NONAME - _ZThn12_N15CPhoneStateIdleD0Ev @ 307 NONAME - _ZThn12_N15CPhoneStateIdleD1Ev @ 308 NONAME - _ZThn12_N17CPhoneStateInCallD0Ev @ 309 NONAME - _ZThn12_N17CPhoneStateInCallD1Ev @ 310 NONAME - _ZThn12_N18CPhoneStateStartup19HandlePhoneStartupLEv @ 311 NONAME - _ZThn12_N18CPhoneStateStartup26HandleIdleForegroundEventLEv @ 312 NONAME - _ZThn12_N18CPhoneStateStartupD0Ev @ 313 NONAME - _ZThn12_N18CPhoneStateStartupD1Ev @ 314 NONAME - _ZThn12_N18CPhoneUIController15DynInitMenuBarLEiP11CEikMenuBar @ 315 NONAME - _ZThn12_N18CPhoneUIController16DynInitMenuPaneLEiP12CEikMenuPane @ 316 NONAME - _ZThn12_N18CPhoneUIController18HandleSystemEventLERK8TWsEvent @ 317 NONAME - _ZThn12_N18CPhoneUIController19HandlePhoneStartupLEv @ 318 NONAME - _ZThn12_N18CPhoneUIController20HandleKeyLockEnabledEi @ 319 NONAME - _ZThn12_N18CPhoneUIController22HandleForegroundEventLEi @ 320 NONAME - _ZThn12_N18CPhoneUIController24HandleEnvironmentChangeLEi @ 321 NONAME - _ZThn12_N18CPhoneUIController26HandleIdleForegroundEventLEv @ 322 NONAME - _ZThn12_N18CPhoneUIController26HandlePhoneFocusLostEventLEv @ 323 NONAME - _ZThn12_N18CPhoneUIController27HandlePhoneForegroundEventLEv @ 324 NONAME - _ZThn12_N18CPhoneUIControllerD0Ev @ 325 NONAME - _ZThn12_N18CPhoneUIControllerD1Ev @ 326 NONAME - _ZThn12_N19CPhoneStateIncoming16DynInitMenuPaneLEiP12CEikMenuPane @ 327 NONAME - _ZThn12_N19CPhoneStateIncoming20HandleKeyLockEnabledEi @ 328 NONAME - _ZThn12_N19CPhoneStateIncomingD0Ev @ 329 NONAME - _ZThn12_N19CPhoneStateIncomingD1Ev @ 330 NONAME - _ZThn12_N20CPhoneStateCallSetupD0Ev @ 331 NONAME - _ZThn12_N20CPhoneStateCallSetupD1Ev @ 332 NONAME - _ZThn16_N11CPhoneState14HandleCommandLEi @ 333 NONAME - _ZThn16_N11CPhoneState15ProcessCommandLEi @ 334 NONAME - _ZThn16_N11CPhoneStateD0Ev @ 335 NONAME - _ZThn16_N11CPhoneStateD1Ev @ 336 NONAME - _ZThn16_N15CPhoneStateIdle14HandleCommandLEi @ 337 NONAME - _ZThn16_N15CPhoneStateIdle15ProcessCommandLEi @ 338 NONAME - _ZThn16_N15CPhoneStateIdleD0Ev @ 339 NONAME - _ZThn16_N15CPhoneStateIdleD1Ev @ 340 NONAME - _ZThn16_N17CPhoneStateInCall14HandleCommandLEi @ 341 NONAME - _ZThn16_N17CPhoneStateInCallD0Ev @ 342 NONAME - _ZThn16_N17CPhoneStateInCallD1Ev @ 343 NONAME - _ZThn16_N18CPhoneStateStartupD0Ev @ 344 NONAME - _ZThn16_N18CPhoneStateStartupD1Ev @ 345 NONAME - _ZThn16_N18CPhoneUIController14HandleCommandLEi @ 346 NONAME - _ZThn16_N18CPhoneUIController15ProcessCommandLEi @ 347 NONAME - _ZThn16_N18CPhoneUIControllerD0Ev @ 348 NONAME - _ZThn16_N18CPhoneUIControllerD1Ev @ 349 NONAME - _ZThn16_N19CPhoneStateIncoming14HandleCommandLEi @ 350 NONAME - _ZThn16_N19CPhoneStateIncomingD0Ev @ 351 NONAME - _ZThn16_N19CPhoneStateIncomingD1Ev @ 352 NONAME - _ZThn16_N20CPhoneStateCallSetup14HandleCommandLEi @ 353 NONAME - _ZThn16_N20CPhoneStateCallSetupD0Ev @ 354 NONAME - _ZThn16_N20CPhoneStateCallSetupD1Ev @ 355 NONAME - _ZThn20_N11CPhoneState20HandleRemConCommandLE25TRemConCoreApiOperationId26TRemConCoreApiButtonAction @ 356 NONAME - _ZThn20_N11CPhoneStateD0Ev @ 357 NONAME - _ZThn20_N11CPhoneStateD1Ev @ 358 NONAME - _ZThn20_N15CPhoneStateIdle20HandleRemConCommandLE25TRemConCoreApiOperationId26TRemConCoreApiButtonAction @ 359 NONAME - _ZThn20_N15CPhoneStateIdleD0Ev @ 360 NONAME - _ZThn20_N15CPhoneStateIdleD1Ev @ 361 NONAME - _ZThn20_N17CPhoneStateInCallD0Ev @ 362 NONAME - _ZThn20_N17CPhoneStateInCallD1Ev @ 363 NONAME - _ZThn20_N18CPhoneStateStartupD0Ev @ 364 NONAME - _ZThn20_N18CPhoneStateStartupD1Ev @ 365 NONAME - _ZThn20_N19CPhoneStateIncomingD0Ev @ 366 NONAME - _ZThn20_N19CPhoneStateIncomingD1Ev @ 367 NONAME - _ZThn20_N20CPhoneStateCallSetupD0Ev @ 368 NONAME - _ZThn20_N20CPhoneStateCallSetupD1Ev @ 369 NONAME - _ZThn24_N11CPhoneState19SetDivertIndicationEi @ 370 NONAME - _ZThn24_N11CPhoneStateD0Ev @ 371 NONAME - _ZThn24_N11CPhoneStateD1Ev @ 372 NONAME - _ZThn24_N15CPhoneStateIdleD0Ev @ 373 NONAME - _ZThn24_N15CPhoneStateIdleD1Ev @ 374 NONAME - _ZThn24_N17CPhoneStateInCallD0Ev @ 375 NONAME - _ZThn24_N17CPhoneStateInCallD1Ev @ 376 NONAME - _ZThn24_N18CPhoneStateStartupD0Ev @ 377 NONAME - _ZThn24_N18CPhoneStateStartupD1Ev @ 378 NONAME - _ZThn24_N19CPhoneStateIncomingD0Ev @ 379 NONAME - _ZThn24_N19CPhoneStateIncomingD1Ev @ 380 NONAME - _ZThn24_N20CPhoneStateCallSetupD0Ev @ 381 NONAME - _ZThn24_N20CPhoneStateCallSetupD1Ev @ 382 NONAME - _ZThn28_NK11CPhoneState17GetBlockedKeyListEv @ 383 NONAME - _ZThn32_N11CPhoneState25HandleNumberEntryClearedLEv @ 384 NONAME - _ZThn32_N15CPhoneStateIdle25HandleNumberEntryClearedLEv @ 385 NONAME - _ZThn32_N17CPhoneStateInCall25HandleNumberEntryClearedLEv @ 386 NONAME - _ZThn32_N19CPhoneStateIncoming25HandleNumberEntryClearedLEv @ 387 NONAME - _ZThn32_N20CPhoneStateCallSetup25HandleNumberEntryClearedLEv @ 388 NONAME - _ZThn36_N11CPhoneState23HandleNumberEntryEditedEv @ 389 NONAME - _ZThn36_N11CPhoneStateD0Ev @ 390 NONAME - _ZThn36_N11CPhoneStateD1Ev @ 391 NONAME - _ZThn36_N15CPhoneStateIdleD0Ev @ 392 NONAME - _ZThn36_N15CPhoneStateIdleD1Ev @ 393 NONAME - _ZThn36_N17CPhoneStateInCallD0Ev @ 394 NONAME - _ZThn36_N17CPhoneStateInCallD1Ev @ 395 NONAME - _ZThn36_N18CPhoneStateStartupD0Ev @ 396 NONAME - _ZThn36_N18CPhoneStateStartupD1Ev @ 397 NONAME - _ZThn36_N19CPhoneStateIncomingD0Ev @ 398 NONAME - _ZThn36_N19CPhoneStateIncomingD1Ev @ 399 NONAME - _ZThn36_N20CPhoneStateCallSetupD0Ev @ 400 NONAME - _ZThn36_N20CPhoneStateCallSetupD1Ev @ 401 NONAME - _ZThn40_NK11CPhoneState11IsKeyLockOnEv @ 402 NONAME - _ZThn40_NK11CPhoneState12IsAutoLockOnEv @ 403 NONAME - _ZThn4_N11CPhoneState12HandleErrorLERK12TPEErrorInfo @ 404 NONAME - _ZThn4_N11CPhoneState25HandlePhoneEngineMessageLEii @ 405 NONAME - _ZThn4_N11CPhoneStateD0Ev @ 406 NONAME - _ZThn4_N11CPhoneStateD1Ev @ 407 NONAME - _ZThn4_N15CPhoneStateIdle25HandlePhoneEngineMessageLEii @ 408 NONAME - _ZThn4_N15CPhoneStateIdleD0Ev @ 409 NONAME - _ZThn4_N15CPhoneStateIdleD1Ev @ 410 NONAME - _ZThn4_N17CPhoneStateInCall25HandlePhoneEngineMessageLEii @ 411 NONAME - _ZThn4_N17CPhoneStateInCallD0Ev @ 412 NONAME - _ZThn4_N17CPhoneStateInCallD1Ev @ 413 NONAME - _ZThn4_N18CPhoneStateMachine11ChangeStateEi @ 414 NONAME - _ZThn4_N18CPhoneStateMachine11PhoneEngineEv @ 415 NONAME - _ZThn4_N18CPhoneStateMachine12PhoneStorageEv @ 416 NONAME - _ZThn4_N18CPhoneStateMachine14SetPhoneEngineEP13MPEPhoneModel @ 417 NONAME - _ZThn4_N18CPhoneStateMachine15PhoneEngineInfoEv @ 418 NONAME - _ZThn4_N18CPhoneStateMachine18CreatePhoneEngineLER14MEngineMonitor @ 419 NONAME - _ZThn4_N18CPhoneStateMachine22SendPhoneEngineMessageEi @ 420 NONAME - _ZThn4_N18CPhoneStateMachine5StateEv @ 421 NONAME - _ZThn4_N18CPhoneStateMachine9SetCallIdEi @ 422 NONAME - _ZThn4_N18CPhoneStateMachineD0Ev @ 423 NONAME - _ZThn4_N18CPhoneStateMachineD1Ev @ 424 NONAME - _ZThn4_N18CPhoneStateStartup25HandlePhoneEngineMessageLEii @ 425 NONAME - _ZThn4_N18CPhoneStateStartupD0Ev @ 426 NONAME - _ZThn4_N18CPhoneStateStartupD1Ev @ 427 NONAME - _ZThn4_N18CPhoneUIController11HandleErrorERK12TPEErrorInfo @ 428 NONAME - _ZThn4_N18CPhoneUIController13HandleMessageEii @ 429 NONAME - _ZThn4_N19CPhoneStateIncoming25HandlePhoneEngineMessageLEii @ 430 NONAME - _ZThn4_N19CPhoneStateIncomingD0Ev @ 431 NONAME - _ZThn4_N19CPhoneStateIncomingD1Ev @ 432 NONAME - _ZThn4_N20CPhoneStateCallSetup25HandlePhoneEngineMessageLEii @ 433 NONAME - _ZThn4_N20CPhoneStateCallSetupD0Ev @ 434 NONAME - _ZThn4_N20CPhoneStateCallSetupD1Ev @ 435 NONAME - _ZThn8_N11CPhoneState14IsNoteVisibleLEv @ 436 NONAME - _ZThn8_N11CPhoneState15HandleKeyEventLERK9TKeyEvent10TEventCode @ 437 NONAME - _ZThn8_N11CPhoneState15HandleLongHashLEv @ 438 NONAME - _ZThn8_N11CPhoneState17HandleKeyMessageLEN15MPhoneKeyEvents22TPhoneKeyEventMessagesE8TKeyCode @ 439 NONAME - _ZThn8_N11CPhoneState18HandleDtmfKeyToneLERK9TKeyEvent10TEventCode @ 440 NONAME - _ZThn8_N11CPhoneState23HandleKeyPressDurationLE8TKeyCode25TTimeIntervalMicroSeconds @ 441 NONAME - _ZThn8_N11CPhoneState24HandleCreateNumberEntryLERK9TKeyEvent10TEventCode @ 442 NONAME - _ZThn8_N11CPhoneState35IsAlphanumericSupportedAndCharInputERK9TKeyEvent @ 443 NONAME - _ZThn8_N11CPhoneStateD0Ev @ 444 NONAME - _ZThn8_N11CPhoneStateD1Ev @ 445 NONAME - _ZThn8_N15CPhoneStateIdle15HandleKeyEventLERK9TKeyEvent10TEventCode @ 446 NONAME - _ZThn8_N15CPhoneStateIdle17HandleKeyMessageLEN15MPhoneKeyEvents22TPhoneKeyEventMessagesE8TKeyCode @ 447 NONAME - _ZThn8_N15CPhoneStateIdleD0Ev @ 448 NONAME - _ZThn8_N15CPhoneStateIdleD1Ev @ 449 NONAME - _ZThn8_N17CPhoneStateInCall17HandleKeyMessageLEN15MPhoneKeyEvents22TPhoneKeyEventMessagesE8TKeyCode @ 450 NONAME - _ZThn8_N17CPhoneStateInCallD0Ev @ 451 NONAME - _ZThn8_N17CPhoneStateInCallD1Ev @ 452 NONAME - _ZThn8_N18CPhoneStateStartup15HandleKeyEventLERK9TKeyEvent10TEventCode @ 453 NONAME - _ZThn8_N18CPhoneStateStartup17HandleKeyMessageLEN15MPhoneKeyEvents22TPhoneKeyEventMessagesE8TKeyCode @ 454 NONAME - _ZThn8_N18CPhoneStateStartup18HandleDtmfKeyToneLERK9TKeyEvent10TEventCode @ 455 NONAME - _ZThn8_N18CPhoneStateStartup24HandleCreateNumberEntryLERK9TKeyEvent10TEventCode @ 456 NONAME - _ZThn8_N18CPhoneStateStartupD0Ev @ 457 NONAME - _ZThn8_N18CPhoneStateStartupD1Ev @ 458 NONAME - _ZThn8_N18CPhoneUIController15HandleKeyEventLERK9TKeyEvent10TEventCode @ 459 NONAME - _ZThn8_N18CPhoneUIControllerD0Ev @ 460 NONAME - _ZThn8_N18CPhoneUIControllerD1Ev @ 461 NONAME - _ZThn8_N19CPhoneStateIncoming15HandleKeyEventLERK9TKeyEvent10TEventCode @ 462 NONAME - _ZThn8_N19CPhoneStateIncoming17HandleKeyMessageLEN15MPhoneKeyEvents22TPhoneKeyEventMessagesE8TKeyCode @ 463 NONAME - _ZThn8_N19CPhoneStateIncoming23HandleKeyPressDurationLE8TKeyCode25TTimeIntervalMicroSeconds @ 464 NONAME - _ZThn8_N19CPhoneStateIncomingD0Ev @ 465 NONAME - _ZThn8_N19CPhoneStateIncomingD1Ev @ 466 NONAME - _ZThn8_N20CPhoneStateCallSetup15HandleKeyEventLERK9TKeyEvent10TEventCode @ 467 NONAME - _ZThn8_N20CPhoneStateCallSetup17HandleKeyMessageLEN15MPhoneKeyEvents22TPhoneKeyEventMessagesE8TKeyCode @ 468 NONAME - _ZThn8_N20CPhoneStateCallSetup24HandleCreateNumberEntryLERK9TKeyEvent10TEventCode @ 469 NONAME - _ZThn8_N20CPhoneStateCallSetupD0Ev @ 470 NONAME - _ZThn8_N20CPhoneStateCallSetupD1Ev @ 471 NONAME - _ZThn8_NK11CPhoneState17IsMenuBarVisibleLEv @ 472 NONAME + _ZN15CPhoneStateIdle14DialVoiceCallLEv @ 114 NONAME + _ZN15CPhoneStateIdle14HandleCommandLEi @ 115 NONAME + _ZN15CPhoneStateIdle14HandleDialingLEi @ 116 NONAME + _ZN15CPhoneStateIdle15HandleKeyEventLERK9TKeyEvent10TEventCode @ 117 NONAME + _ZN15CPhoneStateIdle15ProcessCommandLEi @ 118 NONAME + _ZN15CPhoneStateIdle17DisplayCallSetupLEi @ 119 NONAME + _ZN15CPhoneStateIdle17HandleKeyMessageLEN15MPhoneKeyEvents22TPhoneKeyEventMessagesE8TKeyCode @ 120 NONAME + _ZN15CPhoneStateIdle18HandleSendCommandLEv @ 121 NONAME + _ZN15CPhoneStateIdle19DialMultimediaCallLEv @ 122 NONAME + _ZN15CPhoneStateIdle20DisplayIncomingCallLEi @ 123 NONAME + _ZN15CPhoneStateIdle20HandleRemConCommandLE25TRemConCoreApiOperationId26TRemConCoreApiButtonAction @ 124 NONAME + _ZN15CPhoneStateIdle22OnlyHashInNumberEntryLEv @ 125 NONAME + _ZN15CPhoneStateIdle25HandleNumberEntryClearedLEv @ 126 NONAME + _ZN15CPhoneStateIdle25HandlePhoneEngineMessageLEii @ 127 NONAME + _ZN15CPhoneStateIdle26HandleIdleForegroundEventLEv @ 128 NONAME + _ZN15CPhoneStateIdle26HandlePhoneFocusLostEventLEv @ 129 NONAME + _ZN15CPhoneStateIdle27HandlePhoneForegroundEventLEv @ 130 NONAME + _ZN15CPhoneStateIdle5DialLERK7TDesC16NS_16TPhoneNumberTypeENS_21TDialInitiationMethodE @ 131 NONAME + _ZN15CPhoneStateIdleC1EP18MPhoneStateMachineP23MPhoneViewCommandHandleP19MPhoneCustomization @ 132 NONAME + _ZN15CPhoneStateIdleC2EP18MPhoneStateMachineP23MPhoneViewCommandHandleP19MPhoneCustomization @ 133 NONAME + _ZN15CPhoneStateIdleD0Ev @ 134 NONAME + _ZN15CPhoneStateIdleD1Ev @ 135 NONAME + _ZN15CPhoneStateIdleD2Ev @ 136 NONAME + _ZN16CPhoneCbaManager10UpdateCbaLEi @ 137 NONAME + _ZN16CPhoneCbaManager18UpdateIncomingCbaLEi @ 138 NONAME + _ZN16CPhoneCbaManager7SetCbaLEi @ 139 NONAME + _ZN17CPhoneStateHandle12StateMachineEv @ 140 NONAME + _ZN17CPhoneStateHandle17ViewCommandHandleEv @ 141 NONAME + _ZN17CPhoneStateHandle8InstanceEv @ 142 NONAME + _ZN17CPhoneStateInCall10ConstructLEv @ 143 NONAME + _ZN17CPhoneStateInCall10UpdateCbaLEi @ 144 NONAME + _ZN17CPhoneStateInCall11HandleIdleLEi @ 145 NONAME + _ZN17CPhoneStateInCall12OpenMenuBarLEv @ 146 NONAME + _ZN17CPhoneStateInCall14HandleCommandLEi @ 147 NONAME + _ZN17CPhoneStateInCall15CloseDtmfQueryLEv @ 148 NONAME + _ZN17CPhoneStateInCall15GetRingingCallLEv @ 149 NONAME + _ZN17CPhoneStateInCall16UpdateInCallCbaLEv @ 150 NONAME + _ZN17CPhoneStateInCall17HandleKeyMessageLEN15MPhoneKeyEvents22TPhoneKeyEventMessagesE8TKeyCode @ 151 NONAME + _ZN17CPhoneStateInCall18CallFetchedNumberLERK7TDesC16 @ 152 NONAME + _ZN17CPhoneStateInCall18CreateNumberEntryLEv @ 153 NONAME + _ZN17CPhoneStateInCall18IsVideoCallActiveLEv @ 154 NONAME + _ZN17CPhoneStateInCall19IsVideoCallRingingLEv @ 155 NONAME + _ZN17CPhoneStateInCall19LaunchNewCallQueryLEv @ 156 NONAME + _ZN17CPhoneStateInCall23DisconnectOutgoingCallLEv @ 157 NONAME + _ZN17CPhoneStateInCall25HandleNumberEntryClearedLEv @ 158 NONAME + _ZN17CPhoneStateInCall25HandlePhoneEngineMessageLEii @ 159 NONAME + _ZN17CPhoneStateInCall34PhoneNumberAvailableInPhoneEngineLEi @ 160 NONAME + _ZN17CPhoneStateInCallC1EP18MPhoneStateMachineP23MPhoneViewCommandHandleP19MPhoneCustomization @ 161 NONAME + _ZN17CPhoneStateInCallC2EP18MPhoneStateMachineP23MPhoneViewCommandHandleP19MPhoneCustomization @ 162 NONAME + _ZN17CPhoneStateInCallD0Ev @ 163 NONAME + _ZN17CPhoneStateInCallD1Ev @ 164 NONAME + _ZN17CPhoneStateInCallD2Ev @ 165 NONAME + _ZN18CPhoneStateMachine11ChangeStateEi @ 166 NONAME + _ZN18CPhoneStateMachine11PhoneEngineEv @ 167 NONAME + _ZN18CPhoneStateMachine12PhoneStorageEv @ 168 NONAME + _ZN18CPhoneStateMachine14SetPhoneEngineEP13MPEPhoneModel @ 169 NONAME + _ZN18CPhoneStateMachine15PhoneEngineInfoEv @ 170 NONAME + _ZN18CPhoneStateMachine18CreatePhoneEngineLER14MEngineMonitor @ 171 NONAME + _ZN18CPhoneStateMachine22SendPhoneEngineMessageEi @ 172 NONAME + _ZN18CPhoneStateMachine5StateEv @ 173 NONAME + _ZN18CPhoneStateMachine9SetCallIdEi @ 174 NONAME + _ZN18CPhoneStateMachineC1EP23MPhoneViewCommandHandle @ 175 NONAME + _ZN18CPhoneStateMachineC2EP23MPhoneViewCommandHandle @ 176 NONAME + _ZN18CPhoneStateMachineD0Ev @ 177 NONAME + _ZN18CPhoneStateMachineD1Ev @ 178 NONAME + _ZN18CPhoneStateMachineD2Ev @ 179 NONAME + _ZN18CPhoneStateStartup10ConstructLEv @ 180 NONAME + _ZN18CPhoneStateStartup15HandleKeyEventLERK9TKeyEvent10TEventCode @ 181 NONAME + _ZN18CPhoneStateStartup17HandleKeyMessageLEN15MPhoneKeyEvents22TPhoneKeyEventMessagesE8TKeyCode @ 182 NONAME + _ZN18CPhoneStateStartup18HandleDtmfKeyToneLERK9TKeyEvent10TEventCode @ 183 NONAME + _ZN18CPhoneStateStartup19HandlePhoneStartupLEv @ 184 NONAME + _ZN18CPhoneStateStartup24HandleCreateNumberEntryLERK9TKeyEvent10TEventCode @ 185 NONAME + _ZN18CPhoneStateStartup25HandlePhoneEngineMessageLEii @ 186 NONAME + _ZN18CPhoneStateStartup26HandleIdleForegroundEventLEv @ 187 NONAME + _ZN18CPhoneStateStartup4NewLEP18MPhoneStateMachineP23MPhoneViewCommandHandleP19MPhoneCustomization @ 188 NONAME + _ZN18CPhoneStateStartupC1EP18MPhoneStateMachineP23MPhoneViewCommandHandleP19MPhoneCustomization @ 189 NONAME + _ZN18CPhoneStateStartupC2EP18MPhoneStateMachineP23MPhoneViewCommandHandleP19MPhoneCustomization @ 190 NONAME + _ZN18CPhoneStateStartupD0Ev @ 191 NONAME + _ZN18CPhoneStateStartupD1Ev @ 192 NONAME + _ZN18CPhoneStateStartupD2Ev @ 193 NONAME + _ZN18CPhoneUIController11HandleErrorERK12TPEErrorInfo @ 194 NONAME + _ZN18CPhoneUIController13HandleMessageEii @ 195 NONAME + _ZN18CPhoneUIController14HandleCommandLEi @ 196 NONAME + _ZN18CPhoneUIController15DynInitMenuBarLEiP11CEikMenuBar @ 197 NONAME + _ZN18CPhoneUIController15HandleKeyEventLERK9TKeyEvent10TEventCode @ 198 NONAME + _ZN18CPhoneUIController15ProcessCommandLEi @ 199 NONAME + _ZN18CPhoneUIController16DynInitMenuPaneLEiP12CEikMenuPane @ 200 NONAME + _ZN18CPhoneUIController18HandleSystemEventLERK8TWsEvent @ 201 NONAME + _ZN18CPhoneUIController19HandlePhoneStartupLEv @ 202 NONAME + _ZN18CPhoneUIController20HandleKeyLockEnabledEi @ 203 NONAME + _ZN18CPhoneUIController22HandleForegroundEventLEi @ 204 NONAME + _ZN18CPhoneUIController24HandleEnvironmentChangeLEi @ 205 NONAME + _ZN18CPhoneUIController26HandleIdleForegroundEventLEv @ 206 NONAME + _ZN18CPhoneUIController26HandlePhoneFocusLostEventLEv @ 207 NONAME + _ZN18CPhoneUIController27HandlePhoneForegroundEventLEv @ 208 NONAME + _ZN18CPhoneUIController4NewLEP23MPhoneViewCommandHandle @ 209 NONAME + _ZN18CPhoneUIControllerD0Ev @ 210 NONAME + _ZN18CPhoneUIControllerD1Ev @ 211 NONAME + _ZN18CPhoneUIControllerD2Ev @ 212 NONAME + _ZN19CPhoneStateIncoming10ConstructLEv @ 213 NONAME + _ZN19CPhoneStateIncoming14HandleCommandLEi @ 214 NONAME + _ZN19CPhoneStateIncoming15HandleKeyEventLERK9TKeyEvent10TEventCode @ 215 NONAME + _ZN19CPhoneStateIncoming16DynInitMenuPaneLEiP12CEikMenuPane @ 216 NONAME + _ZN19CPhoneStateIncoming17HandleKeyMessageLEN15MPhoneKeyEvents22TPhoneKeyEventMessagesE8TKeyCode @ 217 NONAME + _ZN19CPhoneStateIncoming20HandleKeyLockEnabledEi @ 218 NONAME + _ZN19CPhoneStateIncoming23HandleAudioPlayStoppedLEv @ 219 NONAME + _ZN19CPhoneStateIncoming23HandleKeyPressDurationLE8TKeyCode25TTimeIntervalMicroSeconds @ 220 NONAME + _ZN19CPhoneStateIncoming25HandleNumberEntryClearedLEv @ 221 NONAME + _ZN19CPhoneStateIncoming25HandlePhoneEngineMessageLEii @ 222 NONAME + _ZN19CPhoneStateIncomingC1EP18MPhoneStateMachineP23MPhoneViewCommandHandleP19MPhoneCustomization @ 223 NONAME + _ZN19CPhoneStateIncomingC2EP18MPhoneStateMachineP23MPhoneViewCommandHandleP19MPhoneCustomization @ 224 NONAME + _ZN19CPhoneStateIncomingD0Ev @ 225 NONAME + _ZN19CPhoneStateIncomingD1Ev @ 226 NONAME + _ZN19CPhoneStateIncomingD2Ev @ 227 NONAME + _ZN20CPhoneReconnectQuery19ShowReconnectQueryLEi @ 228 NONAME + _ZN20CPhoneReconnectQuery9InstanceLEv @ 229 NONAME + _ZN20CPhoneStateCallSetup10ConstructLEv @ 230 NONAME + _ZN20CPhoneStateCallSetup10UpdateCbaLEi @ 231 NONAME + _ZN20CPhoneStateCallSetup12OpenMenuBarLEv @ 232 NONAME + _ZN20CPhoneStateCallSetup14HandleCommandLEi @ 233 NONAME + _ZN20CPhoneStateCallSetup15HandleKeyEventLERK9TKeyEvent10TEventCode @ 234 NONAME + _ZN20CPhoneStateCallSetup16UpdateInCallCbaLEv @ 235 NONAME + _ZN20CPhoneStateCallSetup17HandleKeyMessageLEN15MPhoneKeyEvents22TPhoneKeyEventMessagesE8TKeyCode @ 236 NONAME + _ZN20CPhoneStateCallSetup24HandleCreateNumberEntryLERK9TKeyEvent10TEventCode @ 237 NONAME + _ZN20CPhoneStateCallSetup25HandleNumberEntryClearedLEv @ 238 NONAME + _ZN20CPhoneStateCallSetup25HandlePhoneEngineMessageLEii @ 239 NONAME + _ZN20CPhoneStateCallSetupC1EP18MPhoneStateMachineP23MPhoneViewCommandHandleP19MPhoneCustomization @ 240 NONAME + _ZN20CPhoneStateCallSetupC2EP18MPhoneStateMachineP23MPhoneViewCommandHandleP19MPhoneCustomization @ 241 NONAME + _ZN20CPhoneStateCallSetupD0Ev @ 242 NONAME + _ZN20CPhoneStateCallSetupD1Ev @ 243 NONAME + _ZN20CPhoneStateCallSetupD2Ev @ 244 NONAME + _ZNK11CPhoneState11IsKeyLockOnEv @ 245 NONAME + _ZNK11CPhoneState12IsAutoLockOnEv @ 246 NONAME + _ZNK11CPhoneState14IsSwivelClosedEv @ 247 NONAME + _ZNK11CPhoneState17GetBlockedKeyListEv @ 248 NONAME + _ZNK11CPhoneState17IsMenuBarVisibleLEv @ 249 NONAME + _ZNK11CPhoneState18TopAppIsDisplayedLEv @ 250 NONAME + _ZNK11CPhoneState20IsDTMFEditorVisibleLEv @ 251 NONAME + _ZNK11CPhoneState23NeedToSendToBackgroundLEv @ 252 NONAME + _ZNK11CPhoneState25IsOnScreenDialerSupportedEv @ 253 NONAME + _ZNK11CPhoneState26IsCustomizedDialerVisibleLEv @ 254 NONAME + _ZNK11CPhoneState8SimStateEv @ 255 NONAME + _ZTI11CPhoneState @ 256 NONAME + _ZTI15CPhoneStateIdle @ 257 NONAME + _ZTI17CPhoneStateHandle @ 258 NONAME + _ZTI17CPhoneStateInCall @ 259 NONAME + _ZTI18CPhoneStateMachine @ 260 NONAME + _ZTI18CPhoneStateStartup @ 261 NONAME + _ZTI18CPhoneUIController @ 262 NONAME + _ZTI19CPhoneStateIncoming @ 263 NONAME + _ZTI20CPhoneReconnectQuery @ 264 NONAME + _ZTI20CPhoneStateCallSetup @ 265 NONAME + _ZTI23CPhoneDtmfWaitCharTimer @ 266 NONAME + _ZTI23CPhoneKeyEventForwarder @ 267 NONAME + _ZTI24CPhoneSystemEventHandler @ 268 NONAME + _ZTI26CPhoneRemoteControlHandler @ 269 NONAME + _ZTI27CPhoneBtaaDisconnectHandler @ 270 NONAME + _ZTV11CPhoneState @ 271 NONAME + _ZTV15CPhoneStateIdle @ 272 NONAME + _ZTV17CPhoneStateHandle @ 273 NONAME + _ZTV17CPhoneStateInCall @ 274 NONAME + _ZTV18CPhoneStateMachine @ 275 NONAME + _ZTV18CPhoneStateStartup @ 276 NONAME + _ZTV18CPhoneUIController @ 277 NONAME + _ZTV19CPhoneStateIncoming @ 278 NONAME + _ZTV20CPhoneReconnectQuery @ 279 NONAME + _ZTV20CPhoneStateCallSetup @ 280 NONAME + _ZTV23CPhoneDtmfWaitCharTimer @ 281 NONAME + _ZTV23CPhoneKeyEventForwarder @ 282 NONAME + _ZTV24CPhoneSystemEventHandler @ 283 NONAME + _ZTV26CPhoneRemoteControlHandler @ 284 NONAME + _ZTV27CPhoneBtaaDisconnectHandler @ 285 NONAME + _ZThn12_N11CPhoneState15DynInitMenuBarLEiP11CEikMenuBar @ 286 NONAME + _ZThn12_N11CPhoneState16DynInitMenuPaneLEiP12CEikMenuPane @ 287 NONAME + _ZThn12_N11CPhoneState18HandleSystemEventLERK8TWsEvent @ 288 NONAME + _ZThn12_N11CPhoneState19HandleCenRepChangeLERK4TUidj @ 289 NONAME + _ZThn12_N11CPhoneState19HandlePhoneStartupLEv @ 290 NONAME + _ZThn12_N11CPhoneState20HandleKeyLockEnabledEi @ 291 NONAME + _ZThn12_N11CPhoneState22HandleForegroundEventLEi @ 292 NONAME + _ZThn12_N11CPhoneState22HandlePropertyChangedLERK4TUidji @ 293 NONAME + _ZThn12_N11CPhoneState24HandleEnvironmentChangeLEi @ 294 NONAME + _ZThn12_N11CPhoneState26HandleIdleForegroundEventLEv @ 295 NONAME + _ZThn12_N11CPhoneState26HandlePhoneFocusLostEventLEv @ 296 NONAME + _ZThn12_N11CPhoneState27HandlePhoneForegroundEventLEv @ 297 NONAME + _ZThn12_N11CPhoneStateD0Ev @ 298 NONAME + _ZThn12_N11CPhoneStateD1Ev @ 299 NONAME + _ZThn12_N15CPhoneStateIdle26HandleIdleForegroundEventLEv @ 300 NONAME + _ZThn12_N15CPhoneStateIdle26HandlePhoneFocusLostEventLEv @ 301 NONAME + _ZThn12_N15CPhoneStateIdle27HandlePhoneForegroundEventLEv @ 302 NONAME + _ZThn12_N15CPhoneStateIdleD0Ev @ 303 NONAME + _ZThn12_N15CPhoneStateIdleD1Ev @ 304 NONAME + _ZThn12_N17CPhoneStateInCallD0Ev @ 305 NONAME + _ZThn12_N17CPhoneStateInCallD1Ev @ 306 NONAME + _ZThn12_N18CPhoneStateStartup19HandlePhoneStartupLEv @ 307 NONAME + _ZThn12_N18CPhoneStateStartup26HandleIdleForegroundEventLEv @ 308 NONAME + _ZThn12_N18CPhoneStateStartupD0Ev @ 309 NONAME + _ZThn12_N18CPhoneStateStartupD1Ev @ 310 NONAME + _ZThn12_N18CPhoneUIController15DynInitMenuBarLEiP11CEikMenuBar @ 311 NONAME + _ZThn12_N18CPhoneUIController16DynInitMenuPaneLEiP12CEikMenuPane @ 312 NONAME + _ZThn12_N18CPhoneUIController18HandleSystemEventLERK8TWsEvent @ 313 NONAME + _ZThn12_N18CPhoneUIController19HandlePhoneStartupLEv @ 314 NONAME + _ZThn12_N18CPhoneUIController20HandleKeyLockEnabledEi @ 315 NONAME + _ZThn12_N18CPhoneUIController22HandleForegroundEventLEi @ 316 NONAME + _ZThn12_N18CPhoneUIController24HandleEnvironmentChangeLEi @ 317 NONAME + _ZThn12_N18CPhoneUIController26HandleIdleForegroundEventLEv @ 318 NONAME + _ZThn12_N18CPhoneUIController26HandlePhoneFocusLostEventLEv @ 319 NONAME + _ZThn12_N18CPhoneUIController27HandlePhoneForegroundEventLEv @ 320 NONAME + _ZThn12_N18CPhoneUIControllerD0Ev @ 321 NONAME + _ZThn12_N18CPhoneUIControllerD1Ev @ 322 NONAME + _ZThn12_N19CPhoneStateIncoming16DynInitMenuPaneLEiP12CEikMenuPane @ 323 NONAME + _ZThn12_N19CPhoneStateIncoming20HandleKeyLockEnabledEi @ 324 NONAME + _ZThn12_N19CPhoneStateIncomingD0Ev @ 325 NONAME + _ZThn12_N19CPhoneStateIncomingD1Ev @ 326 NONAME + _ZThn12_N20CPhoneStateCallSetupD0Ev @ 327 NONAME + _ZThn12_N20CPhoneStateCallSetupD1Ev @ 328 NONAME + _ZThn16_N11CPhoneState14HandleCommandLEi @ 329 NONAME + _ZThn16_N11CPhoneState15ProcessCommandLEi @ 330 NONAME + _ZThn16_N11CPhoneStateD0Ev @ 331 NONAME + _ZThn16_N11CPhoneStateD1Ev @ 332 NONAME + _ZThn16_N15CPhoneStateIdle14HandleCommandLEi @ 333 NONAME + _ZThn16_N15CPhoneStateIdle15ProcessCommandLEi @ 334 NONAME + _ZThn16_N15CPhoneStateIdleD0Ev @ 335 NONAME + _ZThn16_N15CPhoneStateIdleD1Ev @ 336 NONAME + _ZThn16_N17CPhoneStateInCall14HandleCommandLEi @ 337 NONAME + _ZThn16_N17CPhoneStateInCallD0Ev @ 338 NONAME + _ZThn16_N17CPhoneStateInCallD1Ev @ 339 NONAME + _ZThn16_N18CPhoneStateStartupD0Ev @ 340 NONAME + _ZThn16_N18CPhoneStateStartupD1Ev @ 341 NONAME + _ZThn16_N18CPhoneUIController14HandleCommandLEi @ 342 NONAME + _ZThn16_N18CPhoneUIController15ProcessCommandLEi @ 343 NONAME + _ZThn16_N18CPhoneUIControllerD0Ev @ 344 NONAME + _ZThn16_N18CPhoneUIControllerD1Ev @ 345 NONAME + _ZThn16_N19CPhoneStateIncoming14HandleCommandLEi @ 346 NONAME + _ZThn16_N19CPhoneStateIncomingD0Ev @ 347 NONAME + _ZThn16_N19CPhoneStateIncomingD1Ev @ 348 NONAME + _ZThn16_N20CPhoneStateCallSetup14HandleCommandLEi @ 349 NONAME + _ZThn16_N20CPhoneStateCallSetupD0Ev @ 350 NONAME + _ZThn16_N20CPhoneStateCallSetupD1Ev @ 351 NONAME + _ZThn20_N11CPhoneState20HandleRemConCommandLE25TRemConCoreApiOperationId26TRemConCoreApiButtonAction @ 352 NONAME + _ZThn20_N11CPhoneStateD0Ev @ 353 NONAME + _ZThn20_N11CPhoneStateD1Ev @ 354 NONAME + _ZThn20_N15CPhoneStateIdle20HandleRemConCommandLE25TRemConCoreApiOperationId26TRemConCoreApiButtonAction @ 355 NONAME + _ZThn20_N15CPhoneStateIdleD0Ev @ 356 NONAME + _ZThn20_N15CPhoneStateIdleD1Ev @ 357 NONAME + _ZThn20_N17CPhoneStateInCallD0Ev @ 358 NONAME + _ZThn20_N17CPhoneStateInCallD1Ev @ 359 NONAME + _ZThn20_N18CPhoneStateStartupD0Ev @ 360 NONAME + _ZThn20_N18CPhoneStateStartupD1Ev @ 361 NONAME + _ZThn20_N19CPhoneStateIncomingD0Ev @ 362 NONAME + _ZThn20_N19CPhoneStateIncomingD1Ev @ 363 NONAME + _ZThn20_N20CPhoneStateCallSetupD0Ev @ 364 NONAME + _ZThn20_N20CPhoneStateCallSetupD1Ev @ 365 NONAME + _ZThn24_N11CPhoneState19SetDivertIndicationEi @ 366 NONAME + _ZThn24_N11CPhoneStateD0Ev @ 367 NONAME + _ZThn24_N11CPhoneStateD1Ev @ 368 NONAME + _ZThn24_N15CPhoneStateIdleD0Ev @ 369 NONAME + _ZThn24_N15CPhoneStateIdleD1Ev @ 370 NONAME + _ZThn24_N17CPhoneStateInCallD0Ev @ 371 NONAME + _ZThn24_N17CPhoneStateInCallD1Ev @ 372 NONAME + _ZThn24_N18CPhoneStateStartupD0Ev @ 373 NONAME + _ZThn24_N18CPhoneStateStartupD1Ev @ 374 NONAME + _ZThn24_N19CPhoneStateIncomingD0Ev @ 375 NONAME + _ZThn24_N19CPhoneStateIncomingD1Ev @ 376 NONAME + _ZThn24_N20CPhoneStateCallSetupD0Ev @ 377 NONAME + _ZThn24_N20CPhoneStateCallSetupD1Ev @ 378 NONAME + _ZThn28_NK11CPhoneState17GetBlockedKeyListEv @ 379 NONAME + _ZThn32_N11CPhoneState25HandleNumberEntryClearedLEv @ 380 NONAME + _ZThn32_N15CPhoneStateIdle25HandleNumberEntryClearedLEv @ 381 NONAME + _ZThn32_N17CPhoneStateInCall25HandleNumberEntryClearedLEv @ 382 NONAME + _ZThn32_N19CPhoneStateIncoming25HandleNumberEntryClearedLEv @ 383 NONAME + _ZThn32_N20CPhoneStateCallSetup25HandleNumberEntryClearedLEv @ 384 NONAME + _ZThn36_N11CPhoneState23HandleNumberEntryEditedEv @ 385 NONAME + _ZThn36_N11CPhoneStateD0Ev @ 386 NONAME + _ZThn36_N11CPhoneStateD1Ev @ 387 NONAME + _ZThn36_N15CPhoneStateIdleD0Ev @ 388 NONAME + _ZThn36_N15CPhoneStateIdleD1Ev @ 389 NONAME + _ZThn36_N17CPhoneStateInCallD0Ev @ 390 NONAME + _ZThn36_N17CPhoneStateInCallD1Ev @ 391 NONAME + _ZThn36_N18CPhoneStateStartupD0Ev @ 392 NONAME + _ZThn36_N18CPhoneStateStartupD1Ev @ 393 NONAME + _ZThn36_N19CPhoneStateIncomingD0Ev @ 394 NONAME + _ZThn36_N19CPhoneStateIncomingD1Ev @ 395 NONAME + _ZThn36_N20CPhoneStateCallSetupD0Ev @ 396 NONAME + _ZThn36_N20CPhoneStateCallSetupD1Ev @ 397 NONAME + _ZThn40_NK11CPhoneState11IsKeyLockOnEv @ 398 NONAME + _ZThn40_NK11CPhoneState12IsAutoLockOnEv @ 399 NONAME + _ZThn4_N11CPhoneState12HandleErrorLERK12TPEErrorInfo @ 400 NONAME + _ZThn4_N11CPhoneState25HandlePhoneEngineMessageLEii @ 401 NONAME + _ZThn4_N11CPhoneStateD0Ev @ 402 NONAME + _ZThn4_N11CPhoneStateD1Ev @ 403 NONAME + _ZThn4_N15CPhoneStateIdle25HandlePhoneEngineMessageLEii @ 404 NONAME + _ZThn4_N15CPhoneStateIdleD0Ev @ 405 NONAME + _ZThn4_N15CPhoneStateIdleD1Ev @ 406 NONAME + _ZThn4_N17CPhoneStateInCall25HandlePhoneEngineMessageLEii @ 407 NONAME + _ZThn4_N17CPhoneStateInCallD0Ev @ 408 NONAME + _ZThn4_N17CPhoneStateInCallD1Ev @ 409 NONAME + _ZThn4_N18CPhoneStateMachine11ChangeStateEi @ 410 NONAME + _ZThn4_N18CPhoneStateMachine11PhoneEngineEv @ 411 NONAME + _ZThn4_N18CPhoneStateMachine12PhoneStorageEv @ 412 NONAME + _ZThn4_N18CPhoneStateMachine14SetPhoneEngineEP13MPEPhoneModel @ 413 NONAME + _ZThn4_N18CPhoneStateMachine15PhoneEngineInfoEv @ 414 NONAME + _ZThn4_N18CPhoneStateMachine18CreatePhoneEngineLER14MEngineMonitor @ 415 NONAME + _ZThn4_N18CPhoneStateMachine22SendPhoneEngineMessageEi @ 416 NONAME + _ZThn4_N18CPhoneStateMachine5StateEv @ 417 NONAME + _ZThn4_N18CPhoneStateMachine9SetCallIdEi @ 418 NONAME + _ZThn4_N18CPhoneStateMachineD0Ev @ 419 NONAME + _ZThn4_N18CPhoneStateMachineD1Ev @ 420 NONAME + _ZThn4_N18CPhoneStateStartup25HandlePhoneEngineMessageLEii @ 421 NONAME + _ZThn4_N18CPhoneStateStartupD0Ev @ 422 NONAME + _ZThn4_N18CPhoneStateStartupD1Ev @ 423 NONAME + _ZThn4_N18CPhoneUIController11HandleErrorERK12TPEErrorInfo @ 424 NONAME + _ZThn4_N18CPhoneUIController13HandleMessageEii @ 425 NONAME + _ZThn4_N19CPhoneStateIncoming25HandlePhoneEngineMessageLEii @ 426 NONAME + _ZThn4_N19CPhoneStateIncomingD0Ev @ 427 NONAME + _ZThn4_N19CPhoneStateIncomingD1Ev @ 428 NONAME + _ZThn4_N20CPhoneStateCallSetup25HandlePhoneEngineMessageLEii @ 429 NONAME + _ZThn4_N20CPhoneStateCallSetupD0Ev @ 430 NONAME + _ZThn4_N20CPhoneStateCallSetupD1Ev @ 431 NONAME + _ZThn8_N11CPhoneState14IsNoteVisibleLEv @ 432 NONAME + _ZThn8_N11CPhoneState15HandleKeyEventLERK9TKeyEvent10TEventCode @ 433 NONAME + _ZThn8_N11CPhoneState15HandleLongHashLEv @ 434 NONAME + _ZThn8_N11CPhoneState17HandleKeyMessageLEN15MPhoneKeyEvents22TPhoneKeyEventMessagesE8TKeyCode @ 435 NONAME + _ZThn8_N11CPhoneState18HandleDtmfKeyToneLERK9TKeyEvent10TEventCode @ 436 NONAME + _ZThn8_N11CPhoneState23HandleKeyPressDurationLE8TKeyCode25TTimeIntervalMicroSeconds @ 437 NONAME + _ZThn8_N11CPhoneState24HandleCreateNumberEntryLERK9TKeyEvent10TEventCode @ 438 NONAME + _ZThn8_N11CPhoneState35IsAlphanumericSupportedAndCharInputERK9TKeyEvent @ 439 NONAME + _ZThn8_N11CPhoneStateD0Ev @ 440 NONAME + _ZThn8_N11CPhoneStateD1Ev @ 441 NONAME + _ZThn8_N15CPhoneStateIdle15HandleKeyEventLERK9TKeyEvent10TEventCode @ 442 NONAME + _ZThn8_N15CPhoneStateIdle17HandleKeyMessageLEN15MPhoneKeyEvents22TPhoneKeyEventMessagesE8TKeyCode @ 443 NONAME + _ZThn8_N15CPhoneStateIdleD0Ev @ 444 NONAME + _ZThn8_N15CPhoneStateIdleD1Ev @ 445 NONAME + _ZThn8_N17CPhoneStateInCall17HandleKeyMessageLEN15MPhoneKeyEvents22TPhoneKeyEventMessagesE8TKeyCode @ 446 NONAME + _ZThn8_N17CPhoneStateInCallD0Ev @ 447 NONAME + _ZThn8_N17CPhoneStateInCallD1Ev @ 448 NONAME + _ZThn8_N18CPhoneStateStartup15HandleKeyEventLERK9TKeyEvent10TEventCode @ 449 NONAME + _ZThn8_N18CPhoneStateStartup17HandleKeyMessageLEN15MPhoneKeyEvents22TPhoneKeyEventMessagesE8TKeyCode @ 450 NONAME + _ZThn8_N18CPhoneStateStartup18HandleDtmfKeyToneLERK9TKeyEvent10TEventCode @ 451 NONAME + _ZThn8_N18CPhoneStateStartup24HandleCreateNumberEntryLERK9TKeyEvent10TEventCode @ 452 NONAME + _ZThn8_N18CPhoneStateStartupD0Ev @ 453 NONAME + _ZThn8_N18CPhoneStateStartupD1Ev @ 454 NONAME + _ZThn8_N18CPhoneUIController15HandleKeyEventLERK9TKeyEvent10TEventCode @ 455 NONAME + _ZThn8_N18CPhoneUIControllerD0Ev @ 456 NONAME + _ZThn8_N18CPhoneUIControllerD1Ev @ 457 NONAME + _ZThn8_N19CPhoneStateIncoming15HandleKeyEventLERK9TKeyEvent10TEventCode @ 458 NONAME + _ZThn8_N19CPhoneStateIncoming17HandleKeyMessageLEN15MPhoneKeyEvents22TPhoneKeyEventMessagesE8TKeyCode @ 459 NONAME + _ZThn8_N19CPhoneStateIncoming23HandleKeyPressDurationLE8TKeyCode25TTimeIntervalMicroSeconds @ 460 NONAME + _ZThn8_N19CPhoneStateIncomingD0Ev @ 461 NONAME + _ZThn8_N19CPhoneStateIncomingD1Ev @ 462 NONAME + _ZThn8_N20CPhoneStateCallSetup15HandleKeyEventLERK9TKeyEvent10TEventCode @ 463 NONAME + _ZThn8_N20CPhoneStateCallSetup17HandleKeyMessageLEN15MPhoneKeyEvents22TPhoneKeyEventMessagesE8TKeyCode @ 464 NONAME + _ZThn8_N20CPhoneStateCallSetup24HandleCreateNumberEntryLERK9TKeyEvent10TEventCode @ 465 NONAME + _ZThn8_N20CPhoneStateCallSetupD0Ev @ 466 NONAME + _ZThn8_N20CPhoneStateCallSetupD1Ev @ 467 NONAME + _ZThn8_NK11CPhoneState17IsMenuBarVisibleLEv @ 468 NONAME diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuicontrol/group/phoneuicontrol.mmp --- a/phoneapp/phoneuicontrol/group/phoneuicontrol.mmp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuicontrol/group/phoneuicontrol.mmp Wed Jun 23 18:12:20 2010 +0300 @@ -89,6 +89,7 @@ LIBRARY featmgr.lib // FeatureManager LIBRARY connmon.lib // RConnectionMonitor LIBRARY avkon.lib // AknTextUtils +LIBRARY hal.lib // RemCon LIBRARY remconcoreapi.lib diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuicontrol/inc/cphonecallheadermanager.h --- a/phoneapp/phoneuicontrol/inc/cphonecallheadermanager.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuicontrol/inc/cphonecallheadermanager.h Wed Jun 23 18:12:20 2010 +0300 @@ -139,12 +139,7 @@ void SetPhoneNumberAvailabilityL( const TInt aNumberLength, const TBool aContactInfoAvailable ); - - /** - * @see MPhoneBubbleManagerUtility. - */ - void GetInCallNumberTextL( TInt aCallId, TDes& aData ) const; - + /** * @see MPhoneBubbleManagerUtility. */ diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuicontrol/inc/cphonekeyeventforwarder.h --- a/phoneapp/phoneuicontrol/inc/cphonekeyeventforwarder.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuicontrol/inc/cphonekeyeventforwarder.h Wed Jun 23 18:12:20 2010 +0300 @@ -182,11 +182,6 @@ */ TBool IsAlphaNumericKey( const TKeyEvent& aKeyEvent ); - /** - * Checks is the given key special character (*, 0, # ) from half-qwerty - * keyboard and conver key code if needed. - */ - TBool ConvertHalfQwertySpecialChar( TUint& aCode, const TKeyEvent& aKeyEvent ); /** * Checks if key should be blocked from phone. diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuicontrol/inc/cphonestate.h --- a/phoneapp/phoneuicontrol/inc/cphonestate.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuicontrol/inc/cphonestate.h Wed Jun 23 18:12:20 2010 +0300 @@ -276,14 +276,20 @@ /** * Show global InfoNote * @param aResourceId resource id to be resolved + * @param aNotificationDialog True if notification + * dialog should be used. */ - IMPORT_C void SendGlobalInfoNoteL( TInt aResourceId ); + IMPORT_C void SendGlobalInfoNoteL( TInt aResourceId, + TBool aNotificationDialog = EFalse ); /** * Show global ErrorNote * @param aResourceId resource id to be resolved + * @param aNotificationDialog True if notification + * dialog should be used. */ - IMPORT_C void SendGlobalErrorNoteL( TInt aResourceId ); + IMPORT_C void SendGlobalErrorNoteL( TInt aResourceId, + TBool aNotificationDialog = EFalse ); /** * Get blocked key list @@ -578,8 +584,11 @@ /** * Show global WarningNote * @param aResourceId resource id to be resolved + * @param aNotificationDialog True if notification dialog + * should be used. */ - IMPORT_C void SendGlobalWarningNoteL( TInt aResourceId ); + IMPORT_C void SendGlobalWarningNoteL( TInt aResourceId, + TBool aNotificationDialog = EFalse ); /** * Checks is the call id a video call. @@ -959,21 +968,11 @@ void HandleInitiatedEmergencyWhileActiveVideoL(); /** - * Shows IMEI note - */ - void HandleShowImeiL(); - - /** * Handles network ciphering info changes */ void HandleCallSecureStatusChangeL( TInt aCallId ); /** - * Shows Life time note - */ - void HandleShowLifeTimerL(); - - /** * Handles change als line command */ void ChangeAlsLineL(); diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuicontrol/inc/cphonestateidle.h --- a/phoneapp/phoneuicontrol/inc/cphonestateidle.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuicontrol/inc/cphonestateidle.h Wed Jun 23 18:12:20 2010 +0300 @@ -22,7 +22,6 @@ // INCLUDES #include "cphonestate.h" -#include "tphonecmdparamspeeddial.h" // FORWARD DECLARATIONS @@ -49,6 +48,22 @@ }; + /** + * Phone number types + * + * EPhoneNumberTypeNotFound - phone number's type was not found + * EPhoneNumberTypeCS - CS call can be made to the phone number + * EPhoneNumberTypeVideo - video call can be made to the phone number + * EPhoneNumberTypeVoip - VoIP call can be made to the address. + */ + enum TPhoneNumberType + { + EPhoneNumberTypeNotFound = -1, + EPhoneNumberTypeCS = 0, + EPhoneNumberTypeVideo, + EPhoneNumberTypeVoip + }; + /** * Destructor. */ @@ -172,33 +187,6 @@ IMPORT_C virtual void HandleDialingL( TInt aCallId ); /** - * This is called when Speed Dial dialog is cancelled or user didn't give - * a valid number. - * @param aDigit: entered digit - */ - IMPORT_C void SpeedDialCanceledL( const TUint& aDigit ); - - /** - * Handle long key press of a number. - */ - IMPORT_C void HandleNumberLongKeyPressL(); - - /** - * Tests whether given number is speed dial number. - * @param aNumber A number to test. - * @return ETrue if given number is speed dial number. - */ - IMPORT_C TBool IsSpeedDialNumber( const TDesC& aNumber ) const; - - /** - * Handles speed dialing. - * @param aDigit Entered digit. - * @param aDialMethod Dial initiation method. - */ - IMPORT_C void SpeedDialL( const TUint& aDigit, - TDialInitiationMethod aDialMethod ); - - /** * Handles send command. */ IMPORT_C virtual void HandleSendCommandL(); @@ -271,16 +259,7 @@ */ TBool CheckAppLaunchingL( const TKeyCode aCode ); - /** - * Returns phone number for specified speed dial location. - * @param aDigit Speed dial digit. - * @param aDigit On return contains speed dial parameters. - * @return Phone number - */ - HBufC* NumberForSpeedDialLocationL( const TUint& aDigit, - TPhoneCmdParamSpeedDial& aSpeedDialParam ) const; - - void HandleVoiceCallCommandL( TBool aSendKey ); + void HandleVoiceCallCommandL(); private: diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuicontrol/inc/cphonestateincall.h --- a/phoneapp/phoneuicontrol/inc/cphonestateincall.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuicontrol/inc/cphonestateincall.h Wed Jun 23 18:12:20 2010 +0300 @@ -192,21 +192,11 @@ void CancelDTMFSendingL(); /** - * Handle EPEMessagePromptSpeedDial - */ - void HandleDTMFPromptSpeedDialL(); - - /** * Sends DTMF sequence to Phone Engine */ void SendDtmfL(); /** - * Sends DTMF speed dial number sequence to Phone Engine - */ - void SendDtmfSpeedDialNumberL(); - - /** * Sends command to view for launching manual DTMF entry */ void LaunchDtmfManualQueryL(); diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuicontrol/inc/mphonecallheadermanagerutility.h --- a/phoneapp/phoneuicontrol/inc/mphonecallheadermanagerutility.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuicontrol/inc/mphonecallheadermanagerutility.h Wed Jun 23 18:12:20 2010 +0300 @@ -39,17 +39,7 @@ virtual void SetPhoneNumberAvailabilityL( const TInt aNumberLength, const TBool aContactInfoAvailable ) = 0; - - /** - * Resolves call header text in InCall-state, - * text could be 'Call 1', 'Call 2', ... - * @param aCallId - Call Id. - * @param aData - The returned data including needed text. - */ - virtual void GetInCallNumberTextL( - TInt aCallId, - TDes& aData ) const = 0; - + /** * Loads strings for displaying in call header. * @param aCallLabelId - Resource Id for longer text. diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuicontrol/inc/tphonecallheaderparam.h --- a/phoneapp/phoneuicontrol/inc/tphonecallheaderparam.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuicontrol/inc/tphonecallheaderparam.h Wed Jun 23 18:12:20 2010 +0300 @@ -107,10 +107,11 @@ /** * Return remote info data + * @return True if secondary CLI is used * @param aCallid call id * @param aData the returned remote info data */ - void GetRemoteInfoDataL( + TBool GetRemoteInfoDataL( const TInt aCallId, TDes& aData ) const; @@ -218,24 +219,6 @@ TPhoneCmdParamCallHeaderData* aCallHeaderData ); /** - * Check if call is private or payphone number. If call is - * Private/PayPhone call then IsCallPrivateOrPayPhone will - * set SetIdentitySpecificCallHeaderData parameters. - * - * @param aCallId Call id. - * @return ETrue if call is private or payphone number. - */ - TBool IsCallPrivateOrPayPhone( const TInt aCallId, TDes& aData ) const; - - /** - * Sets identity specific call header text. - * - * @param aCallId Call id. - * @param aData Identity specific call header text data. - */ - void SetIdentitySpecificCallHeaderData( const TInt aCallId, TDes& aData ) const; - - /** * Concludes does the engine have information of the * phone number. This information is then send to the view. * @param aNumberLength - phone number's length diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuicontrol/src/cphonecallheadermanager.cpp --- a/phoneapp/phoneuicontrol/src/cphonecallheadermanager.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuicontrol/src/cphonecallheadermanager.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -353,23 +353,3 @@ } } -// ----------------------------------------------------------- -// CPhoneCallHeaderManager::GetInCallNumberTextL -// ----------------------------------------------------------- -// -void CPhoneCallHeaderManager::GetInCallNumberTextL( - TInt aCallId, - TDes& aData ) const - { - __LOGMETHODSTARTEND(EPhoneControl, "CPhoneCallHeaderManager::GetInCallNumberTextL( ) "); - // Display "Call n", n = callId-8 for video and callId+1 for voice call - HBufC* tmp = StringLoader::LoadL( - CPhoneMainResourceResolver::Instance()-> - ResolveResourceID( EPhoneInCallNumberText ), - aCallId + ( IsVideoCall( aCallId ) ? -8 : 1 ), - CCoeEnv::Static() ); - - aData = *tmp; - delete tmp; - } - diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuicontrol/src/cphonekeyeventforwarder.cpp --- a/phoneapp/phoneuicontrol/src/cphonekeyeventforwarder.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuicontrol/src/cphonekeyeventforwarder.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -210,46 +210,6 @@ return alphaNumeric; } -// ----------------------------------------------------------------------------- -// CPhoneKeyEventForwarder::ConvertHalfQwertySpecialChar -// ----------------------------------------------------------------------------- -// -TBool CPhoneKeyEventForwarder::ConvertHalfQwertySpecialChar( TUint& aCode, - const TKeyEvent& aKeyEvent ) - { - __LOGMETHODSTARTEND( EPhoneControl, - "CPhoneKeyEventForwarder::ConvertHalfQwertySpecialChar"); - - TBool ret( EFalse ); - TInt keyboard(KErrNotFound); - - if( keyboard == EPtiKeyboardHalfQwerty ) - { - switch ( aKeyEvent.iScanCode ) - { - case EStdKeyLeftShift: - ret = ETrue; - aCode = KPhoneDtmfHashCharacter; - break; - case EStdKeyLeftFunc: - ret = ETrue; - aCode = KPhoneDtmfStarCharacter; - break; - case EStdKeySpace: - ret = ETrue; - aCode = KPhoneDtmf0Character; - break; - default: - break; - } - } - - __PHONELOG1( EBasic, EPhoneControl, - "CPhoneKeyEventForwarder::ConvertHalfQwertySpecialChar =%d ", - ret ); - - return ret; - } // ----------------------------------------------------------------------------- // CPhoneKeyEventForwarder::OfferKeyEventBeforeControlStackL @@ -503,8 +463,6 @@ "CPhoneKeyEventHandler::ConvertKeyCode scan code (%d)", aKeyEvent.iScanCode ); - if( !ConvertHalfQwertySpecialChar( aCode, aKeyEvent ) ) - { switch ( aKeyEvent.iScanCode ) { case EStdKeyEnter: @@ -532,8 +490,7 @@ default: aCode = aKeyEvent.iScanCode; // Use default code break; - } - } + } //switch __PHONELOG1( EBasic, EPhoneControl, "CPhoneKeyEventHandler::ConvertKeyCode aCode (%d)", aCode ); diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuicontrol/src/cphonenumberentrymanager.cpp --- a/phoneapp/phoneuicontrol/src/cphonenumberentrymanager.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuicontrol/src/cphonenumberentrymanager.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -214,7 +214,7 @@ // - activeidle is not the top most application // - any query is not visible // - dialog is not visible ("new call") -// - information note is not visible ("IMEI code", "life timer") +// - information note is not visible ("life timer") // - options menu bar is not visible // - "switch to ..." -operation is not ongoing // ----------------------------------------------------------- diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuicontrol/src/cphonestate.cpp --- a/phoneapp/phoneuicontrol/src/cphonestate.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuicontrol/src/cphonestate.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -38,7 +38,7 @@ #include #include #include -#include +#include #include #include #include @@ -52,6 +52,7 @@ #include #include #include +#include #include "phoneui.pan" #include "cphonestate.h" @@ -246,27 +247,15 @@ HandleInitiatedEmergencyWhileActiveVideoL(); break; - case MEngineMonitor::EPEMessageShowIMEI: - // Stop playing DTMF tone - iStateMachine->SendPhoneEngineMessage( MPEPhoneModel::EPEMessageEndDTMF ); - HandleShowImeiL(); - break; - - case MEngineMonitor::EPEMessageCallSecureStatusChanged: - HandleCallSecureStatusChangeL( aCallId ); - - if ( iCustomization ) - { - iCustomization->HandlePhoneEngineMessageL( aMessage, - aCallId ); - } - break; - - case MEngineMonitor::EPEMessageActivateWarrantyMode: - // Stop playing DTMF tone - iStateMachine->SendPhoneEngineMessage( MPEPhoneModel::EPEMessageEndDTMF ); - HandleShowLifeTimerL(); - break; + case MEngineMonitor::EPEMessageCallSecureStatusChanged: + HandleCallSecureStatusChangeL( aCallId ); + + if ( iCustomization ) + { + iCustomization->HandlePhoneEngineMessageL( aMessage, + aCallId ); + } + break; case MEngineMonitor::EPEMessageIssuingUSSDRequest: { @@ -415,6 +404,8 @@ booleanParam.SetBoolean( audioMute ); iViewCommandHandle->ExecuteCommandL( EPhoneViewActivateMuteUIChanges, &booleanParam ); + + SetTouchPaneButtons(0); } // ----------------------------------------------------------- @@ -825,14 +816,25 @@ void CPhoneState::HandleChangedCallDurationL( TInt aCallId ) { __LOGMETHODSTARTEND(EPhoneControl, "CPhoneState::HandleChangedCallDurationL() "); - // Get the call duration - TTimeIntervalSeconds seconds = - iStateMachine->PhoneEngineInfo()->CallDuration( aCallId ); - - TPhoneCmdParamInteger time; - time.SetInteger(seconds.Int()); - iViewCommandHandle->ExecuteCommandL(EPhoneViewUpdateCallHeaderCallDuration, aCallId, &time); - } + + TInt ret = KErrNone; + TInt isDisplayOn; + + ret = HAL::Get( HALData::EDisplayState, isDisplayOn ); + + // Update only if the display is on or if HAL::Get returns an error, + // in which case display value cannot be trusted. + if ( ret || isDisplayOn ) + { + // Get the call duration + TTimeIntervalSeconds seconds = + iStateMachine->PhoneEngineInfo()->CallDuration( aCallId ); + + TPhoneCmdParamInteger time; + time.SetInteger(seconds.Int()); + iViewCommandHandle->ExecuteCommandL(EPhoneViewUpdateCallHeaderCallDuration, aCallId, &time); + } + } // ----------------------------------------------------------------------------- // CPhoneState::HandleRemoteBusyL @@ -2211,8 +2213,7 @@ if( iCustomization ) { TBuf inCallNumberText( KNullDesC ); - // incall number text could be 'Call 1', 'Call 2', ... - CallheaderManagerL()->GetInCallNumberTextL( aCallId, inCallNumberText ); + // to check if we have VoIP call in question and fix // parameters if needed iCustomization->ModifyCallHeaderTexts( aCallId, &callHeaderParam, @@ -2474,7 +2475,8 @@ // CPhoneState::SendGlobalInfoNoteL // --------------------------------------------------------- // -EXPORT_C void CPhoneState::SendGlobalInfoNoteL( TInt aResourceId ) +EXPORT_C void CPhoneState::SendGlobalInfoNoteL( + TInt aResourceId, TBool aNotificationDialog ) { __LOGMETHODSTARTEND(EPhoneControl, "CPhoneState::SendGlobalInfoNoteL( ) "); __ASSERT_DEBUG( aResourceId, Panic( EPhoneCtrlParameterNotInitialized ) ); @@ -2494,7 +2496,8 @@ CPhoneMainResourceResolver::Instance()-> ResolveResourceID( aResourceId ) ); globalNoteParam.SetTone( EAvkonSIDInformationTone ); - + globalNoteParam.SetNotificationDialog( aNotificationDialog ); + iViewCommandHandle->ExecuteCommandL( EPhoneViewShowGlobalNote, &globalNoteParam ); } @@ -2504,7 +2507,8 @@ // CPhoneUIController::SendGlobalWarningNoteL // --------------------------------------------------------- // -EXPORT_C void CPhoneState::SendGlobalWarningNoteL( TInt aResourceId ) +EXPORT_C void CPhoneState::SendGlobalWarningNoteL( + TInt aResourceId, TBool aNotificationDialog ) { __LOGMETHODSTARTEND(EPhoneControl, "CPhoneState::SendGlobalWarningNoteL( ) "); __ASSERT_DEBUG( aResourceId, Panic( EPhoneCtrlParameterNotInitialized ) ); @@ -2524,7 +2528,8 @@ CPhoneMainResourceResolver::Instance()-> ResolveResourceID( aResourceId ) ); globalNoteParam.SetTone( EAvkonSIDWarningTone ); - + globalNoteParam.SetNotificationDialog( aNotificationDialog ); + iViewCommandHandle->ExecuteCommandL( EPhoneViewShowGlobalNote, &globalNoteParam ); } @@ -2534,7 +2539,8 @@ // CPhoneUIController::SendGlobalErrorNoteL // --------------------------------------------------------- // -EXPORT_C void CPhoneState::SendGlobalErrorNoteL( TInt aResourceId ) +EXPORT_C void CPhoneState::SendGlobalErrorNoteL( + TInt aResourceId, TBool aNotificationDialog ) { __LOGMETHODSTARTEND(EPhoneControl, "CPhoneState::SendGlobalErrorNoteL( ) "); __ASSERT_DEBUG( aResourceId, Panic( EPhoneCtrlParameterNotInitialized ) ); @@ -2553,6 +2559,7 @@ CPhoneMainResourceResolver::Instance()-> ResolveResourceID( aResourceId ) ); globalNoteParam.SetTone( CAknNoteDialog::EErrorTone ); + globalNoteParam.SetNotificationDialog( aNotificationDialog ); iViewCommandHandle->ExecuteCommandL( EPhoneViewShowGlobalNote, &globalNoteParam ); @@ -2849,38 +2856,6 @@ } // ----------------------------------------------------------- -// CPhoneState::HandleShowImeiL -// ----------------------------------------------------------- -// -void CPhoneState::HandleShowImeiL() - { - __LOGMETHODSTARTEND(EPhoneControl, "CPhoneState::HandleShowImeiL( ) "); - - // Fetch IMEI - TBuf serialNumber; - TPEPhoneIdentityParameters phoneIdentityParameters = - iStateMachine->PhoneEngineInfo()->PhoneIdentityParameters(); - serialNumber = phoneIdentityParameters.iSerialNumber; - - HBufC* imeiNoteText = StringLoader::LoadLC( - CPhoneMainResourceResolver::Instance()-> - ResolveResourceID( - EPhonePhoneImeiString ), serialNumber ); - - TPhoneCmdParamGlobalNote noteParam; - noteParam.SetType( EAknGlobalInformationNote ); - noteParam.SetTone( EAvkonSIDInformationTone ); - noteParam.SetText( *imeiNoteText ); - noteParam.SetTimeout( KPhoneNoteNoTimeout ); - - iViewCommandHandle->ExecuteCommandL( - EPhoneViewShowGlobalNote, - ¬eParam ); - - CleanupStack::PopAndDestroy( imeiNoteText ); - } - -// ----------------------------------------------------------- // CPhoneState::HandleCallSecureStatusChangeL // ----------------------------------------------------------- // @@ -2908,53 +2883,6 @@ &callHeaderParam ); } -// ----------------------------------------------------------- -// CPhoneState::HandleShowLifeTimerL -// ----------------------------------------------------------- -// -void CPhoneState::HandleShowLifeTimerL() - { - __LOGMETHODSTARTEND(EPhoneControl, "CPhoneState::HandleShowLifeTimerL( ) "); - - // Fetch LifeTime - TPELifeTimeData lifeTimeData = - iStateMachine->PhoneEngineInfo()->LifeTimerData(); - - TLocale locale; - TBuf lifetimerText; - lifetimerText.NumFixedWidth( - lifeTimeData.iHours, - EDecimal, - KPhoneLifeTimerHoursLength ); - - lifetimerText.Append(locale.TimeSeparator( KTimerMinuteSeparator ) ); - - TBuf mins; - mins.NumFixedWidth( - lifeTimeData.iMinutes, - EDecimal, - KPhoneLifeTimerMinutesLength ); - - lifetimerText.Append(mins); - - HBufC* buf = StringLoader::LoadLC( - CPhoneMainResourceResolver::Instance()-> - ResolveResourceID( - EPhoneLifeTimeFormat ), lifetimerText ); - - TPhoneCmdParamGlobalNote noteParam; - noteParam.SetType( EAknGlobalInformationNote ); - noteParam.SetTone( EAvkonSIDInformationTone ); - noteParam.SetText( *buf ); - noteParam.SetTimeout( KPhoneNoteNoTimeout ); - - iViewCommandHandle->ExecuteCommandL( - EPhoneViewShowGlobalNote, - ¬eParam ); - - CleanupStack::PopAndDestroy( buf ); - } - // --------------------------------------------------------- // CPhoneState::IsVideoCall // --------------------------------------------------------- @@ -3440,6 +3368,7 @@ CPhoneMainResourceResolver::Instance()-> ResolveResourceID( resource ) ); globalNoteParam.SetTone( EAvkonSIDInformationTone ); + globalNoteParam.SetNotificationDialog( ETrue ); iViewCommandHandle->ExecuteCommandL( EPhoneViewShowGlobalNote, &globalNoteParam ); } @@ -3456,6 +3385,11 @@ KPSUidCoreApplicationUIs, KCoreAppUIsAutolockStatus ) > EAutolockOff; + __PHONELOG1( EBasic, + EPhoneControl, + "CPhoneState::IsAutoLockOn() Status: %d", + phoneIsLocked ); + return phoneIsLocked; } @@ -3500,6 +3434,11 @@ { if ( FeatureManager::FeatureSupported( KFeatureIdTouchCallHandling ) ) { + TPhoneCmdParamBoolean muteParam; + muteParam.SetBoolean( iStateMachine->PhoneEngineInfo()->AudioMute() ); + + iViewCommandHandle->ExecuteCommand(EPhoneViewSetMuteFlag,&muteParam); + TBool emergency( EPEStateIdle != iStateMachine->PhoneEngineInfo()->CallState( KPEEmergencyCallId ) ); TPhoneCmdParamBoolean booleanParam; @@ -4709,6 +4648,11 @@ // EXPORT_C void CPhoneState::SetBackButtonActive( TBool aActive ) { + if(IsAutoLockOn() && aActive) { + // keep back button dimmed device lock case + return; + } + if ( FeatureManager::FeatureSupported( KFeatureIdTouchCallHandling ) ) { TPhoneCmdParamBoolean booleanParam; diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuicontrol/src/cphonestatecallsetup.cpp --- a/phoneapp/phoneuicontrol/src/cphonestatecallsetup.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuicontrol/src/cphonestatecallsetup.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -661,12 +661,12 @@ __LOGMETHODSTARTEND(EPhoneControl, "CPhoneStateCallSetup::HandleRemoteTerminatedL( ) "); // Remove call header - iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId ); + /*iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId ); TPhoneCmdParamBoolean globalNotifierParam; globalNotifierParam.SetBoolean( EFalse ); iViewCommandHandle->ExecuteCommandL( - EPhoneViewSetGlobalNotifiersDisabled, &globalNotifierParam ); + EPhoneViewSetGlobalNotifiersDisabled, &globalNotifierParam );*/ // Video call not possible note is shown by // CPhoneErrorMessagesHandler::ShowErrorSpecificNoteL method, @@ -680,11 +680,10 @@ void CPhoneStateCallSetup::HandleAudioOutputChangedL() { __LOGMETHODSTARTEND(EPhoneControl, "CPhoneStateCallSetup::HandleAudioOutputChangedL( ) "); - + + CPhoneState::HandleAudioOutputChangedL(); // Update the call setup CBA UpdateInCallCbaL(); - - CPhoneState::HandleAudioOutputChangedL(); } // ----------------------------------------------------------- diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuicontrol/src/cphonestateidle.cpp --- a/phoneapp/phoneuicontrol/src/cphonestateidle.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuicontrol/src/cphonestateidle.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -28,7 +28,6 @@ #include #include #include -#include #include #include @@ -39,7 +38,6 @@ #include "tphonecmdparamboolean.h" #include "tphonecmdparamglobalnote.h" #include "tphonecmdparamstring.h" -#include "tphonecmdparamspeeddial.h" #include "tphonecmdparamboolean.h" #include "mphonestatemachine.h" #include "phonestatedefinitions.h" @@ -279,22 +277,6 @@ } break; - // number key - case KPhoneDtmf1Character: - case KPhoneDtmf2Character: - case KPhoneDtmf3Character: - case KPhoneDtmf4Character: - case KPhoneDtmf5Character: - case KPhoneDtmf6Character: - case KPhoneDtmf7Character: - case KPhoneDtmf8Character: - case KPhoneDtmf9Character: - if ( aMessage == EPhoneKeyLongPress && IsSimOk() ) - { - HandleNumberLongKeyPressL(); - } - break; - #ifdef RD_INTELLIGENT_TEXT_INPUT case EKeyEnter: if ( IsNumberEntryVisibleL() ) @@ -440,8 +422,6 @@ BeginTransEffectLC( ENumberEntryClose ); BeginUiUpdateLC(); - - SetNumberEntryVisibilityL(EFalse); // Display call setup DisplayCallSetupL( aCallId ); @@ -536,7 +516,7 @@ } case EPhoneNumberAcqCmdCall: - HandleVoiceCallCommandL( EFalse ); + HandleVoiceCallCommandL(); break; case EPhoneNumberAcqCmdSendCommand: HandleSendCommandL(); @@ -688,17 +668,9 @@ else #endif // _DEBUG { - if ( IsSpeedDialNumber( (*phoneNumber) ) ) - { - // Handle speed dial - SpeedDialL( (*phoneNumber)[0], EDialMethodMenuSelection ); - } - else - { - // call the number - iStateMachine->PhoneEngineInfo()->SetPhoneNumber( *phoneNumber ); - DialMultimediaCallL(); - } + // call the number + iStateMachine->PhoneEngineInfo()->SetPhoneNumber( *phoneNumber ); + DialMultimediaCallL(); CleanupStack::PopAndDestroy( phoneNumber ); } @@ -858,116 +830,6 @@ // Remove all notes and dialogs iViewCommandHandle->ExecuteCommandL( EPhoneViewRemovePhoneDialogs ); } - -// ----------------------------------------------------------- -// CPhoneStateIdle::SpeedDialL -// ----------------------------------------------------------- -// -EXPORT_C void CPhoneStateIdle::SpeedDialL( const TUint& aDigit, - TDialInitiationMethod aDialMethod ) - { - __LOGMETHODSTARTEND(EPhoneControl, "CPhoneStateIdle::SpeedDialL( ) "); - - iStateMachine->SendPhoneEngineMessage( MPEPhoneModel::EPEMessageEndDTMF ); - - TPhoneCmdParamSpeedDial speedDialParam; - HBufC* phoneNumber = NumberForSpeedDialLocationL( aDigit, speedDialParam ); - - // Store serviceId received from vmbx handler - iStateMachine->PhoneEngineInfo()->SetServiceIdCommand( speedDialParam.ServiceId() ); - CleanupStack::PushL( phoneNumber ); - - if ( NULL != phoneNumber && KNullDesC() != *phoneNumber ) - { - - - DialL( *phoneNumber, speedDialParam.NumberType(), aDialMethod ); - - if ( IsNumberEntryUsedL() ) - { - BeginTransEffectLC( ENumberEntryClose ); - - iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveNumberEntry ); - - // Set Idle background, if still idle - if ( iStateMachine->State() == this ) - { - SetupIdleScreenInBackgroundL(); - } - - EndTransEffect(); - } - } - else - { - // User cancelled dialog or didn't give a valid number - SpeedDialCanceledL( aDigit ); - } - - CleanupStack::PopAndDestroy( phoneNumber ); - } - -// ----------------------------------------------------------- -// CPhoneStateIdle:SpeedDialCanceledL -// ----------------------------------------------------------- -// -EXPORT_C void CPhoneStateIdle::SpeedDialCanceledL( const TUint& aDigit ) - - { - __LOGMETHODSTARTEND(EPhoneControl, "CPhoneStateIdle::SpeedDialCanceledL( ) "); - if ( IsNumberEntryUsedL() ) - { - if ( aDigit == KPhoneDtmf1Character || - ( aDigit == KPhoneDtmf2Character && - iViewCommandHandle->HandleCommandL( - EPhoneViewIsStraightCallToVideoMailBox ) == EPhoneViewResponseSuccess ) ) - { - // Remove number entry and set idle background on non-touch products - if ( !FeatureManager::FeatureSupported( KFeatureIdTouchCallHandling ) ) - { - iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveNumberEntry ); - - // Set Idle background, if still idle ( f.e not incoming call arrived ) - if ( iStateMachine->State() == this ) - { - // idle screen in the background - SetupIdleScreenInBackgroundL(); - } - } - } - } - } - -// ----------------------------------------------------------- -// CPhoneStateIdle::HandleNumberLongKeyPressL() -// ----------------------------------------------------------- -// -EXPORT_C void CPhoneStateIdle::HandleNumberLongKeyPressL() - { - __LOGMETHODSTARTEND(EPhoneControl, - "CPhoneStateIdle::HandleNumberLongKeyPressL( ) "); - - HBufC* phoneNumber = PhoneNumberFromEntryLC(); - - if ( phoneNumber && IsSpeedDialNumber ( *phoneNumber ) ) - { - SpeedDialL( (*phoneNumber)[0], EDialMethodOneKeyDialing ); - } - - CleanupStack::PopAndDestroy( phoneNumber ); - } - -// ----------------------------------------------------------- -// CPhoneStateIdle::IsSpeedDialNumber() -// ----------------------------------------------------------- -// -EXPORT_C TBool CPhoneStateIdle::IsSpeedDialNumber( - const TDesC& aNumber ) const - { - return ( aNumber.Length() == KPhoneDtmfSpeedDialPrefixLength - && aNumber[0] >= KPhoneDtmf1Character - && aNumber[0] <= KPhoneDtmf9Character ); - } // ----------------------------------------------------------- // CPhoneStateIdle::HandleSendCommandL() @@ -978,7 +840,7 @@ __LOGMETHODSTARTEND( EPhoneControl, "CPhoneStateIdle::HandleSendCommandL()" ); - HandleVoiceCallCommandL( ETrue ); + HandleVoiceCallCommandL(); } // ----------------------------------------------------------- @@ -1318,35 +1180,10 @@ } // ----------------------------------------------------------- -// CPhoneStateIdle::NumberForSpeedDialLocationL -// ----------------------------------------------------------- -// -HBufC* CPhoneStateIdle::NumberForSpeedDialLocationL( - const TUint& aDigit, - TPhoneCmdParamSpeedDial& aSpeedDialParam ) const - { - // Set the speed dial location from the digit in buffer. Character - // '1' means location 1, and so on. - const TInt location = aDigit - KPhoneDtmf1Character + 1; - aSpeedDialParam.SetLocation( location ); - - // Get the number and type from the speed dial location. - HBufC* phoneNumber = HBufC::NewLC( KPhoneNumberEntryBufferSize ); - - TPtr ptr( phoneNumber->Des() ); - aSpeedDialParam.SetPhoneNumber( &ptr ); - iViewCommandHandle->HandleCommandL( - EPhoneViewGetNumberFromSpeedDialLocation, &aSpeedDialParam ); - - CleanupStack::Pop( phoneNumber ); - return phoneNumber; - } - -// ----------------------------------------------------------- // CPhoneStateIdle::HandleVoiceCallCommandL() // ----------------------------------------------------------- // -void CPhoneStateIdle::HandleVoiceCallCommandL( TBool aSendKey ) +void CPhoneStateIdle::HandleVoiceCallCommandL() { __LOGMETHODSTARTEND( EPhoneControl, "CPhoneStateIdle::HandleVoiceCallCommandL()" ); @@ -1374,18 +1211,9 @@ else #endif // _DEBUG { - if ( IsSpeedDialNumber( *phoneNumber ) ) - { - // Handle speed dial - SpeedDialL( (*phoneNumber)[0], aSendKey ? EDialMethodSendCommand : EDialMethodMenuSelection ); - } - else - { - // call the number - iStateMachine->PhoneEngineInfo()->SetPhoneNumber( *phoneNumber ); - DialVoiceCallL(); - } - + // call the number + iStateMachine->PhoneEngineInfo()->SetPhoneNumber( *phoneNumber ); + DialVoiceCallL(); CleanupStack::PopAndDestroy( phoneNumber ); } } diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuicontrol/src/cphonestateincall.cpp --- a/phoneapp/phoneuicontrol/src/cphonestateincall.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuicontrol/src/cphonestateincall.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -204,19 +204,6 @@ case MEngineMonitor::EPEMessageDTMFSendingAborted: CancelDTMFSendingL(); break; - - case MEngineMonitor::EPEMessagePromptSpeedDial: - HandleDTMFPromptSpeedDialL(); - break; - - case MEngineMonitor::EPEMessageSpeedDialNotAssigned: - CPhoneState::SendGlobalErrorNoteL( - EPhoneDtmfSpeedDialNotAssigned ); - break; - - case MEngineMonitor::EPEMessageInvalidSpeedDial: - CPhoneState::SendGlobalErrorNoteL( EPhoneDtmfInvalidSpeedDial ); - break; case MEngineMonitor::EPEMessageAudioVolumeChanged: HandleAudioVolumeChangedL(); @@ -285,6 +272,13 @@ __LOGMETHODSTARTEND(EPhoneControl, "CPhoneStateInCall::HandleIdleL()" ); __ASSERT_DEBUG( aCallId >= 0, Panic( EPhoneCtrlParameterNotInitialized ) ); + + TBool showDialer( EFalse ); + HBufC *phoneNumber = HBufC::NewLC( KPhoneNumberEntryBufferSize ); + TPtr ptr( phoneNumber->Des() ); + TPhoneCmdParamString stringParam; + stringParam.SetString( &ptr ); + // Remove call iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId ); @@ -295,40 +289,39 @@ SetDefaultFlagsL(); if ( IsNumberEntryUsedL() ) { - // Show the number entry if it exists and update cba's. - SetNumberEntryVisibilityL( ETrue ); - - // Close dtmf dialer when call is disconnected. - if ( IsDTMFEditorVisibleL() ) - { - CloseDTMFEditorL(); - - // Display idle screen and update CBA's - DisplayIdleScreenL(); - } - else if ( iOnScreenDialer && IsCustomizedDialerVisibleL() ) + if ( iOnScreenDialer && IsCustomizedDialerVisibleL() ) { CloseCustomizedDialerL(); - // Display idle screen and update CBA's - DisplayIdleScreenL(); - } + } + else + { + iViewCommandHandle->ExecuteCommand( + EPhoneViewGetNumberFromEntry, + &stringParam ); + iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveNumberEntry ); + showDialer = ETrue; + } } - else - { - // Close menu bar, if it is displayed - iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose ); + - if ( !TopAppIsDisplayedL() || IsAutoLockOn() ) - { - // Continue displaying current app but set up the - // idle screen in the background - SetupIdleScreenInBackgroundL(); - } - else - { - // Display idle screen and update CBAs - DisplayIdleScreenL(); - } + // Close menu bar, if it is displayed + iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose ); + + if ( !TopAppIsDisplayedL() || IsAutoLockOn() ) + { + // Continue displaying current app but set up the + // idle screen in the background + SetupIdleScreenInBackgroundL(); + } + else if ( showDialer ) + { + // Open dialer + iViewCommandHandle->ExecuteCommandL( EPhoneViewLaunchLogs, &stringParam ); + } + else + { + // Display idle screen and update CBAs + DisplayIdleScreenL(); } DeleteTouchPaneButtons(); @@ -337,6 +330,7 @@ // Display call termination note, if necessary DisplayCallTerminationNoteL(); + CleanupStack::PopAndDestroy( phoneNumber ); // Go to idle state iStateMachine->ChangeState( EPhoneStateIdle ); } @@ -528,35 +522,6 @@ } // ----------------------------------------------------------- -// CPhoneStateInCall::HandleDtmfPromptSpeedDialL -// ----------------------------------------------------------- -// -void CPhoneStateInCall::HandleDTMFPromptSpeedDialL() - { - __LOGMETHODSTARTEND(EPhoneControl, - "CPhoneStateInCall::HandleDTMFPromptSpeedDialL()" ); - // Remove the Sending... note - iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveNote ); - - // Prompt for speed dial number - HBufC* emptyString = HBufC::NewLC( KPhoneNumberEntryBufferSize ); - TPtr ptr( emptyString->Des() ); - - // If the Search softkey is selected before a speed dial number is entered, - // revert back to the DTMF query - ShowDtmfTextQueryL( - CPhoneMainResourceResolver::Instance()-> - ResolveResourceID( EPhoneDtmfSpeedDialNumberQuery ), - CPhoneMainResourceResolver::Instance()-> - ResolveResourceID( EPhoneSendDtmfEmptyEditBoxCBA ), - CPhoneMainResourceResolver::Instance()-> - ResolveResourceID( EPhoneDtmfSpeedDialNormalEditBoxCBA ), - &ptr ); - - CleanupStack::PopAndDestroy( emptyString ); - } - -// ----------------------------------------------------------- // CPhoneStateInCall::HandleCommandL // ----------------------------------------------------------- // @@ -641,11 +606,6 @@ SendDtmfL(); break; - // DTMF Speed entry - Ok - case EPhoneCmdDtmfSpeedDialOk: - SendDtmfSpeedDialNumberL(); - break; - // DTMF sending - Cancel case EPhoneInCallCmdCancelSendingDtmfString: // Stop the asynchronous sending operation the @@ -971,34 +931,6 @@ CleanupStack::PopAndDestroy( content ); } - -// ----------------------------------------------------------- -// CPhoneStateInCall::SendDtmfSpeedDialNumberL -// ----------------------------------------------------------- -// -void CPhoneStateInCall::SendDtmfSpeedDialNumberL() - { - __LOGMETHODSTARTEND(EPhoneControl, - "CPhoneStateInCall::SendDtmfSpeedDialNumberL()" ); - // First get the DTMF sequence from dialog - TPhoneCmdParamString dtmfSequence; - HBufC *content = HBufC::NewLC( KPEDtmfMaxLength ); - TPtr ptr( content->Des() ); - dtmfSequence.SetString( &ptr ); - iViewCommandHandle->ExecuteCommandL( EPhoneViewGetTextQueryContent, - &dtmfSequence ); - - // Prefix the query content string with the speed dial character '+' - _LIT( KSpeedDialPrefix, "+" ); - ptr.Insert( 0, KSpeedDialPrefix ); - - // Send the DTMF - iStateMachine->PhoneEngineInfo()->SetDtmfStringCommand( ptr ); - iStateMachine->SendPhoneEngineMessage( - MPEPhoneModel::EPEMessageSendDTMF ); - - CleanupStack::PopAndDestroy( content ); - } // ----------------------------------------------------------- // CPhoneStateInCall::LaunchDtmfManualQueryL diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuicontrol/src/cphoneuicontroller.cpp --- a/phoneapp/phoneuicontrol/src/cphoneuicontroller.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuicontrol/src/cphoneuicontroller.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -338,10 +338,6 @@ { __ASSERT_DEBUG( iStateMachine->State(), Panic( EPhoneCtrlInvariant ) ); - // Send key up message to engine so that we wouldn't accidentally play - // any DTMF tone. - iStateMachine->SendPhoneEngineMessage( MPEPhoneModel::EPEMessageEndDTMF ); - return iStateMachine->State()->HandleCommandL( aCommand ); } diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuicontrol/src/tphonecallheaderparam.cpp --- a/phoneapp/phoneuicontrol/src/tphonecallheaderparam.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuicontrol/src/tphonecallheaderparam.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -72,7 +72,7 @@ __PHONELOG2( EBasic, EPhoneControl, "TPhoneCallHeaderParam::SetCallHeaderTexts - NumberType(%d), CLI(%d)", numberType, cli ); __PHONELOG2( EBasic, EPhoneControl, "TPhoneCallHeaderParam::SetCallHeaderTexts - CNAP(%d), AuxLine(%d)", cnap, auxLine ); - if ( !cli && !cnap && ( numberType != EPEPrivateNumber ) ) + if ( !cli && !cnap && numberType != EPEPrivateNumber && numberType != EPEUnknownNumber ) { if ( auxLine ) { @@ -167,17 +167,16 @@ TPhoneCmdParamCallHeaderData::TPhoneTextClippingDirection cnapClippingDirection = TPhoneCmdParamCallHeaderData::ERight; TBuf remoteInfoText( KNullDesC ); - /*If call is Private/PayPhone call then IsCallPrivateOrPayPhone - * will set SetIdentitySpecificCallHeaderData parameters therefore - * there is no need to call GetRemoteInfoDataL.*/ - if ( !IsCallPrivateOrPayPhone( aCallId, remoteInfoText ) ) + TBool secondaryCli = GetRemoteInfoDataL( aCallId, remoteInfoText ); + cnapClippingDirection = TPhoneCmdParamCallHeaderData::ELeft; + + aCallHeaderData->SetCLIText( remoteInfoText, TPhoneCmdParamCallHeaderData::ERight ); + + if (secondaryCli) { - GetRemoteInfoDataL( aCallId, remoteInfoText ); - cnapClippingDirection = TPhoneCmdParamCallHeaderData::ELeft; + aCallHeaderData->SetCNAPText( iStateMachine.PhoneEngineInfo()->RemotePhoneNumber( aCallId ), + cnapClippingDirection ); } - aCallHeaderData->SetCLIText( remoteInfoText, TPhoneCmdParamCallHeaderData::ERight ); - aCallHeaderData->SetCNAPText( iStateMachine.PhoneEngineInfo()->RemotePhoneNumber( aCallId ), - cnapClippingDirection ); } SetCallerImage( aCallId, aCallHeaderData ); @@ -359,13 +358,7 @@ { TBuf remoteInfoText( KNullDesC ); - /*If call is Private/PayPhone call then IsCallPrivateOrPayPhone - * will set SetIdentitySpecificCallHeaderData parameters therefore - * there is no need to call GetRemoteInfoDataL.*/ - if ( !IsCallPrivateOrPayPhone( aCallId, remoteInfoText ) ) - { - GetRemoteInfoDataL( aCallId, remoteInfoText ); - } + GetRemoteInfoDataL( aCallId, remoteInfoText ); aCallHeaderData->SetCLIText( remoteInfoText, TPhoneCmdParamCallHeaderData::ERight ); } @@ -568,15 +561,11 @@ GetCallType( aCallId, aCallHeaderData ); // Set CLI text for the call header - GetRemoteInfoDataL( aCallId, remoteInfoText ); + TBool secondaryCli = GetRemoteInfoDataL( aCallId, remoteInfoText ); if ( remoteInfoText != KNullDesC ) { aCallHeaderData->SetCLIText( remoteInfoText, TPhoneCmdParamCallHeaderData::ERight ); - if ( IsCallPrivateOrPayPhone( aCallId, remoteInfoText ) ) - { - aCallHeaderData->SetCNAPText( remoteInfoText, TPhoneCmdParamCallHeaderData::ERight ); - } - else + if ( secondaryCli ) { aCallHeaderData->SetCNAPText( iStateMachine.PhoneEngineInfo()-> RemotePhoneNumber( aCallId ), TPhoneCmdParamCallHeaderData::ELeft ); @@ -620,39 +609,22 @@ aCallHeaderData ); } -// --------------------------------------------------------------------------- -// TPhoneCallHeaderParam::IsCallPrivateOrPayPhone -// --------------------------------------------------------------------------- -// -TBool TPhoneCallHeaderParam::IsCallPrivateOrPayPhone( const TInt aCallId, TDes& aData ) const - { - __LOGMETHODSTARTEND( EPhoneControl, "TPhoneCallHeaderParam::IsCallPrivateOrPayPhone() "); - __ASSERT_DEBUG( iStateMachine.PhoneEngineInfo(), Panic( EPhoneCtrlInvariant ) ); - TBool ret( EFalse ); - const RMobileCall::TMobileCallRemoteIdentityStatus identity = iStateMachine.PhoneEngineInfo()->RemoteIdentity( aCallId ); - if ( ( iStateMachine.PhoneEngineInfo()->RemotePhoneNumberType( aCallId ) == EPEPrivateNumber ) || - identity == RMobileCall::ERemoteIdentityUnavailableNoCliCoinOrPayphone || - identity == RMobileCall::ERemoteIdentityAvailableNoCliCoinOrPayphone ) - { - SetIdentitySpecificCallHeaderData( aCallId, aData ); - ret = ETrue; - } - - __PHONELOG1( EBasic, EPhoneControl, "TPhoneCallHeaderParam::IsCallPrivateOrPayPhone() - returns = %d ", ret); - return ret; - } + // --------------------------------------------------------------------------- // TPhoneCallHeaderParam::GetRemoteInfoDataL // --------------------------------------------------------------------------- // -void TPhoneCallHeaderParam::GetRemoteInfoDataL( +TBool TPhoneCallHeaderParam::GetRemoteInfoDataL( const TInt aCallId, TDes& aData ) const { __LOGMETHODSTARTEND( EPhoneControl, "TPhoneCallHeaderParam::GetRemoteInfoDataL() "); __PHONELOG1( EBasic, EPhoneControl, "TPhoneCallHeaderParam::GetRemoteInfoDataL() - call id =%d ", aCallId); __ASSERT_DEBUG( iStateMachine.PhoneEngineInfo(), Panic( EPhoneCtrlInvariant ) ); + + TBool secondaryCli(EFalse); + if ( aCallId == KEmergencyCallId ) { // Set emergency label text @@ -660,86 +632,60 @@ } else { + const RMobileCall::TMobileCallRemoteIdentityStatus identity = iStateMachine.PhoneEngineInfo()->RemoteIdentity( aCallId ); // Note next if-statements are in priority order so be careful if you change order // or add new if-statements. if ( iStateMachine.PhoneEngineInfo()->RemoteName( aCallId ).Length() ) { // Display the contact name if it is available aData.Copy( iStateMachine.PhoneEngineInfo()->RemoteName( aCallId ) ); + secondaryCli = ETrue; } else if ( iStateMachine.PhoneEngineInfo()->RemotePartyName( aCallId ).Length() ) { // Display the CNAP or UUS info if it is available. aData.Copy( iStateMachine.PhoneEngineInfo()->RemotePartyName( aCallId ) ); + secondaryCli = ETrue; } else if ( iStateMachine.PhoneEngineInfo()->RemoteCompanyName( aCallId ).Length() ) { // Display the company name if it is available aData.Copy( iStateMachine.PhoneEngineInfo()->RemoteCompanyName( aCallId ) ); } - else if ( iStateMachine.PhoneEngineInfo()->CallState( aCallId ) == EPEStateRinging ) - { - SetIdentitySpecificCallHeaderData( aCallId, aData ); - } - else + else if ( iStateMachine.PhoneEngineInfo()->CallDirection( aCallId ) == RMobileCall::EMobileTerminated ) { - if ( ( iStateMachine.PhoneEngineInfo()->CallState( aCallId ) != EPEStateDialing ) && - ( iStateMachine.PhoneEngineInfo()->CallState( aCallId ) != EPEStateRinging ) && - ( iStateMachine.PhoneEngineInfo()->CallState( aCallId ) != EPEStateAnswering ) ) + if ( EPEPrivateNumber == iStateMachine.PhoneEngineInfo()->RemotePhoneNumberType( aCallId ) ) { - iManagerUtility.GetInCallNumberTextL( aCallId, aData ); + if ( EPECallTypeVoIP == CallHeaderType() ) + { + iManagerUtility.LoadResource( aData, iManagerUtility.Customization()->CustomizeCallHeaderText() ); + } + else + { + // private number + iManagerUtility.LoadResource( aData, EPhoneCLIWithheld ); + } + } + else if ( identity == RMobileCall::ERemoteIdentityUnavailableNoCliCoinOrPayphone || + identity == RMobileCall::ERemoteIdentityAvailableNoCliCoinOrPayphone ) + { + __PHONELOG( EBasic, EPhoneControl, "GetRemoteInfoDataL br2.5: payphone" ); + // Display "Payphone". + iManagerUtility.LoadResource( aData, EPhoneCLIPayphone ); + } + else if ( identity == RMobileCall::ERemoteIdentityUnknown ) + { + __PHONELOG( EBasic, EPhoneControl, "GetRemoteInfoDataL br2.6: unknown number" ); + // Display "Unknown Number". + iManagerUtility.LoadResource( aData, EPhoneCallCLIUnknown ); } } + else if ( iStateMachine.PhoneEngineInfo()->RemotePhoneNumber( aCallId ).Length() ) + { + // Display the number if it is available + aData.Copy( iStateMachine.PhoneEngineInfo()->RemotePhoneNumber( aCallId ) ); + } } + return secondaryCli; } -// --------------------------------------------------------------------------- -// TPhoneCallHeaderParam::SetIdentitySpecificCallHeaderData -// --------------------------------------------------------------------------- -// -void TPhoneCallHeaderParam::SetIdentitySpecificCallHeaderData( const TInt aCallId, TDes& aData ) const - { - __LOGMETHODSTARTEND( EPhoneControl, "TPhoneCallHeaderParam::SetIdentitySpecificCallHeaderData() ") - __ASSERT_DEBUG( iStateMachine.PhoneEngineInfo(), Panic( EPhoneCtrlInvariant ) ); - - const RMobileCall::TMobileCallRemoteIdentityStatus identity = iStateMachine.PhoneEngineInfo()->RemoteIdentity( aCallId ); - const TPEPhoneNumberIdType idType = iStateMachine.PhoneEngineInfo()->RemotePhoneNumberType( aCallId ); - - __PHONELOG1( EBasic, EPhoneControl, "TPhoneCallHeaderParam::SetIdentitySpecificCallHeaderData() - RemoteIdentity: %d ", - identity ) - __PHONELOG1( EBasic, EPhoneControl, "TPhoneCallHeaderParam::SetIdentitySpecificCallHeaderData() - idType: %d ", - idType ) - // If ringing call is emergency call then do not set identity specific info to call header - // because emergency call header doesnt contain identity specific information. - if ( aCallId == KEmergencyCallId ) - { - // do nothing. - } - else if ( idType == EPEPrivateNumber ) - { - // If call header has customized items and callheadertype is voip - // then load customized text. - if ( ( iManagerUtility.Customization() ) && ( CallHeaderType() == EPECallTypeVoIP ) ) - { - // Display private address - iManagerUtility.LoadResource( aData, iManagerUtility.Customization()->CustomizeCallHeaderText() ); - } - else - { - // Display "private number". - iManagerUtility.LoadResource( aData, EPhoneCLIWithheld ); - } - } - else if( ( identity == RMobileCall::ERemoteIdentityUnavailableNoCliCoinOrPayphone ) || - ( identity == RMobileCall::ERemoteIdentityAvailableNoCliCoinOrPayphone ) ) - { - // Display "Payphone". - iManagerUtility.LoadResource( aData, EPhoneCLIPayphone ); - } - else if ( identity == RMobileCall::ERemoteIdentityUnknown ) - { - // Display "Call". - iManagerUtility.LoadResource( aData, EPhoneCall ); - } - } - diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/bwins/phoneuiqtviewadapteru.def --- a/phoneapp/phoneuiqtviewadapter/bwins/phoneuiqtviewadapteru.def Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/bwins/phoneuiqtviewadapteru.def Wed Jun 23 18:12:20 2010 +0300 @@ -89,10 +89,12 @@ ?convertDuration@PhoneUIQtViewAdapter@@AAE?AVQString@@H@Z @ 88 NONAME ; class QString PhoneUIQtViewAdapter::convertDuration(int) ?setBubbleSelectionFlag@PhoneUIQtViewAdapter@@AAEXXZ @ 89 NONAME ; void PhoneUIQtViewAdapter::setBubbleSelectionFlag(void) ?handleCipheringInfoChange@PhoneUIQtViewAdapter@@AAEXHPAVTPhoneCommandParam@@@Z @ 90 NONAME ; void PhoneUIQtViewAdapter::handleCipheringInfoChange(int, class TPhoneCommandParam *) - ?HandlePropertyChangedL@PhoneUIQtViewAdapter@@UAEXABVTUid@@IH@Z @ 91 NONAME ; void PhoneUIQtViewAdapter::HandlePropertyChangedL(class TUid const &, unsigned int, int) + ?openContacts@PhoneUIQtViewAdapter@@AAEXXZ @ 91 NONAME ; void PhoneUIQtViewAdapter::openContacts(void) ?setHidden@PhoneUIQtViewAdapter@@AAEX_N@Z @ 92 NONAME ; void PhoneUIQtViewAdapter::setHidden(bool) - ?SetHiddenL@PhoneUIQtViewAdapter@@AAEX_N@Z @ 93 NONAME ; void PhoneUIQtViewAdapter::SetHiddenL(bool) - ?openContacts@PhoneUIQtViewAdapter@@AAEXXZ @ 94 NONAME ; void PhoneUIQtViewAdapter::openContacts(void) - ?handleWindowDeactivated@PhoneUIQtViewAdapter@@AAEXXZ @ 95 NONAME ; void PhoneUIQtViewAdapter::handleWindowDeactivated(void) - ?handleWindowActivated@PhoneUIQtViewAdapter@@AAEXXZ @ 96 NONAME ; void PhoneUIQtViewAdapter::handleWindowActivated(void) + ?handleWindowDeactivated@PhoneUIQtViewAdapter@@AAEXXZ @ 93 NONAME ; void PhoneUIQtViewAdapter::handleWindowDeactivated(void) + ?SetHiddenL@PhoneUIQtViewAdapter@@AAEX_N@Z @ 94 NONAME ; void PhoneUIQtViewAdapter::SetHiddenL(bool) + ?handleWindowActivated@PhoneUIQtViewAdapter@@AAEXXZ @ 95 NONAME ; void PhoneUIQtViewAdapter::handleWindowActivated(void) + ?hideDeviceDialogs@PhoneUIQtViewAdapter@@AAEXPAVTPhoneCommandParam@@@Z @ 96 NONAME ; void PhoneUIQtViewAdapter::hideDeviceDialogs(class TPhoneCommandParam *) + ?convertToToolBarCommandList@PhoneResourceAdapter@@QBE?AV?$QList@VToolBarItem@PhoneAction@@@@H@Z @ 97 NONAME ; class QList PhoneResourceAdapter::convertToToolBarCommandList(int) const + ?openLogs@PhoneUIQtViewAdapter@@AAEXPAVTPhoneCommandParam@@@Z @ 98 NONAME ; void PhoneUIQtViewAdapter::openLogs(class TPhoneCommandParam *) diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/conf/carmode.qcrml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneapp/phoneuiqtviewadapter/conf/carmode.qcrml Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,5 @@ + + + + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/eabi/phoneuiqtviewadapteru.def --- a/phoneapp/phoneuiqtviewadapter/eabi/phoneuiqtviewadapteru.def Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/eabi/phoneuiqtviewadapteru.def Wed Jun 23 18:12:20 2010 +0300 @@ -101,11 +101,12 @@ _ZN20PhoneUIQtViewAdapter15convertDurationEi @ 100 NONAME _ZN20PhoneUIQtViewAdapter22setBubbleSelectionFlagEv @ 101 NONAME _ZN20PhoneUIQtViewAdapter25handleCipheringInfoChangeEiP18TPhoneCommandParam @ 102 NONAME - _ZN20PhoneUIQtViewAdapter22HandlePropertyChangedLERK4TUidji @ 103 NONAME - _ZThn12_N20PhoneUIQtViewAdapter22HandlePropertyChangedLERK4TUidji @ 104 NONAME - _ZN20PhoneUIQtViewAdapter10SetHiddenLEb @ 105 NONAME - _ZN20PhoneUIQtViewAdapter9setHiddenEb @ 106 NONAME - _ZN20PhoneUIQtViewAdapter12openContactsEv @ 107 NONAME - _ZN20PhoneUIQtViewAdapter21handleWindowActivatedEv @ 108 NONAME - _ZN20PhoneUIQtViewAdapter23handleWindowDeactivatedEv @ 109 NONAME + _ZN20PhoneUIQtViewAdapter10SetHiddenLEb @ 103 NONAME + _ZN20PhoneUIQtViewAdapter12openContactsEv @ 104 NONAME + _ZN20PhoneUIQtViewAdapter21handleWindowActivatedEv @ 105 NONAME + _ZN20PhoneUIQtViewAdapter23handleWindowDeactivatedEv @ 106 NONAME + _ZN20PhoneUIQtViewAdapter9setHiddenEb @ 107 NONAME + _ZN20PhoneUIQtViewAdapter17hideDeviceDialogsEP18TPhoneCommandParam @ 108 NONAME + _ZNK20PhoneResourceAdapter27convertToToolBarCommandListEi @ 109 NONAME + _ZN20PhoneUIQtViewAdapter8openLogsEP18TPhoneCommandParam @ 110 NONAME diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/inc/phonecommandextensionwrapper.h --- a/phoneapp/phoneuiqtviewadapter/inc/phonecommandextensionwrapper.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/inc/phonecommandextensionwrapper.h Wed Jun 23 18:12:20 2010 +0300 @@ -74,6 +74,22 @@ void modifyPushButtonCommandList( const QList &callInfo, QList &buttonCmdList); + + /*! + \fn void modifyToolBarCommandList(QList &menuCmdList) + + Modifies tool bar command list. CallInfo contains current call + information and toolBarCmdList contains current list of tool + bar commands. + Interface can remove/disable commands if the command list contains + unsupported call commands (For example if service doesn't support + conference call) or add commads which should be handled by telephony + call handling (maximum amount of tool bar commands is 4 and list + index 0 is used for right button). + */ + void modifyToolBarCommandList( + const QList &callInfo, + QList &toolBarCmdList); /*! \fn void addMenuActions(QList &menuActions) diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/inc/phoneindicatorcontroller.h --- a/phoneapp/phoneuiqtviewadapter/inc/phoneindicatorcontroller.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/inc/phoneindicatorcontroller.h Wed Jun 23 18:12:20 2010 +0300 @@ -25,6 +25,7 @@ // FORWARD DECLARATION class LogsModel; class LogsFilter; +class XQSettingsKey; class PhoneIndicatorController : public QObject { Q_OBJECT @@ -32,23 +33,28 @@ PhoneIndicatorController(QObject *parent = 0); virtual ~PhoneIndicatorController(); - void setActiveCallData( const TDesC &text, const TDesC &icon ); + void setActiveCallData(); void clearActiveCallData(); void enableActiveCallIndicator(); void disableActiveCallIndicator(); private slots: void updateMissedCallIndicator(const XQSettingsKey &key, const QVariant &value); + void updateDivertIndicator(const XQSettingsKey &key, const QVariant &value); void setMissedallIndicatorData(); + +private: + void updateDiverIndicator(bool activeDiverts); + inline bool compareKeys(const XQSettingsKey &first, const XQSettingsKey &second); private: - HbIndicator m_indicator; - LogsModel *m_logsModel; - LogsFilter *m_missedCallsFilter; - XQSettingsManager * m_setManager; - - QString m_cli; - QString m_callImage; + HbIndicator m_indicator; + LogsModel *m_logsModel; + LogsFilter *m_missedCallsFilter; + XQSettingsManager *m_setManager; + + QString m_cli; + QString m_callImage; }; #endif /* PHONEINDICATORCONTROLLER_H_ */ diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/inc/phonemessagecontroller.h --- a/phoneapp/phoneuiqtviewadapter/inc/phonemessagecontroller.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/inc/phonemessagecontroller.h Wed Jun 23 18:12:20 2010 +0300 @@ -24,6 +24,7 @@ // FORWARD DECLARATION class TPhoneCommandParam; +class XQServiceRequest; class PhoneMessageController : public QObject { @@ -59,6 +60,8 @@ */ void openEditor(QString toField, QString name, QString messageBody = QString()); +private: + XQServiceRequest *mService; }; #endif // PHONEMESSAGECONTROLLER_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/inc/phonenotecontroller.h --- a/phoneapp/phoneuiqtviewadapter/inc/phonenotecontroller.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/inc/phonenotecontroller.h Wed Jun 23 18:12:20 2010 +0300 @@ -26,7 +26,9 @@ // FORWARD DECLARATION class TPhoneCommandParam; class TPhoneCmdParamQuery; +class TPhoneCmdParamGlobalNote; class HbDeviceMessageBox; +class HbDeviceNotificationDialog; class HbDeviceProgressDialog; class HbProgressDialog; class HbMessageBox; @@ -119,14 +121,22 @@ private slots: /*! - \fn void destroyDialog () + \fn void destroyDialog() - Slot is called when global note is closed. + Slot is called when device message box is closed. */ void destroyDialog(); /*! + \fn void destroyNotification() + + Slot is called when device notification dialog is closed. + + */ + void destroyNotification(); + + /*! \fn void removeMappings () Slot is called when note or query is closed. @@ -180,11 +190,26 @@ This method shows global wait note. */ void showGlobalWaitNote(TPhoneCmdParamQuery* params); + + /*! + \fn void showDeviceMessageBox() + + This method shows device message box. + */ + void showDeviceMessageBox(TPhoneCmdParamGlobalNote* params); + + /*! + \fn void showDeviceNotificationDialog() + + This method shows device notification dialog. + */ + void showDeviceNotificationDialog(TPhoneCmdParamGlobalNote* params); private: QTimer *m_timer; QList m_messageBoxList; + QList m_notificationList; HbDeviceProgressDialog *m_progressDialog; HbProgressDialog *m_dtmfNote; HbMessageBox *m_queryNote; diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/inc/phoneresourceadapter.h --- a/phoneapp/phoneuiqtviewadapter/inc/phoneresourceadapter.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/inc/phoneresourceadapter.h Wed Jun 23 18:12:20 2010 +0300 @@ -112,6 +112,16 @@ Returns HbAction list. */ QList convertToHbActions(int symbianResourceId) const; + + /*! + \fn QString PhoneResourceAdapter::convertToToolBarCommandList() + + Converts given Symbian command id to tool bar command list. + + Returns command list. + */ + QList convertToToolBarCommandList( + int symbianResourceId ) const; protected: diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/inc/phoneuicommandcontroller.h --- a/phoneapp/phoneuiqtviewadapter/inc/phoneuicommandcontroller.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/inc/phoneuicommandcontroller.h Wed Jun 23 18:12:20 2010 +0300 @@ -68,7 +68,7 @@ /*! \fn void pushButtonActionsForCall () - Returns push button actions actions for call. + Returns push button actions for call. */ QMap pushButtonActionsForCall( @@ -79,6 +79,19 @@ int serviceId, int callId); + /*! + \fn void toolBarActions () + + Returns tool bar actions for call. + + */ + QList toolBarActions( + int resourceId, + QMap callStates, + QMap serviceIds, + int serviceId, + int callId); + private: /*! @@ -88,7 +101,7 @@ */ QList menuCommands( - QMap callStates, QMap serviceIds ); + QMap callStates, QMap serviceIds) const; /*! \fn void addMenuItems() @@ -103,7 +116,7 @@ Maps ui command extension commands to phone app commands. */ - int mapCommand(int command); + int mapCommand(int command) const; /*! \fn void commandExtension() @@ -119,7 +132,7 @@ Returns service's plugin uid by service id. */ TUid ResolveImplementationUidL( - TUint32 aServiceId, TServicePropertyName aPropertyName ); + TUint32 aServiceId, TServicePropertyName aPropertyName ) const; /*! \fn void MenuExtensionL() @@ -142,7 +155,64 @@ Checks are all calls made by same service (id). Returns true when same service used. */ - bool areServicesSame(QMap callStates, QMap serviceIds); + bool areServicesSame(QMap callStates, QMap serviceIds) const; + + /*! + \fn void setJoinFlag() + + Sets conference join button flag. + */ + void setJoinFlag(QMap callStates, QMap serviceIds) const; + + /*! + \fn void setHoldFlag() + + Sets hold button flag. + */ + void setHoldFlag(int callState) const; + + /*! + \fn void setOutgoingFlag() + + Sets outgoing call button flag. + */ + void setOutgoingFlag(QList callStates) const; + + /*! + \fn void setConferenceFlag() + + Sets conference call button flag. (Flag will be true when call + state list contains held/active conference). + */ + void setConferenceFlag(QList callStates) const; + + /*! + \fn void setMulticallFlag() + + Sets multi call button flag. (Flag will be set as true when active + and held calls exists). + */ + void setMultiCallFlag(QList callStates) const; + + /*! + \fn void mapToExtensionToolBarItems() + + Maps phone action tool bar item list to ui command extension + tool bar item list. + */ + void mapToExtensionToolBarItems( + const QList &sourceList, + QList &toolBarCmdList) const; + + /*! + \fn void mapToPhoneActionToolBarItems() + + Maps ui command extension tool bar item list to phone action + tool bar item list. + */ + void mapToPhoneActionToolBarItems( + const QList &sourceList, + QList &commandList) const; /*! \fn void buttonCommandList() @@ -150,16 +220,16 @@ Returns push button command list. */ QList buttonCommandList(int callState, - bool emergencyCall, - bool sameServices, - QList callStates); + bool emergencyCall, + QList callStates) const; /*! \fn void buttonCommandList() Maps push button command to phone action. */ - PhoneAction *mapCommandToAction(int callState); + PhoneAction *mapCommandToAction(int command, + bool disabled=false) const; diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/inc/phoneuiqtbuttonscontroller.h --- a/phoneapp/phoneuiqtviewadapter/inc/phoneuiqtbuttonscontroller.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/inc/phoneuiqtbuttonscontroller.h Wed Jun 23 18:12:20 2010 +0300 @@ -29,11 +29,16 @@ enum PhoneButtonFlag { - Hold = 0x02, // Hold - Ihf = 0x04, // Ihf - Wired = 0x08, // Wired - Btaa = 0x10, // Btaa - DisableJoin = 0x20 // Should join option be disabled + Hold = 0x02, // Hold + Ihf = 0x04, // Ihf + Wired = 0x08, // Wired + Btaa = 0x10, // Btaa + DisableJoin = 0x20, // Should join option be disabled + Conference = 0x40, // Conference call active + Mute = 0x80, // Mute + MultiCall = 0x100, // Multi call + FullConference = 0x200, // Max member count in conference + Outgoing = 0x400 // Outgoing call }; Q_DECLARE_FLAGS(PhoneButtonFlags, PhoneButtonFlag) diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/inc/phoneuiqtviewadapter.h --- a/phoneapp/phoneuiqtviewadapter/inc/phoneuiqtviewadapter.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/inc/phoneuiqtviewadapter.h Wed Jun 23 18:12:20 2010 +0300 @@ -28,7 +28,6 @@ #include #include #include "mphoneviewcommandhandle.h" -#include "mphonepubsubobserver.h" #include "phoneaction.h" class PhoneUIQtViewIF; @@ -42,11 +41,11 @@ class TelephonyService; class QKeyEvent; class PhoneIndicatorController; +class PhoneVisibilityHandler; class PHONEUIQTVIEWADAPTER_EXPORT PhoneUIQtViewAdapter : public QObject, - public MPhoneViewCommandHandle, - public MPhonePubSubObserver + public MPhoneViewCommandHandle { Q_OBJECT @@ -148,20 +147,7 @@ Returns pointer to PhoneNoteController */ PhoneNoteController* noteController() const; - -public: // from MPhonePubSubObserver - /** - * This function is called when there is property value change. - * @param aCategory Category of the property - * @param aKey Property key that is changed - * @param aValue New property value - */ - void HandlePropertyChangedL( - const TUid& aCategory, - const TUint aKey, - const TInt aValue); - private slots: @@ -425,6 +411,13 @@ void bringToForeground(); /*! + \fn void PhoneUIQtViewAdapter::hideDeviceDialogs() + + This method brings application top of devicedialogs. + */ + void hideDeviceDialogs(TPhoneCommandParam *commandParam); + + /*! \fn void PhoneUIQtViewAdapter::showGlobalNote() This method shows global note. @@ -537,6 +530,12 @@ This method opens contacts application. */ void openContacts(); + + /*! + /fn void openLogs() + This method opens logs/dialer application. + */ + void openLogs(TPhoneCommandParam *commandParam); private: @@ -552,7 +551,8 @@ PhoneIndicatorController *m_indicatorController; bool m_dialpadAboutToClose; bool m_homeScreenToForeground; - bool m_carModeEnabled; + PhoneVisibilityHandler *m_visibilityHandler; + bool m_clearDialpadOnClose; }; #endif // PHONEUIQTVIEWADAPTER_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/inc/phoneviewcommanddefinitions.h --- a/phoneapp/phoneuiqtviewadapter/inc/phoneviewcommanddefinitions.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/inc/phoneviewcommanddefinitions.h Wed Jun 23 18:12:20 2010 +0300 @@ -94,9 +94,6 @@ EPhoneViewStartCapturingKey, EPhoneViewStopCapturingKey, EPhoneViewSetGlobalNotifiersDisabled, - EPhoneViewSetSpeedDialLocation, - EPhoneViewGetNumberFromSpeedDialLocation, - EPhoneViewAssignSpeedDialLocation, EPhoneViewGetHoldFlag, EPhoneViewSetHoldFlag, EPhoneViewSetSoftRejectFlag, @@ -235,6 +232,9 @@ EPhoneViewBackButtonActive, EPhoneViewHsToForegroundAfterCall, EPhoneViewOpenContacts, + EPhoneViewSetIhfFlag, + EPhoneViewSetMuteFlag, + EPhoneViewLaunchLogs, EPhoneAmountOfCommands, // Don't remove this, this should always be the last in list. }; diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/inc/phonevisibilityhandler.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneapp/phoneuiqtviewadapter/inc/phonevisibilityhandler.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,122 @@ +/* +* 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: Adjusts visibility of Phone app in device lock situations. +* +*/ + +#ifndef PHONEVISIBILITYHANDLER_H +#define PHONEVISIBILITYHANDLER_H + +#include + +#include "mphonepubsubobserver.h" +#include +#include + +using namespace QtMobility; + +class CEikonEnv; +class PhoneUIQtViewIF; + +/*! + * \class PhoneVisibilityHandler + * \brief Adjusts visibility of Phone application in device lock situations. +*/ +class PhoneVisibilityHandler : + public QObject, + public MPhonePubSubObserver +{ + Q_OBJECT + + enum AdjustAction { + ForceOnTop, + BringForwards, + KeepCurrentPos, + SendToBack + }; + +public: + + /** + * Constructor. + */ + PhoneVisibilityHandler(PhoneUIQtViewIF &view, QObject *parent = 0); + + /** + * Destructor. + */ + ~PhoneVisibilityHandler(); + +public: + /** + * Control visiblity + */ + void bringToForeground(); + void sendToBackground(bool homeScreenForeground); + void hideDeviceDialogs(bool hide); + + int ordinalPosition(); + +public: // from MPhonePubSubObserver + + /** + * This function is called when there is property value change. + * @param aCategory Category of the property + * @param aKey Property key that is changed + * @param aValue New property value + */ + void HandlePropertyChangedL( + const TUid& aCategory, + const TUint aKey, + const TInt aValue); + +private: + + /** + * Adjusts visibility based on current call and device security statuses. + */ + void adjustVisibility(AdjustAction action); + +private slots: + + /** + * QValueSpaceSubscriber has notified that Car Mode value has changed by calling this slot. + */ + void carModeChanged(); + +private: + /** Phone view */ + PhoneUIQtViewIF &m_view; + + /** Cached pointer to Eikon environment. Not own.*/ + CEikonEnv *m_eikonEnv; + + /** Car mode effects visibility */ + bool m_carModeEnabled; + + /** Hide device dialogs */ + bool m_hideDeviceDialogs; + + /** Device lock enabled */ + bool m_deviceLockEnabled; + + /** Subscribes to Car Mode changes */ + QValueSpaceSubscriber* m_carModeSubscriber; + + /** Car Mode publisher */ + QValueSpacePublisher* m_carModePublisher; + +}; + +#endif // PHONEVISIBILITYHANDLER_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/phoneuiqtviewadapter.pri --- a/phoneapp/phoneuiqtviewadapter/phoneuiqtviewadapter.pri Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/phoneuiqtviewadapter.pri Wed Jun 23 18:12:20 2010 +0300 @@ -26,7 +26,7 @@ HEADERS += ./inc/phonecommandextensionwrapper.h HEADERS += ./inc/phonemessagecontroller.h HEADERS += ./inc/phoneindicatorcontroller.h - +HEADERS += ./inc/phonevisibilityhandler.h SOURCES += ./src/phoneuiqtviewadapter.cpp SOURCES += ./src/phoneuiqtbuttonscontroller.cpp @@ -38,3 +38,5 @@ SOURCES += ./src/phonecommandextensionwrapper.cpp SOURCES += ./src/phonemessagecontroller.cpp SOURCES += ./src/phoneindicatorcontroller.cpp +SOURCES += ./src/phonevisibilityhandler.cpp + diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/phoneuiqtviewadapter.pro --- a/phoneapp/phoneuiqtviewadapter/phoneuiqtviewadapter.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/phoneuiqtviewadapter.pro Wed Jun 23 18:12:20 2010 +0300 @@ -17,7 +17,8 @@ TEMPLATE = lib TARGET = phoneuiqtviewadapter -CONFIG += hb +CONFIG += hb mobility +MOBILITY = publishsubscribe symbian { TARGET.CAPABILITY = ALL -TCB @@ -45,14 +46,27 @@ -lxqsettingsmanager \ -llogsengine \ -lxqplugins \ - -lakncapserverclient + -lakncapserverclient \ + -ltelephonyservice \ + -lapgrfx \ + -lavkon \ + -lws32 \ + -lcone + defFiles = "$${LITERAL_HASH}ifdef WINS" \ "DEFFILE bwins/phoneuiqtviewadapter.def" \ "$${LITERAL_HASH}else" \ "DEFFILE eabi/phoneuiqtviewadapter.def" \ "$${LITERAL_HASH}endif" - MMP_RULES += defFiles + MMP_RULES += defFiles + + #qcrml export + BLD_INF_RULES.prj_exports += "./conf/carmode.qcrml c:/resource/qt/crml/carmode.qcrml " + crml.sources = ./conf/carmode.qcrml + crml.path = c:/resource/qt/crml + DEPLOYMENT += crml + } # Input diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/src/phonecommandextensionwrapper.cpp --- a/phoneapp/phoneuiqtviewadapter/src/phonecommandextensionwrapper.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/src/phonecommandextensionwrapper.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -64,6 +64,15 @@ } } +void PhoneCommandExtensionWrapper::modifyToolBarCommandList( + const QList &callInfo, + QList &toolBarCmdList) +{ + if (m_plugin) { + m_plugin->modifyToolBarCommandList(callInfo, toolBarCmdList); + } +} + void PhoneCommandExtensionWrapper::addMenuActions( const QList &callInfo, QList &menuActions) diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/src/phoneindicatorcontroller.cpp --- a/phoneapp/phoneuiqtviewadapter/src/phoneindicatorcontroller.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/src/phoneindicatorcontroller.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -17,43 +17,68 @@ #include "phoneindicatorcontroller.h" #include "phoneindicators.h" +#include "qtphonelog.h" -#include -#include +#include +#include #ifdef Q_OS_SYMBIAN #include #include -#include -#include +#include +#include #endif +namespace PhoneIndicatorControllerKeys{ + const XQSettingsKey missedCallsSettingsKey( XQSettingsKey::TargetCentralRepository, + KCRUidLogs.iUid, KLogsNewMissedCalls ); + + const XQSettingsKey unconditionalCFKey( XQSettingsKey::TargetCentralRepository, + KCRUidCtsyCallForwardingIndicator.iUid, KCtsyUnconditionalCFStatus ); + + const XQSettingsKey currentCFKey( XQSettingsKey::TargetCentralRepository, + KCRUidCtsyCallForwardingIndicator.iUid, KCtsyCallForwardingIndicator ); +} + + + PhoneIndicatorController::PhoneIndicatorController(QObject *parent): QObject(parent), m_logsModel(0), m_missedCallsFilter(0) { + PHONE_TRACE #ifdef Q_OS_SYMBIAN m_setManager = new XQSettingsManager(this); - - XQSettingsKey settingsKey( XQSettingsKey::TargetCentralRepository, - KCRUidLogs.iUid, KLogsNewMissedCalls ); - - bool ok = connect( m_setManager, + connect( m_setManager, SIGNAL( valueChanged(const XQSettingsKey & ,const QVariant &)), this, SLOT(updateMissedCallIndicator(XQSettingsKey, QVariant))); - ASSERT( ok ); - ok = false; - ok = m_setManager->startMonitoring( settingsKey ); - ASSERT(ok); + + connect( m_setManager, + SIGNAL( valueChanged(const XQSettingsKey & ,const QVariant &)), + this, SLOT(updateDivertIndicator(XQSettingsKey, + QVariant))); - qRegisterMetaType("PhoneIndicatorInfo"); - + m_setManager->startMonitoring( PhoneIndicatorControllerKeys::missedCallsSettingsKey ); + m_setManager->startMonitoring( PhoneIndicatorControllerKeys::unconditionalCFKey, + XQSettingsManager::TypeByteArray); + m_setManager->startMonitoring( PhoneIndicatorControllerKeys::currentCFKey, + XQSettingsManager::TypeByteArray); + + qRegisterMetaType("PhoneIndicatorInfo"); + QByteArray bytes = m_setManager->readItemValue( + PhoneIndicatorControllerKeys::unconditionalCFKey).toByteArray(); + if ( m_setManager->error() == XQSettingsManager::NoError ){ + int cfStatus=0; + memcpy(&cfStatus, bytes.data_ptr()->array, sizeof(int)); + updateDiverIndicator(cfStatus & KCFVoiceForwarded); + } #endif } PhoneIndicatorController::~PhoneIndicatorController() { #ifdef Q_OS_SYMBIAN + XQPublishAndSubscribeSettingsKey missedCallCountKey( (qint32)KCRUidLogs.iUid, (quint32)KLogsNewMissedCalls ); m_setManager->stopMonitoring(missedCallCountKey); @@ -63,11 +88,10 @@ #endif } -void PhoneIndicatorController::setActiveCallData( - const TDesC &text, const TDesC &icon ) +void PhoneIndicatorController::setActiveCallData() { - m_cli = QString::fromUtf16 (text.Ptr (), text.Length ()); - m_callImage = QString::fromUtf16 (icon.Ptr (), icon.Length ()); + m_cli = hbTrId("txt_phone_dblist_ongoing_call"); + m_callImage = "qtg_mono_call";//QString::fromUtf16 (icon.Ptr (), icon.Length ()); } void PhoneIndicatorController::clearActiveCallData() @@ -103,7 +127,8 @@ const XQSettingsKey &key, const QVariant &value) { #ifdef Q_OS_SYMBIAN - if ( key.key() == (quint32)KLogsNewMissedCalls ){ + + if (compareKeys(key, PhoneIndicatorControllerKeys::missedCallsSettingsKey) ){ if ( value.toInt() == 0 ){ QString indicatorType(indicatorName(PhoneMissedCallIndicator)); m_indicator.deactivate(indicatorType); @@ -124,16 +149,33 @@ #endif } +void PhoneIndicatorController::updateDivertIndicator( + const XQSettingsKey &key, const QVariant &value) +{ + PHONE_TRACE + if ( compareKeys( key, PhoneIndicatorControllerKeys::currentCFKey ) ){ + PHONE_DEBUG("currentCfKey"); + int cfStatus = value.toInt(); + updateDiverIndicator( cfStatus & KCFVoiceForwarded); + } else if (compareKeys(key, PhoneIndicatorControllerKeys::unconditionalCFKey )){ + QByteArray bytes = value.toByteArray(); + // Convert QByteArray elements into integer + // Conversation does not care about sign bit + int status; + memcpy(&status, bytes.data_ptr()->array, sizeof(int)); + updateDiverIndicator(status & KCFVoiceForwarded); + } +} + void PhoneIndicatorController::setMissedallIndicatorData() { #ifdef Q_OS_SYMBIAN - XQSettingsKey settingsKey( XQSettingsKey::TargetCentralRepository, - KCRUidLogs.iUid, KLogsNewMissedCalls ); QString indicatorType(indicatorName(PhoneMissedCallIndicator)); - int missedCallCount = m_setManager->readItemValue( settingsKey, - XQSettingsManager::TypeInt ).toInt(); + int missedCallCount = m_setManager->readItemValue( + PhoneIndicatorControllerKeys::missedCallsSettingsKey, + XQSettingsManager::TypeInt ).toInt(); if ( missedCallCount > 0 ) { QVariantMap parameters; @@ -170,12 +212,7 @@ QVariant( HbIndicatorInterface::SecondaryTextRole ).toString(), lastMissedCallFrom ); } - - // icon - //QList icons = m_missedCallsFilter->data( - // m_missedCallsFilter->index(0,0), - // Qt::DecorationRole).value >(); - //QString iconName = icons.first().value().iconName(); + QString iconName = "qtg_mono_missed_call_unseen"; parameters.insert( QVariant( HbIndicatorInterface::DecorationNameRole ).toString(), @@ -187,3 +224,37 @@ } #endif } + +void PhoneIndicatorController::updateDiverIndicator(bool activeDiverts) +{ + PHONE_TRACE + QString indicatorType(indicatorName(PhoneDivertIndidicator)); + if(activeDiverts){ + QVariantMap parameters; + + // First row + parameters.insert( + QVariant( HbIndicatorInterface::PrimaryTextRole ).toString(), + hbTrId("txt_phone_dblist_active_diverts" )); + + QString iconName = "qtg_mono_call_diverted"; + parameters.insert( + QVariant( HbIndicatorInterface::DecorationNameRole ).toString(), + iconName ); + + // TODO: remove this when ready + parameters.insert( + QVariant( HbIndicatorInterface::SecondaryTextRole ).toString(), + "Feature not ready" ); + m_indicator.activate( indicatorType, parameters ); + }else{ + m_indicator.deactivate( indicatorType ); + } +} + +bool PhoneIndicatorController::compareKeys( + const XQSettingsKey &first, const XQSettingsKey &second) +{ + PHONE_TRACE + return ( first.key() == second.key() && first.uid() == second.uid() ); +} diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/src/phonemessagecontroller.cpp --- a/phoneapp/phoneuiqtviewadapter/src/phonemessagecontroller.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/src/phonemessagecontroller.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -26,14 +26,16 @@ PhoneMessageController::PhoneMessageController(QObject *parent) : - QObject(parent) + QObject(parent), + mService(0) { } PhoneMessageController::~PhoneMessageController() { - + delete mService; + mService = 0; } void PhoneMessageController::openSoftRejectMessageEditor( @@ -87,13 +89,21 @@ } void PhoneMessageController::openEditor( - QString /*toField*/, QString /*name*/, QString /*messageBody*/) + QString toField, QString name, QString messageBody) { - //TODO - /*XQServiceRequest snd(QLatin1String("com.nokia.services.hbserviceprovider.imessage.send"), QLatin1String("send(QVariant)")); - QVariant data; - snd << data; - snd.send();*/ + delete mService; + mService = 0; + mService = new XQServiceRequest("com.nokia.services.hbserviceprovider.conversationview", + "send(QString,QString,QString)", false); + + QList arguments; + arguments.append(QVariant(toField)); + arguments.append(QVariant(name)); + arguments.append(QVariant(messageBody)); + mService->setArguments(arguments); + + QVariant retValue; + mService->send(retValue); } diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/src/phonenotecontroller.cpp --- a/phoneapp/phoneuiqtviewadapter/src/phonenotecontroller.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/src/phonenotecontroller.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -53,55 +54,12 @@ TPhoneCmdParamGlobalNote* globalNoteParam = static_cast( commandParam ); - - HbMessageBox::MessageBoxType type; - - switch( globalNoteParam->Type() ) { - case EAknGlobalInformationNote: - type = HbMessageBox::MessageTypeInformation; - break; - case EAknGlobalWarningNote: - default: - type = HbMessageBox::MessageTypeWarning; - break; + if (globalNoteParam->NotificationDialog()) { + showDeviceNotificationDialog(globalNoteParam); + } else { + showDeviceMessageBox(globalNoteParam); } - QString noteString = globalNoteText(globalNoteParam); - - if (false == noteString.isNull()) { - bool showNote(true); - for (int i = 0; i < m_messageBoxList.count(); ++i) { - // Do not show same note/text several times, e.g when user hits - // the end button several times we should show only one "not allowed" - // note. - if (noteString == m_messageBoxList.at(i)->text()) { - showNote = false; - break; - } - } - - if (showNote) { - QScopedPointer messageBox( - new HbDeviceMessageBox(noteString, type)); - - int timeout = globalNoteParam->Timeout(); - if (timeout == 0) { - messageBox->setTimeout(HbDialog::StandardTimeout); - } else { - messageBox->setTimeout(timeout); - } - - HbDeviceMessageBox *messageBoxPtr = messageBox.data(); - m_messageBoxList.append(messageBoxPtr); - messageBox.take(); - - if (1 == m_messageBoxList.size()) { - QObject::connect(messageBoxPtr, SIGNAL(aboutToClose()), - this, SLOT(destroyDialog())); - messageBoxPtr->show(); - } - } - } } void PhoneNoteController::showNote(TPhoneCommandParam *commandParam) @@ -186,6 +144,22 @@ } } +void PhoneNoteController::destroyNotification() +{ + PHONE_DEBUG("PhoneNoteController::destroyDialog"); + HbDeviceNotificationDialog *notification = m_notificationList.takeFirst(); + notification->deleteLater(); + notification = 0; + + if ( 0 < m_notificationList.size() ) { + PHONE_DEBUG("PhoneNoteController::show pending note"); + HbDeviceNotificationDialog *notificationTemp = m_notificationList[0]; + QObject::connect(notificationTemp, SIGNAL(aboutToClose()), + this, SLOT(destroyNotification())); + notificationTemp->show(); + } +} + void PhoneNoteController::removeMappings() { foreach (HbAction *action, m_actions ) { @@ -378,4 +352,104 @@ } } +void PhoneNoteController::showDeviceMessageBox( + TPhoneCmdParamGlobalNote* params) +{ + PHONE_DEBUG("PhoneNoteController::showDeviceMessageBox"); + HbMessageBox::MessageBoxType type; + + switch( params->Type() ) { + case EAknGlobalInformationNote: + type = HbMessageBox::MessageTypeInformation; + break; + case EAknGlobalWarningNote: + default: + type = HbMessageBox::MessageTypeWarning; + break; + } + + QString noteString = globalNoteText(params); + + if (false == noteString.isNull()) { + bool showNote(true); + for (int i = 0; i < m_messageBoxList.count(); ++i) { + // Do not show same note/text several times, e.g when user hits + // the end button several times we should show only one "not allowed" + // note. + if (noteString == m_messageBoxList.at(i)->text()) { + showNote = false; + break; + } + } + + if (showNote) { + QScopedPointer messageBox( + new HbDeviceMessageBox(noteString, type)); + + int timeout = params->Timeout(); + if (timeout <= 0) { + messageBox->setTimeout(HbDialog::StandardTimeout); + } else { + messageBox->setTimeout(timeout); + } + + HbDeviceMessageBox *messageBoxPtr = messageBox.data(); + m_messageBoxList.append(messageBoxPtr); + messageBox.take(); + + if (1 == m_messageBoxList.size()) { + QObject::connect(messageBoxPtr, SIGNAL(aboutToClose()), + this, SLOT(destroyDialog())); + messageBoxPtr->show(); + } + } + } +} + +void PhoneNoteController::showDeviceNotificationDialog( + TPhoneCmdParamGlobalNote* params) +{ + PHONE_DEBUG("PhoneNoteController::showDeviceNotificationDialog"); + + QString noteString = globalNoteText(params); + + if (false == noteString.isNull()) { + bool showNote(true); + for (int i = 0; i < m_notificationList.count(); ++i) { + // Do not show same note/text several times, e.g when user hits + // the end button several times we should show only one "not allowed" + // note. + if (noteString == m_notificationList.at(i)->text()) { + showNote = false; + break; + } + } + + if (showNote) { + QScopedPointer notification( + new HbDeviceNotificationDialog()); + + notification->setTitle(noteString); + + int timeout = params->Timeout(); + if (timeout > 0) { + // If timeout not set we use default timeout. + // Default value is HbPopup::StandardTimeout (3000 ms) + notification->setTimeout(timeout); + } + + HbDeviceNotificationDialog *notificationPtr = notification.data(); + m_notificationList.append(notificationPtr); + notification.take(); + + if (1 == m_notificationList.size()) { + QObject::connect(notificationPtr, SIGNAL(aboutToClose()), + this, SLOT(destroyNotification())); + notificationPtr->show(); + } + } + } +} + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/src/phoneresourceadapter.cpp --- a/phoneapp/phoneuiqtviewadapter/src/phoneresourceadapter.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/src/phoneresourceadapter.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -19,6 +19,7 @@ #include "phoneui.hrh" #include "phoneuiqtbuttonscontroller.h" #include +#include #include #include #include @@ -65,189 +66,7 @@ QMap translatedActions; switch (symbianResourceId) { - - case R_PHONEUI_CALLHANDLING_INCOMINGCALL_CBA: - { - PhoneAction *leftButton = new PhoneAction; - leftButton->setIcon (HbIcon("qtg_mono_send")); - leftButton->setCommand(EPhoneCallComingCmdSoftReject); - translatedActions [PhoneAction::ToolbarButton1] = leftButton; - - PhoneAction *rightButton = new PhoneAction; - rightButton->setIcon (HbIcon("qtg_mono_speaker_off")); - rightButton->setCommand (EPhoneCallComingCmdSilent); - translatedActions [PhoneAction::ToolbarButton2] = rightButton; - } - break; - - case R_PHONEUI_CALLHANDLING_INCOMINGCALL_REJECT_CBA: - { - PhoneAction *leftButton = new PhoneAction; - leftButton->setIcon (HbIcon("qtg_mono_send")); - leftButton->setCommand(EPhoneCallComingCmdSoftReject); - translatedActions [PhoneAction::ToolbarButton1] = leftButton; - - PhoneAction *rightButton = new PhoneAction; - rightButton->setIcon (HbIcon("qtg_mono_reject_call")); - rightButton->setCommand (EPhoneCallComingCmdReject); - translatedActions [PhoneAction::ToolbarButton2] = rightButton; - } - break; - - case R_PHONEUI_CALLHANDLING_INCOMINGCALL_SOFT_REJECT_CBA: - { - PhoneAction *leftButton = new PhoneAction; - leftButton->setIcon (HbIcon("qtg_mono_send")); - leftButton->setCommand(EPhoneCallComingCmdSoftReject); - translatedActions [PhoneAction::ToolbarButton1] = leftButton; - - PhoneAction *rightButton = new PhoneAction; - rightButton->setIcon (HbIcon("qtg_mono_speaker_off")); - rightButton->setDisabled(true); - translatedActions [PhoneAction::ToolbarButton2] = rightButton; - } - break; - - case R_PHONEUI_CALLHANDLING_CALLWAITING_CBA: - { - PhoneAction *leftButton = new PhoneAction; - leftButton->setIcon (HbIcon("qtg_mono_send")); - leftButton->setCommand(EPhoneCallComingCmdSoftReject); - translatedActions [PhoneAction::ToolbarButton1] = leftButton; - - PhoneAction *rightButton = new PhoneAction; - rightButton->setIcon (HbIcon("qtg_mono_join_call")); - rightButton->setCommand (EPhoneInCallCmdJoin); - rightButton->setDisabled(true); - translatedActions [PhoneAction::ToolbarButton2] = rightButton; - } - break; - - case R_PHONEUI_DIALER_CBA: - case R_PHONEUI_INCALL_DIALER_CBA: - case R_PHONEUI_CALLHANDLING_CALLSETUP_EMPTY_DTMFDIALER_CBA: - case R_PHONEUI_CALLHANDLING_INCALL_UNHOLD_CBA: - { - PhoneAction *leftButton = new PhoneAction; - leftButton->setIcon (HbIcon("qtg_mono_dialer")); - leftButton->setCommand(EPhoneInCallCmdDialer); - translatedActions [PhoneAction::ToolbarButton1] = leftButton; - - PhoneAction *centerButton = new PhoneAction; - centerButton->setIcon (HbIcon("qtg_mono_mic_mute")); - centerButton->setCommand (EPhoneInCallCmdMute); - translatedActions [PhoneAction::ToolbarButton2] = centerButton; - - PhoneAction *centerButton2 = new PhoneAction; - if (!m_buttonsCtrl->getButtonFlags(PhoneUIQtButtonsController::Ihf)) - { - centerButton2->setIcon (HbIcon("qtg_mono_speaker")); - centerButton2->setCommand (EPhoneInCallCmdActivateIhf); - } - else - { - centerButton2->setIcon (HbIcon("qtg_mono_mobile")); - centerButton2->setCommand (EPhoneInCallCmdDeactivateIhf); - } - translatedActions [PhoneAction::ToolbarButton3] = centerButton2; - - PhoneAction *rightButton = new PhoneAction; - rightButton->setIcon(HbIcon("qtg_mono_contacts")); - rightButton->setDisabled( - (symbianResourceId== - R_PHONEUI_CALLHANDLING_CALLSETUP_EMPTY_DTMFDIALER_CBA)); - rightButton->setCommand(EPhoneInCallCmdContacts); - - translatedActions[PhoneAction::ToolbarButton4] = rightButton; - } - break; - - case R_PHONEUI_CALLHANDLING_EMERGENCY_CBA: - { - PhoneAction *leftButton = new PhoneAction; - leftButton->setIcon (HbIcon("qtg_mono_dialer")); - leftButton->setCommand(EPhoneInCallCmdDialer); - translatedActions [PhoneAction::ToolbarButton1] = leftButton; - - PhoneAction *rightButton = new PhoneAction; - if (!m_buttonsCtrl->getButtonFlags(PhoneUIQtButtonsController::Ihf)) - { - rightButton->setIcon (HbIcon("qtg_mono_speaker")); - rightButton->setCommand (EPhoneInCallCmdActivateIhf); - } - else - { - rightButton->setIcon (HbIcon("qtg_mono_mobile")); - rightButton->setCommand (EPhoneInCallCmdDeactivateIhf); - } - translatedActions [PhoneAction::ToolbarButton2] = rightButton; - } - break; - - case R_PHONEUI_CALLHANDLING_INCALL_UNMUTE_CBA: - { - PhoneAction *leftButton = new PhoneAction; - leftButton->setIcon (HbIcon("qtg_mono_dialer")); - leftButton->setCommand(EPhoneInCallCmdDialer); - translatedActions [PhoneAction::ToolbarButton1] = leftButton; - - PhoneAction *centerButton = new PhoneAction; - centerButton->setIcon (HbIcon("qtg_mono_mic_unmute")); - centerButton->setCommand (EPhoneInCallCmdUnmute); - translatedActions [PhoneAction::ToolbarButton2] = centerButton; - - PhoneAction *centerButton2 = new PhoneAction; - if (!m_buttonsCtrl->getButtonFlags(PhoneUIQtButtonsController::Ihf)) - { - centerButton2->setIcon (HbIcon("qtg_mono_speaker")); - centerButton2->setCommand (EPhoneInCallCmdActivateIhf); - } - else - { - centerButton2->setIcon (HbIcon("qtg_mono_mobile")); - centerButton2->setCommand (EPhoneInCallCmdDeactivateIhf); - } - translatedActions [PhoneAction::ToolbarButton3] = centerButton2; - - PhoneAction *rightButton = new PhoneAction; - rightButton->setIcon(HbIcon("qtg_mono_contacts")); - rightButton->setCommand(EPhoneInCallCmdContacts); - translatedActions[PhoneAction::ToolbarButton4] = rightButton; - } - break; - - case R_PHONEUI_CALLHANDLING_INCALL_HANDSET_CBA: - { - PhoneAction *leftButton = new PhoneAction; - leftButton->setIcon (HbIcon("qtg_mono_dialer")); - leftButton->setCommand(EPhoneInCallCmdDialer); - translatedActions [PhoneAction::ToolbarButton1] = leftButton; - - PhoneAction *centerButton1 = new PhoneAction; - if (!m_buttonsCtrl->getButtonFlags(PhoneUIQtButtonsController::Hold)) - { - centerButton1->setIcon (HbIcon("qtg_mono_mic_mute")); - centerButton1->setCommand (EPhoneInCallCmdMute); - } - else - { - centerButton1->setIcon (HbIcon("qtg_mono_mic_unmute")); - centerButton1->setCommand (EPhoneInCallCmdUnmute); - } - translatedActions [PhoneAction::ToolbarButton2] = centerButton1; - - PhoneAction *centerButton2 = new PhoneAction; - centerButton2->setIcon (HbIcon("qtg_mono_mobile")); - centerButton2->setCommand (EPhoneInCallCmdDeactivateIhf); - translatedActions [PhoneAction::ToolbarButton3] = centerButton2; - - PhoneAction *rightButton = new PhoneAction; - rightButton->setIcon(HbIcon("qtg_mono_contacts")); - rightButton->setCommand(EPhoneInCallCmdContacts); - translatedActions[PhoneAction::ToolbarButton4] = rightButton; - } - break; - + case R_PHONEUI_MTCAL_INCOMING_CALL: { PhoneAction *text = new PhoneAction; @@ -280,18 +99,7 @@ } break; - case R_PHONEUI_INCALL_CALL_NUMBER: - { - PhoneAction *text = new PhoneAction; - VA_LIST list; - VA_START (list, symbianResourceId); - int intValue = VA_ARG (list, int); - text->setText(hbTrId("txt_phone_other_call_ln").arg(intValue)); - translatedActions [PhoneAction::Text] = text; - VA_END (list); - } - break; - + case R_PHONEUI_TIME_DURAT_LONG_WITH_ZERO: { PhoneAction *text = new PhoneAction; @@ -318,10 +126,18 @@ translatedActions [PhoneAction::Text] = text; break; } - case R_PHONEUI_MTCAL_CALL: + case R_PHONEUI_MTCAL_CLI_UNKNOWN: { PhoneAction *text = new PhoneAction; - text->setText (hbTrId("txt_common_button_call")); //Call + text->setText (hbTrId("txt_phone_other_unknown_number")); + translatedActions [PhoneAction::Text] = text; + break; + } + + case R_PHONE_MTCAL_CLI_PAYPHONE: + { + PhoneAction *text = new PhoneAction; + text->setText (hbTrId("Payphone number")); translatedActions [PhoneAction::Text] = text; break; } @@ -383,32 +199,6 @@ VA_END (list); } break; - case R_PHONE_IMEI_STRING: - { - QScopedPointer text(new PhoneAction); - VA_LIST list; - VA_START(list, symbianResourceId); - const TDesC *string = static_cast(VA_ARG(list, TDesC*)); - QString serialNumber = - QString::fromUtf16(string->Ptr(), string->Length()); - text->setText(hbTrId("txt_phone_info_serial_no").arg(serialNumber)); - translatedActions[PhoneAction::Text] = text.take(); - VA_END(list); - } - break; - case R_PHONEUI_LIFE_TIMER_STRING: - { - QScopedPointer text(new PhoneAction); - VA_LIST list; - VA_START(list, symbianResourceId); - const TDesC *string = static_cast(VA_ARG(list, TDesC*)); - QString lifeTimerText = - QString::fromUtf16(string->Ptr(), string->Length()); - text->setText(hbTrId("txt_phone_info_life_timer").arg(lifeTimerText)); - translatedActions[PhoneAction::Text] = text.take(); - VA_END(list); - } - break; default: break; } @@ -520,6 +310,123 @@ ret = hbTrId("txt_phone_dpopinfo_no_network_coverage"); } break; + case R_NOTETEXT_NUMBER_BARRED: + { + ret = hbTrId("txt_phone_info_number_barred"); + } + break; + case R_PHONEUI_NO_VIDEO_NETWORK: + { + ret = hbTrId("txt_phone_info_video_call_setup_failed"); + } + break; + case R_PHONEUI_VIDEO_CALL_NOT_POSSIBLE: + { + ret = hbTrId("txt_phone_info_video_call_didnt_succeed_to_called"); + } + break; + case R_CALL_INFO_CAUSE_VALUE127: + case R_CALL_INFO_NOT_SUPPORTED: + case R_CALL_INFO_SERVICE_NOT_AVAILABLE: + case R_CALL_INFO_CAUSE_VALUE38: + case R_CALL_INFO_CAUSE_VALUE55: + case R_CALL_INFO_CAUSE_VALUE58: + case R_NOTE_UNABLE_TO_MAKE_VIDEO_CALL_NOT_SUPPORTED_BY_OTHER_PHONE: + { + ret = hbTrId("txt_phone_info_unable_to_make_video_call_not_supp"); + } + break; + case R_NOTE_PHONE_OUT_OF_3G_COVERAGE: + { + ret = hbTrId("txt_phone_info_phone_switched_off_or_out_of_3g"); + } + break; + case R_NOTE_VIDEO_CALL_ONLY_POSSIBLE_UNDER_3G_COVERAGE: + { + ret = hbTrId("txt_phone_info_videocall_only_possible_under_3g"); + } + break; + case R_NOTE_CALLED_NUMBER_HAS_BARRED_INCOMING_CALLS: + { + ret = hbTrId("txt_phone_info_called_number_has_barred_incoming"); + } + break; + case R_INCAL_REMOTE_CREATE_CONFERENCE_TEXT: + { + ret = hbTrId("txt_phone_info_conference_call_active"); + } + break; + case R_NOTETEXT_CALL_BARRINGS: + { + ret = hbTrId("txt_phone_dpopinfo_note_you_have_active_barrings"); + } + break; + case R_CALL_INFO_CAUSE_VALUE16: + { + ret = hbTrId("txt_phone_info_call_ended"); + } + break; + case R_CALL_INFO_CAUSE_VALUE18: + { + ret = hbTrId("txt_phone_info_no_answer"); + } + break; + case R_CALL_INFO_CAUSE_VALUE21: + { + ret = hbTrId("txt_phone_info_call_rejected"); + } + break; + case R_CALL_INFO_CAUSE_VALUE22: + { + ret = hbTrId("txt_phone_info_number_not_in_use"); + } + break; + case R_CALL_INFO_CAUSE_VALUE34: + { + ret = hbTrId("txt_phone_info_network_busy"); + } + break; + case R_PHONE_ERROR_CALL_NOT_ALLOWED_FDN: + { + ret = hbTrId("txt_phone_info_call_not_allowed_fixed_dialling"); + } + break; + case R_NOTETEXT_DIVERTING_INCOMING_CALL: + case R_NOTETEXT_DIVERTING: + { + ret = hbTrId("txt_phone_dpopinfo_diverting"); + } + break; + case R_NOTETEXT_ALL_INCOMING_CALLS_DIVERTED: + { + ret = hbTrId("txt_phone_dpopinfo_note_all_incoming_calls_diver"); + } + break; + case R_PHONE_ERROR_CHECK_CLIR: + { + ret = hbTrId("txt_phone_info_check_own_number_sending"); + } + break; + case R_PHONE_SS_NOTIFICATION_CLIR_SUPPR_REJECT_TEXT: + { + ret = hbTrId("txt_phone_info_could_not_send_own_number"); + } + break; + case R_NOTE_TEXT_CLIR_CHANGE: + { + ret = hbTrId("txt_phone_info_activate_own_number_sending"); + } + break; + case R_PHONE_ERROR_CHECK_NETWORK_SERVICES: + { + ret = hbTrId("txt_phone_info_check_network_services"); + } + break; + case R_PHONE_INCALL_INFO_VIDEO_CALL_NOT_ALLOWED_DURING_RESTORE: + { + ret = hbTrId("txt_phone_info_video_call_not_allowed_during_resto"); + } + break; default: break; } @@ -562,10 +469,7 @@ break; case EPhoneInCallCmdTransfer: ret = hbTrId("txt_phone_opt_transfer"); - break; - case EPhoneInCallCmdSwitchToVideo: - ret = hbTrId("Call back with video call"); - break; + break; case EPhoneCmdHandoverToWlan: ret = hbTrId("Handover to WLAN"); break; @@ -612,3 +516,130 @@ return ret; } +QList PhoneResourceAdapter::convertToToolBarCommandList( + int symbianResourceId ) const +{ + QList ret; + + switch(symbianResourceId) { + case R_PHONEUI_CALLHANDLING_INCOMINGCALL_CBA: + { + ret.append(PhoneAction::ToolBarItem(PhoneCallComingCmdSoftReject,true)); + ret.append(PhoneAction::ToolBarItem(PhoneCallComingCmdSilent,true)); + } + break; + + case R_PHONEUI_CALLHANDLING_INCOMINGCALL_REJECT_CBA: + { + ret.append(PhoneAction::ToolBarItem(PhoneCallComingCmdSoftReject,true)); + ret.append(PhoneAction::ToolBarItem(PhoneInCallCmdReject,true)); + } + break; + + case R_PHONEUI_CALLHANDLING_INCOMINGCALL_SOFT_REJECT_CBA: + { + ret.append(PhoneAction::ToolBarItem(PhoneCallComingCmdSoftReject,true)); + ret.append(PhoneAction::ToolBarItem(PhoneCallComingCmdSilent,false)); + } + break; + + case R_PHONEUI_CALLHANDLING_CALLWAITING_CBA: + { + ret.append(PhoneAction::ToolBarItem(PhoneCallComingCmdSoftReject,true)); + ret.append(PhoneAction::ToolBarItem(PhoneInCallCmdJoinToConference,false)); + } + break; + + case R_PHONEUI_DIALER_CBA: + case R_PHONEUI_INCALL_DIALER_CBA: + case R_PHONEUI_CALLHANDLING_INCALL_UNHOLD_CBA: + case R_PHONEUI_CALLHANDLING_INCALL_UNMUTE_CBA: + case R_PHONEUI_CALLHANDLING_INCALL_HANDSET_CBA: + case R_PHONEUI_CALLHANDLING_CALLSETUP_EMPTY_DTMFDIALER_CBA: + { + if (!m_buttonsCtrl->getButtonFlags(PhoneUIQtButtonsController::Ihf)) + { + ret.append(PhoneAction::ToolBarItem(PhoneInCallCmdActivateIhf,true)); + } + else + { + ret.append(PhoneAction::ToolBarItem(PhoneInCallCmdDeactivateIhf,true)); + } + + if (!m_buttonsCtrl->getButtonFlags(PhoneUIQtButtonsController::MultiCall)) { + bool outgoing(m_buttonsCtrl->getButtonFlags(PhoneUIQtButtonsController::Outgoing)); + if (m_buttonsCtrl->getButtonFlags(PhoneUIQtButtonsController::Hold)) + { + ret.append(PhoneAction::ToolBarItem(PhoneInCallCmdUnhold,!outgoing)); + } + else + { + ret.append(PhoneAction::ToolBarItem(PhoneInCallCmdHold,!outgoing)); + } + + ret.append(PhoneAction::ToolBarItem(PhoneInCallCmdOpenContacts,true)); + } else { + bool outgoing(m_buttonsCtrl->getButtonFlags(PhoneUIQtButtonsController::Outgoing)); + bool disableJoin(outgoing ? true : m_buttonsCtrl->getButtonFlags(PhoneUIQtButtonsController::DisableJoin)); + + ret.append(PhoneAction::ToolBarItem(PhoneInCallCmdSwap,!outgoing)); + if (m_buttonsCtrl->getButtonFlags(PhoneUIQtButtonsController::Conference)) { + ret.append(PhoneAction::ToolBarItem(PhoneInCallCmdJoinToConference,!disableJoin)); + } else { + ret.append(PhoneAction::ToolBarItem(PhoneInCallCmdCreateConference,!disableJoin)); + } + } + + ret.append(PhoneAction::ToolBarItem(PhoneInCallCmdOpenDialer,true)); + } + break; + + case R_PHONEUI_CALLHANDLING_EMERGENCY_CBA: + { + + if (!m_buttonsCtrl->getButtonFlags(PhoneUIQtButtonsController::Ihf)) + { + ret.append(PhoneAction::ToolBarItem(PhoneInCallCmdActivateIhf,true)); + } + else + { + ret.append(PhoneAction::ToolBarItem(PhoneInCallCmdDeactivateIhf,true)); + } + } + + ret.append(PhoneAction::ToolBarItem(PhoneInCallCmdOpenDialer,true)); + break; + + /*case R_PHONEUI_CALLHANDLING_INCALL_HANDSET_CBA: + { + ret.append(PhoneAction::ToolBarItem(PhoneInCallCmdOpenDialer,true)); + + if (m_buttonsCtrl->getButtonFlags(PhoneUIQtButtonsController::Hold)) + { + ret.append(PhoneAction::ToolBarItem(PhoneInCallCmdUnhold,true)); + } + else + { + ret.append(PhoneAction::ToolBarItem(PhoneInCallCmdHold,true)); + } + if (!m_buttonsCtrl->getButtonFlags(PhoneUIQtButtonsController::Hold)) + { + ret.append(PhoneAction::ToolBarItem(PhoneInCallCmdMute,true)); + } + else + { + ret.append(PhoneAction::ToolBarItem(PhoneInCallCmdUnmute,true)); + } + + ret.append(PhoneAction::ToolBarItem(PhoneInCallCmdDeactivateIhf,true)); + ret.append(PhoneAction::ToolBarItem(PhoneInCallCmdOpenContacts,true)); + } + break;*/ + default: + break; + } + + return ret; +} + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/src/phoneuicommandcontroller.cpp --- a/phoneapp/phoneuiqtviewadapter/src/phoneuicommandcontroller.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/src/phoneuicommandcontroller.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -93,9 +93,8 @@ int callId) { QMap translatedActions; - bool sameServices = areServicesSame(callStates, serviceIds); QList commands = buttonCommandList( - callState, emergencyCall, sameServices, callStates.values()); + callState, emergencyCall, callStates.values()); PhoneCommandExtensionWrapper *extension = commandExtension(serviceId); @@ -127,8 +126,57 @@ return translatedActions; } +QList PhoneUiCommandController::toolBarActions( + int resourceId, + QMap callStates, + QMap serviceIds, + int serviceId, + int callId) +{ + QList actions; + + //Set tool bar button flags + setJoinFlag(callStates, serviceIds); + setConferenceFlag(callStates.values()); + setHoldFlag(callStates.value(callId)); + setMultiCallFlag(callStates.values()); + setOutgoingFlag(callStates.values()); + + //Get tool bar item list by resource id. + QList commands = PhoneResourceAdapter::Instance()-> + convertToToolBarCommandList(resourceId); + + if (serviceId != -1) { + PhoneCommandExtensionWrapper *extension = commandExtension(serviceId); + + if (extension) { + QList callInfo; + extension->getCallInfoList( + callInfo,callStates,serviceIds,callId); + + QList toolBarCmdList; + + mapToExtensionToolBarItems(commands,toolBarCmdList); + //Modify tool bar command list by extension + extension->modifyToolBarCommandList(callInfo,toolBarCmdList); + // Map tool bar item list back to the phone action tool bar item list. + mapToPhoneActionToolBarItems(toolBarCmdList,commands); + } + } + + for ( int i=0; i < commands.count(); ++i) { + PhoneAction *action = mapCommandToAction( + commands.at(i).mCommandId, !commands.at(i).mEnabled); + if (action) { + actions.append(action); + } + } + + return actions; +} + QList PhoneUiCommandController::menuCommands( - QMap callStates, QMap serviceIds ) + QMap callStates, QMap serviceIds ) const { PHONE_DEBUG("PhoneMenuController::menuCommands"); QList commands; @@ -188,7 +236,7 @@ qDeleteAll(values); } -int PhoneUiCommandController::mapCommand(int command) +int PhoneUiCommandController::mapCommand(int command) const { int ret(-1); @@ -202,12 +250,6 @@ case PhoneInCallCmdSwitchToVideo: ret = EPhoneInCallCmdSwitchToVideo; break; - case PhoneInCallCmdSendMessage: - //TODO - break; - case PhoneInCallShareVideo: - //TODO - break; case PhoneInCallCmdHandoverToWlan: ret = EPhoneCmdHandoverToWlan; break; @@ -230,7 +272,7 @@ } TUid PhoneUiCommandController::ResolveImplementationUidL( - TUint32 aServiceId, TServicePropertyName aPropertyName ) + TUint32 aServiceId, TServicePropertyName aPropertyName ) const { TUid implUid = { 0 }; CSPEntry* entry = CSPEntry::NewLC(); @@ -302,14 +344,14 @@ } bool PhoneUiCommandController::areServicesSame( - QMap callStates, QMap serviceIds) + QMap callStates, QMap serviceIds) const { bool ret(true); int serviceId(-1); for(int i=0;i callStates, QMap serviceIds) const +{ + bool disable(PhoneResourceAdapter::Instance()->buttonsController()-> + getButtonFlags(PhoneUIQtButtonsController::FullConference)); + + if (!disable) { + disable = !areServicesSame(callStates, serviceIds); + } + + PhoneResourceAdapter::Instance()->buttonsController()-> + setButtonFlags(PhoneUIQtButtonsController::DisableJoin, disable); +} + +void PhoneUiCommandController::setHoldFlag(int callState) const +{ + bool hold = (callState == EPEStateHeldConference || + callState == EPEStateHeld ); + + PhoneResourceAdapter::Instance()->buttonsController()-> + setButtonFlags(PhoneUIQtButtonsController::Hold,hold); +} + +void PhoneUiCommandController::setOutgoingFlag( + QList callStates) const +{ + bool outgoing(callStates.contains(EPEStateDialing) || + callStates.contains(EPEStateConnecting)); + + PhoneResourceAdapter::Instance()->buttonsController()-> + setButtonFlags(PhoneUIQtButtonsController::Outgoing, outgoing); +} + +void PhoneUiCommandController::setConferenceFlag( + QList callStates) const +{ + bool conference(callStates.contains(EPEStateConnectedConference) || + callStates.contains(EPEStateHeldConference)); + + PhoneResourceAdapter::Instance()->buttonsController()-> + setButtonFlags(PhoneUIQtButtonsController::Conference, conference); +} + +void PhoneUiCommandController::setMultiCallFlag( + QList callStates) const +{ + bool multicall(false); + + if (1buttonsController()-> + setButtonFlags(PhoneUIQtButtonsController::MultiCall, multicall); +} + +void PhoneUiCommandController::mapToExtensionToolBarItems( + const QList &sourceList, + QList &toolBarCmdList) const +{ + toolBarCmdList.clear(); + + for (int i=0;i &sourceList, + QList &commandList) const +{ + commandList.clear(); + + for (int i=0;i PhoneUiCommandController::buttonCommandList( int callState, bool emergencyCall, - bool sameServices, - QList callStates) + QList callStates) const { QList ret; @@ -333,6 +462,14 @@ case EPEStateDialing: case EPEStateConnecting: { + if (!emergencyCall) { + if (PhoneResourceAdapter::Instance()->buttonsController()-> + getButtonFlags(PhoneUIQtButtonsController::Mute)) { + ret.append(PhoneInCallCmdUnmute); + } else { + ret.append(PhoneInCallCmdMute); + } + } ret.append(PhoneInCallCmdEndOutgoingCall); } break; @@ -347,50 +484,15 @@ break; case EPEStateConnected: - case EPEStateConnectedConference: { - if (!emergencyCall) { - if ( 1 == callStates.size() || - (2 == callStates.size() && - callStates.contains(EPEStateRinging)) ) { - ret.append(PhoneInCallCmdHold); - } else { - - if (EPEStateConnectedConference == callState) { - ret.append(PhoneInCallCmdSwap); - } else if (sameServices && - false == PhoneResourceAdapter::Instance()->buttonsController()-> - getButtonFlags(PhoneUIQtButtonsController::DisableJoin)) { - if ( callStates.contains(EPEStateHeldConference) ) { - ret.append(PhoneInCallCmdJoinToConference); - } else { - ret.append(PhoneInCallCmdCreateConference); - } - } - } - } - - ret.append(PhoneInCallCmdEndActive); - } - break; - + case EPEStateConnectedConference: case EPEStateHeld: case EPEStateHeldConference: { - if (1 == callStates.size() || - (2 == callStates.size() && - callStates.contains(EPEStateRinging))) { - - ret.append(PhoneInCallCmdUnhold); - } else { - if (EPEStateHeldConference == callState) { - ret.append(PhoneInCallCmdSwap); - } else if (sameServices && - false == PhoneResourceAdapter::Instance()->buttonsController()-> - getButtonFlags(PhoneUIQtButtonsController::DisableJoin)) { - if ( callStates.contains(EPEStateConnectedConference)) { - ret.append(PhoneInCallCmdJoinToConference); - } else { - ret.append(PhoneInCallCmdCreateConference); - } + if (!emergencyCall) { + if (PhoneResourceAdapter::Instance()->buttonsController()-> + getButtonFlags(PhoneUIQtButtonsController::Mute)) { + ret.append(PhoneInCallCmdUnmute); + } else { + ret.append(PhoneInCallCmdMute); } } @@ -408,7 +510,8 @@ return ret; } -PhoneAction *PhoneUiCommandController::mapCommandToAction(int command) +PhoneAction *PhoneUiCommandController::mapCommandToAction( + int command, bool disabled) const { PhoneAction *action=0; @@ -416,6 +519,7 @@ case PhoneInCallCmdJoinToConference: { action = new PhoneAction; action->setIcon(HbIcon("qtg_mono_join_call")); + action->setDisabled(disabled); action->setCommand(EPhoneInCallCmdJoin); } break; @@ -423,6 +527,7 @@ case PhoneInCallCmdCreateConference: { action = new PhoneAction; action->setIcon(HbIcon("qtg_mono_join_call")); + action->setDisabled(disabled); action->setCommand(EPhoneInCallCmdCreateConference); } break; @@ -430,7 +535,8 @@ case PhoneInCallCmdAnswer: { action = new PhoneAction; action->setIcon(HbIcon("qtg_mono_call")); - action->setCommand (EPhoneCallComingCmdAnswer); + action->setDisabled(disabled); + action->setCommand (EPhoneCallComingCmdAnswer); action->setActionRole(PhoneAction::Accept); } break; @@ -438,6 +544,7 @@ case PhoneInCallCmdReject: { action = new PhoneAction; action->setIcon(HbIcon("qtg_mono_reject_call")); + action->setDisabled(disabled); action->setCommand (EPhoneCallComingCmdReject); action->setActionRole(PhoneAction::Decline); } @@ -446,6 +553,7 @@ case PhoneInCallCmdHold: { action = new PhoneAction; action->setIcon(HbIcon("qtg_mono_hold_call")); + action->setDisabled(disabled); action->setCommand(EPhoneInCallCmdHold); } break; @@ -453,6 +561,7 @@ case PhoneInCallCmdUnhold: { action = new PhoneAction; action->setIcon(HbIcon("qtg_mono_call")); + action->setDisabled(disabled); action->setCommand(EPhoneInCallCmdUnhold); } break; @@ -460,6 +569,7 @@ case PhoneInCallCmdEndActive: { action = new PhoneAction; action->setIcon(HbIcon("qtg_mono_end_call")); + action->setDisabled(disabled); action->setCommand(EPhoneInCallCmdEndThisActiveCall); action->setActionRole(PhoneAction::Decline); } @@ -468,6 +578,7 @@ case PhoneInCallCmdEndOutgoingCall: { action = new PhoneAction; action->setIcon(HbIcon("qtg_mono_end_call")); + action->setDisabled(disabled); action->setCommand(EPhoneInCallCmdEndThisOutgoingCall); action->setActionRole(PhoneAction::Decline); } @@ -476,6 +587,7 @@ case PhoneInCallCmdReplace: { action = new PhoneAction; action->setIcon(HbIcon("qtg_mono_replace_call")); + action->setDisabled(disabled); action->setCommand(EPhoneInCallCmdReplace); action->setActionRole(PhoneAction::Accept); } @@ -483,11 +595,67 @@ case PhoneInCallCmdSwap: { action = new PhoneAction; - action->setIcon(HbIcon("qtg_mono_swap")); + action->setIcon(HbIcon("qtg_mono_replace_call")); + action->setDisabled(disabled); action->setCommand(EPhoneInCallCmdSwap); } break; - + case PhoneCallComingCmdSoftReject: { + action = new PhoneAction; + action->setIcon(HbIcon("qtg_mono_send")); + action->setDisabled(disabled); + action->setCommand(EPhoneCallComingCmdSoftReject); + } + break; + case PhoneCallComingCmdSilent: { + action = new PhoneAction; + action->setIcon(HbIcon("qtg_mono_speaker_off")); + action->setDisabled(disabled); + action->setCommand(EPhoneCallComingCmdSilent); + } + break; + case PhoneInCallCmdOpenDialer: { + action = new PhoneAction; + action->setIcon(HbIcon("qtg_mono_dialer")); + action->setDisabled(disabled); + action->setCommand(EPhoneInCallCmdDialer); + } + break; + case PhoneInCallCmdMute: { + action = new PhoneAction; + action->setIcon(HbIcon("qtg_mono_mic_mute")); + action->setDisabled(disabled); + action->setCommand(EPhoneInCallCmdMute); + } + break; + case PhoneInCallCmdUnmute: { + action = new PhoneAction; + action->setIcon(HbIcon("qtg_mono_mic_unmute")); + action->setDisabled(disabled); + action->setCommand(EPhoneInCallCmdUnmute); + } + break; + case PhoneInCallCmdActivateIhf: { + action = new PhoneAction; + action->setIcon(HbIcon("qtg_mono_speaker")); + action->setDisabled(disabled); + action->setCommand(EPhoneInCallCmdActivateIhf); + } + break; + case PhoneInCallCmdDeactivateIhf: { + action = new PhoneAction; + action->setIcon(HbIcon("qtg_mono_mobile")); + action->setDisabled(disabled); + action->setCommand(EPhoneInCallCmdDeactivateIhf); + } + break; + case PhoneInCallCmdOpenContacts: { + action = new PhoneAction; + action->setIcon(HbIcon("qtg_mono_contacts")); + action->setDisabled(disabled); + action->setCommand(EPhoneInCallCmdContacts); + } + break; default: break; } diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/src/phoneuiqtviewadapter.cpp --- a/phoneapp/phoneuiqtviewadapter/src/phoneuiqtviewadapter.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/src/phoneuiqtviewadapter.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -28,7 +28,6 @@ #include "tphonecmdparamstring.h" #include "cphonepubsubproxy.h" #include "pevirtualengine.h" -#include "cphonepubsubproxy.h" #include "cphoneringingtonecontroller.h" #include "phoneresourceadapter.h" #include "phoneui.hrh" @@ -41,6 +40,8 @@ #include "phonemessagecontroller.h" #include "phoneindicatorcontroller.h" #include "qtphonelog.h" +#include "phonevisibilityhandler.h" + #include #include #include @@ -54,20 +55,31 @@ #include #include #include -#include #include -#include #include #include +#include //CONSTANTS static const int PHONE_CALL_NOT_FOUND = -1; PhoneUIQtViewAdapter::PhoneUIQtViewAdapter (PhoneUIQtViewIF &view, QObject *parent) : - QObject (parent), m_view (view), m_idleUid(-1), - m_dialpadAboutToClose(false), m_homeScreenToForeground(false), - m_carModeEnabled(false) + QObject (parent), + m_view (view), + m_idleUid(-1), + m_bubbleWrapper(0), + m_ringingtonecontroller(0), + m_resourceAdapter(0), + m_noteController(0), + m_telephonyService(0), + m_uiCommandController(0), + m_messageController(0), + m_indicatorController(0), + m_dialpadAboutToClose(false), + m_homeScreenToForeground(false), + m_visibilityHandler(0), + m_clearDialpadOnClose(true) { m_bubbleWrapper = new PhoneBubbleWrapper(m_view.bubbleManager (), this); m_noteController = new PhoneNoteController(this); @@ -85,20 +97,7 @@ m_telephonyService = new TelephonyService (this, this); m_indicatorController = new PhoneIndicatorController(this); - - // Define car mode pub sub key - int err = RProperty::Define( - KPSUidTelCarMode, - KTelCarMode, - RProperty::EInt, - KPhoneReadPolicy, - KPhoneWritePolicy); - - // Start listening to car mode changes - if(err == KErrNone) { - CPhonePubSubProxy::Instance()->NotifyChangeL(KPSUidTelCarMode, - KTelCarMode, this); - } + m_visibilityHandler = new PhoneVisibilityHandler(view, this); } PhoneUIQtViewAdapter::~PhoneUIQtViewAdapter () @@ -149,17 +148,7 @@ case EPhoneViewSendToBackground: case EPhoneViewBringIdleToForeground: - if (m_homeScreenToForeground) { - RWsSession& wsSession = CEikonEnv::Static()->WsSession(); - - TApaTaskList taskList( wsSession ); - _LIT(KPhoneHsAppName,"hsapplication"); - TApaTask task = taskList.FindApp(KPhoneHsAppName); - task.BringToForeground(); - } else { - XQServiceUtil::toBackground(true); - } - + m_visibilityHandler->sendToBackground(m_homeScreenToForeground); m_homeScreenToForeground = false; break; case EPhoneViewRemoveAllCallHeaders: @@ -287,6 +276,13 @@ break; case EPhoneViewOpenSoftRejectEditor: m_messageController->openSoftRejectMessageEditor(aCommandParam); + m_visibilityHandler->hideDeviceDialogs(false); + break; + case EPhoneViewSetGlobalNotifiersDisabled: + hideDeviceDialogs(aCommandParam); + break; + case EPhoneViewLaunchLogs: + openLogs(aCommandParam); break; default: break; @@ -456,6 +452,22 @@ m_homeScreenToForeground = param->Boolean(); } break; + case EPhoneViewSetIhfFlag: { + TPhoneCmdParamBoolean *param = static_cast(aCommandParam); + + PhoneResourceAdapter::Instance()->buttonsController()-> + setButtonFlags(PhoneUIQtButtonsController::Ihf, + param->Boolean()); + } + break; + case EPhoneViewSetMuteFlag: { + TPhoneCmdParamBoolean *param = static_cast(aCommandParam); + + PhoneResourceAdapter::Instance()->buttonsController()-> + setButtonFlags(PhoneUIQtButtonsController::Mute, + param->Boolean()); + } + break; default: break; } @@ -468,7 +480,11 @@ void PhoneUIQtViewAdapter::dialpadClosed() { + if (m_clearDialpadOnClose) { + m_view.clearDialpad(); + } m_dialpadAboutToClose = true; + m_clearDialpadOnClose = true; setCallMenu(); } @@ -559,7 +575,7 @@ if (1 == m_bubbleWrapper->bubbles().keys().count()) { setHidden(false); } - m_indicatorController->setActiveCallData( data.CLIText(), KNullDesC ); + m_indicatorController->setActiveCallData(); } void PhoneUIQtViewAdapter::createEmergencyCallHeader( @@ -578,6 +594,8 @@ m_bubbleWrapper->setCli (bubble, data.HeaderText ()); m_bubbleWrapper->setCiphering(bubble, data.CipheringIndicatorAllowed(), data.Ciphering()); m_bubbleWrapper->bubbleManager ().endChanges (); + + m_indicatorController->setActiveCallData(); } void PhoneUIQtViewAdapter::updateCallHeaderState ( @@ -617,6 +635,7 @@ m_bubbleWrapper->setDivert (bubble, data.Diverted ()); m_bubbleWrapper->bubbleManager ().endChanges (); } + m_indicatorController->setActiveCallData(); } @@ -681,6 +700,10 @@ m_resourceAdapter->buttonsController()->setButtonFlags( PhoneUIQtButtonsController::DisableJoin, (5 <= m_bubbleWrapper->conferenceCallList().count())); + + m_resourceAdapter->buttonsController()->setButtonFlags( + PhoneUIQtButtonsController::FullConference, + (5 <= m_bubbleWrapper->conferenceCallList().count())); for (int j = 0; j < bubbles.size(); ++j){ int callId = bubbles.at(j); @@ -722,14 +745,26 @@ static_cast(*commandParam); m_resourceAdapter->buttonsController()->setButtonFlags( - PhoneUIQtButtonsController::DisableJoin, + PhoneUIQtButtonsController::FullConference, (5 <= m_bubbleWrapper->conferenceCallList().count())); - QMap actions = m_resourceAdapter->convert (intParam.Integer ()); - QList values = actions.values(); - + int callId(-1); + int serviceId(-1); + if ( 0callStates().keys().size() ) { + int bubbleId = m_bubbleWrapper->bubbleManager().expandedBubble(); + callId = m_bubbleWrapper->callIdByBubbleId(bubbleId); + serviceId = m_bubbleWrapper->serviceIdByCallId(callId); + } + + QList actions = m_uiCommandController->toolBarActions( + intParam.Integer(), + m_bubbleWrapper->callStates(), + m_bubbleWrapper->serviceIds(), + serviceId, + callId ); + if (actions.count()) { - m_view.setToolbarActions(values); + m_view.setToolbarActions(actions); } qDeleteAll(actions); @@ -865,6 +900,7 @@ m_view.removeExpandAction(m_bubbleWrapper->bubbleId(KConferenceCallId)); m_bubbleWrapper->removeConferenceBubble(); m_bubbleWrapper->bubbleManager().endChanges(); + m_indicatorController->clearActiveCallData(); } void PhoneUIQtViewAdapter::isConference(TPhoneCommandParam *commandParam) @@ -995,9 +1031,15 @@ void PhoneUIQtViewAdapter::bringToForeground() { - if(!m_carModeEnabled) { - m_view.bringToForeground(); - } + m_visibilityHandler->bringToForeground(); +} + +void PhoneUIQtViewAdapter::hideDeviceDialogs(TPhoneCommandParam *commandParam) +{ + Q_ASSERT (commandParam->ParamId () == TPhoneCommandParam::EPhoneParamIdBoolean); + TPhoneCmdParamBoolean* booleanParam = + static_cast(commandParam); + m_visibilityHandler->hideDeviceDialogs(booleanParam->Boolean()); } void PhoneUIQtViewAdapter::showGlobalNote( @@ -1014,9 +1056,10 @@ static_cast(commandParam); if (booleanParam->Boolean()) { - m_dialpadAboutToClose = false; + m_dialpadAboutToClose = true; m_view.showDialpad(); } else { + m_clearDialpadOnClose = false; m_view.hideDialpad(); } } @@ -1131,20 +1174,6 @@ m_bubbleWrapper->bubbleManager().setBubbleSelectionDisabled(selectionFlag); } -void PhoneUIQtViewAdapter::HandlePropertyChangedL(const TUid& aCategory, - const TUint aKey, const TInt aValue) -{ - if((aCategory == KPSUidTelCarMode) && (aKey == KTelCarMode)) { - if(aValue == EPSCarModeOff) { - m_carModeEnabled = false; - } else if(aValue == EPSCarModeOn) { - m_carModeEnabled = true; - } else { - Q_ASSERT(false); - } - } -} - void PhoneUIQtViewAdapter::setHidden(bool hidden) { TRAP_IGNORE(SetHiddenL(hidden)); @@ -1174,8 +1203,41 @@ void PhoneUIQtViewAdapter::openContacts() { XQServiceRequest snd("com.nokia.services.phonebookappservices.Launch","launch()", false); + XQRequestInfo info; + info.setForeground(true); + snd.setInfo(info); int retValue; snd.send(retValue); } +void PhoneUIQtViewAdapter::openLogs(TPhoneCommandParam *commandParam) +{ + TPhoneCmdParamString* entryContent = + static_cast(commandParam); + + int ordinalPosition = m_visibilityHandler->ordinalPosition(); + + m_homeScreenToForeground = false; + m_visibilityHandler->sendToBackground(m_homeScreenToForeground); + + if (0 == ordinalPosition) { + // Activate logs dialer only if telephone is on the top. + XQServiceRequest snd("com.nokia.services.logsservices.starter", + "startWithNum(int,bool,QString)", false); + + snd << (int)LogsServices::ViewAll; + snd << true; + snd << QString::fromUtf16(entryContent->String()->Ptr(), + entryContent->String()->Length()); + + XQRequestInfo info; + info.setForeground(true); + snd.setInfo(info); + + int retValue = -1; + snd.send(retValue); + } +} + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/src/phonevisibilityhandler.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneapp/phoneuiqtviewadapter/src/phonevisibilityhandler.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,223 @@ +/* +* 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: Adjusts visibility of Phone app in device lock situations. +* +*/ +#include +#include +#include +#include +#include +#include +#include +#include "phonevisibilityhandler.h" +#include "cphonepubsubproxy.h" +#include "phoneconstants.h" +#include "phoneuiqtviewif.h" +#include "qtphonelog.h" + +/*! + PhoneVisibilityHandler::PhoneVisibilityHandler. + */ +PhoneVisibilityHandler::PhoneVisibilityHandler(PhoneUIQtViewIF &view, QObject *parent) + : + QObject(parent), + m_view(view), + m_eikonEnv(CEikonEnv::Static()), + m_carModeEnabled(false), + m_hideDeviceDialogs(false), + m_deviceLockEnabled(false), + m_carModeSubscriber(0), + m_carModePublisher(0) +{ + PHONE_TRACE; + sendToBackground(false); // Send phone to background + + m_carModePublisher = new QValueSpacePublisher("/phone",this); + m_carModePublisher->setValue(QString("/carmode"),QVariant(false)); + + m_carModeSubscriber = new QValueSpaceSubscriber("/phone/carmode", this); + connect(m_carModeSubscriber, SIGNAL(contentsChanged()), this, SLOT(carModeChanged())); + m_carModeEnabled = m_carModeSubscriber->value().toBool(); + +/* + // Define car mode pub sub key + int err = RProperty::Define( + KPSUidTelCarMode, + KTelCarMode, + RProperty::EInt, + KPhoneReadPolicy, + KPhoneWritePolicy); + + // Start listening to car mode changes + if(err == KErrNone) { + QT_TRAP_THROWING(CPhonePubSubProxy::Instance()->NotifyChangeL( + KPSUidTelCarMode, KTelCarMode, this)); + } +*/ + int autlockValue = CPhonePubSubProxy::Instance()->Value( + KPSUidCoreApplicationUIs, KCoreAppUIsAutolockStatus); + m_deviceLockEnabled = (EAutolockOff < autlockValue); + + + // Start listening to device lock changes + QT_TRAP_THROWING(CPhonePubSubProxy::Instance()->NotifyChangeL( + KPSUidCoreApplicationUIs, KCoreAppUIsAutolockStatus, this)); +} + + +/*! + PhoneVisibilityHandler::~PhoneVisibilityHandler. + */ +PhoneVisibilityHandler::~PhoneVisibilityHandler() +{ + PHONE_TRACE; + CPhonePubSubProxy::Instance()->CancelAllNotifications(this); +} + +/*! + PhoneVisibilityHandler::bringToForeground. + */ +void PhoneVisibilityHandler::bringToForeground() +{ + PHONE_TRACE2("m_carModeEnabled=", m_carModeEnabled); + + if(!m_carModeEnabled) { + m_view.bringToForeground(); + adjustVisibility(BringForwards); + } + + +} + +/*! + PhoneVisibilityHandler::hideDeviceDialogs. + */ +void PhoneVisibilityHandler::hideDeviceDialogs(bool hide) +{ + PHONE_TRACE2(": hide =", hide); + m_hideDeviceDialogs = hide; + adjustVisibility(KeepCurrentPos); +} + +/*! + PhoneVisibilityHandler::ordinalPosition. + */ +int PhoneVisibilityHandler::ordinalPosition() +{ + return m_eikonEnv->RootWin().OrdinalPosition(); +} + +/*! + PhoneVisibilityHandler::sendToBackground. + */ +void PhoneVisibilityHandler::sendToBackground(bool homeScreenForeground) +{ + PHONE_TRACE2(": homeScreenForeground =", homeScreenForeground); + + // Send phone back on WSERV stack + adjustVisibility(SendToBack); + + // Fetch homescreen to foreground if needed + if (homeScreenForeground) { + _LIT(KPhoneHsAppName,"hsapplication"); + TApaTaskList taskList(m_eikonEnv->WsSession()); + TApaTask task = taskList.FindApp(KPhoneHsAppName); + task.BringToForeground(); + } +} + +/*! + PhoneVisibilityHandler::HandlePropertyChangedL. + */ +void PhoneVisibilityHandler::HandlePropertyChangedL(const TUid& aCategory, + const TUint aKey, const TInt aValue) +{ + if((aCategory == KPSUidCoreApplicationUIs) && + (aKey == KCoreAppUIsAutolockStatus)) { + // Adjust visibility according mode + m_deviceLockEnabled = (EAutolockOff < aValue); + PHONE_TRACE2(": m_deviceLockEnabled=", m_deviceLockEnabled); + adjustVisibility(KeepCurrentPos); + + } +} + +/*! + PhoneVisibilityHandler::adjustVisibility. + -1 Ordinal position is lowest ( not visible ) + 0 Ordinal position is highest ( visible ) + 1 - ... Ordinal postition under one or more window group + */ +void PhoneVisibilityHandler::adjustVisibility(AdjustAction action) +{ + PHONE_TRACE1(": START"); + int ordinalPos = m_eikonEnv->RootWin().OrdinalPosition(); + PHONE_TRACE2(": current pos:", ordinalPos); + + if (m_carModeEnabled || (action == SendToBack)) { + PHONE_TRACE1(": SendPhoneToBackground"); + m_eikonEnv->RootWin().SetOrdinalPosition(-1, ECoeWinPriorityNeverAtFront); + + } else if ((KeepCurrentPos == action) && + (m_eikonEnv->RootWin().OrdinalPriority() == ECoeWinPriorityNeverAtFront)) { + // Skip situations where phone is put to back + // and action is not to bring it up + // Execution must come here if there is no calls + PHONE_TRACE1(": Skip"); + + } else if (m_hideDeviceDialogs) { + PHONE_TRACE1(": Hide dialogs"); + m_eikonEnv->RootWin().SetOrdinalPosition(0, ECoeWinPriorityAlwaysAtFront + 1); + + } else if (m_deviceLockEnabled) { + // critical notes are allowed to show on top of Phone application + PHONE_TRACE1(": Devicelock"); + m_eikonEnv->RootWin().SetOrdinalPosition(0, ECoeWinPriorityAlwaysAtFront); + + } else if (BringForwards == action) { + // Try to show phone with normal priority + PHONE_TRACE1(": Bring forward"); + m_eikonEnv->RootWin().SetOrdinalPosition(0, ECoeWinPriorityNormal); + + } else { + // Normalize visiblity after ie. device lock + PHONE_TRACE1(": Normalize"); + m_eikonEnv->RootWin().SetOrdinalPosition(ordinalPos, ECoeWinPriorityNormal); + + } + + PHONE_TRACE1(": END"); +} + +void PhoneVisibilityHandler::carModeChanged() +{ + PHONE_TRACE; + + m_carModeEnabled = m_carModeSubscriber->value().toBool(); + + CCallInformation* callInfos = CCallInformation::NewL(); + Q_ASSERT(callInfos != 0); + int amountOfCalls = callInfos->GetCallsL().Count(); + + if(!m_carModeEnabled && (amountOfCalls > 0)) { + bringToForeground(); + } + + delete callInfos; + + // Adjust visibility according mode (TODO!) + PHONE_TRACE2(": m_carModeEnabled=", m_carModeEnabled); + //adjustVisibility(KeepCurrentPos); +} diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/tsrc/carmodechanger/rom/carmodechanger.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneapp/phoneuiqtviewadapter/tsrc/carmodechanger/rom/carmodechanger.iby Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,31 @@ +/* +* 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: Car mode changer iby file +* +*/ + + +#ifndef __CARMODECHANGER_IBY__ +#define __CARMODECHANGER_IBY__ + +#include + +#define UPGRADABLE_APP_REG_RSC(NAME) data=DATAZ_\PRIVATE\10003A3F\IMPORT\APPS\ ## NAME ## _reg.rsc Private\10003a3f\import\apps\ ## NAME ## _reg.rsc + +S60_APP_EXE(carmodechanger) +UPGRADABLE_APP_REG_RSC(carmodechanger) +S60_APP_AIF_RSC(carmodechanger) + + +#endif diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/tsrc/carmodechanger/rom/carmodechangerresources.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneapp/phoneuiqtviewadapter/tsrc/carmodechanger/rom/carmodechangerresources.iby Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,26 @@ +/* +* 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: Car mode changer Resources iby file +* +*/ + + +#ifndef __CARMODECHANGER_RESOURCES_IBY__ +#define __CARMODECHANGER_RESOURCES_IBY__ + +#include + +S60_APP_RESOURCE(carmodechanger) + +#endif diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/tsrc/runtests.bat --- a/phoneapp/phoneuiqtviewadapter/tsrc/runtests.bat Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/tsrc/runtests.bat Wed Jun 23 18:12:20 2010 +0300 @@ -16,22 +16,26 @@ echo OFF -del \epoc32\winscw\c\private\e37686c5\ut_phoneuiqtbuttonscontroller.log -\epoc32\release\winscw\udeb\ut_phoneuiqtbuttonscontroller.exe -o ut_phoneuiqtbuttonscontroller.log -type \epoc32\winscw\c\private\e37686c5\ut_phoneuiqtbuttonscontroller.log +del \epoc32\winscw\c\data\ut_phoneuiqtbuttonscontroller.log +\epoc32\release\winscw\udeb\ut_phoneuiqtbuttonscontroller.exe -o c:\data\ut_phoneuiqtbuttonscontroller.log +type \epoc32\winscw\c\data\ut_phoneuiqtbuttonscontroller.log -del \epoc32\winscw\c\private\eff8fea2\ut_phoneuiqtviewadapter.log -\epoc32\release\winscw\udeb\ut_phoneuiqtviewadapter.exe -o ut_phoneuiqtviewadapter.log -type \epoc32\winscw\c\private\eff8fea2\ut_phoneuiqtviewadapter.log +del \epoc32\winscw\c\data\ut_phoneuiqtviewadapter.log +\epoc32\release\winscw\udeb\ut_phoneuiqtviewadapter.exe -o c:\data\ut_phoneuiqtviewadapter.log +type \epoc32\winscw\c\data\ut_phoneuiqtviewadapter.log + +del \epoc32\winscw\c\data\ut_phonebubblewrapper.log +\epoc32\release\winscw\udeb\ut_phonebubblewrapper.exe -o c:\data\ut_phonebubblewrapper.log +type \epoc32\winscw\c\data\ut_phonebubblewrapper.log -del \epoc32\winscw\c\private\eacf41fe\ut_phonebubblewrapper.log -\epoc32\release\winscw\udeb\ut_phonebubblewrapper.exe -o ut_phonebubblewrapper.log -type \epoc32\winscw\c\private\eacf41fe\ut_phonebubblewrapper.log +del \epoc32\winscw\c\data\ut_phoneresourceadapter.log +\epoc32\release\winscw\udeb\ut_phoneresourceadapter.exe -o c:\data\ut_phoneresourceadapter.log +type \epoc32\winscw\c\data\ut_phoneresourceadapter.log -del \epoc32\winscw\c\private\eda69235\ut_phoneresourceadapter.log -\epoc32\release\winscw\udeb\ut_phoneresourceadapter.exe -o ut_phoneresourceadapter.log -type \epoc32\winscw\c\private\eda69235\ut_phoneresourceadapter.log +del \epoc32\winscw\c\data\ut_telephonyservice.log +\epoc32\release\winscw\udeb\ut_telephonyservice.exe -o c:\data\ut_telephonyservice.log +type \epoc32\winscw\c\data\ut_telephonyservice.log -del \epoc32\winscw\c\private\e37686c5\ut_telephonyservice.log -\epoc32\release\winscw\udeb\ut_telephonyservice.exe -o ut_telephonyservice.log -type \epoc32\winscw\c\private\e37686c5\ut_telephonyservice.log +del \epoc32\winscw\c\data\ut_phonevisibilityhandler.log +\epoc32\release\winscw\udeb\ut_phonevisibilityhandler.exe -o c:\data\ut_phonevisibilityhandler.log +type \epoc32\winscw\c\data\ut_phonevisibilityhandler.log diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/tsrc/u_carmodetester/main.cpp --- a/phoneapp/phoneuiqtviewadapter/tsrc/u_carmodetester/main.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/tsrc/u_carmodetester/main.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -1,19 +1,3 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ #include #include #include diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/tsrc/unit.pro --- a/phoneapp/phoneuiqtviewadapter/tsrc/unit.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/tsrc/unit.pro Wed Jun 23 18:12:20 2010 +0300 @@ -20,3 +20,5 @@ SUBDIRS += ut_phoneuiqtviewadapter SUBDIRS += ut_phonebubblewrapper SUBDIRS += ut_phoneresourceadapter +SUBDIRS += ut_telephonyservice +SUBDIRS += ut_phonevisibilityhandler diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/tsrc/ut_phonecommandextensionwrapper/menuextension_stub.cpp --- a/phoneapp/phoneuiqtviewadapter/tsrc/ut_phonecommandextensionwrapper/menuextension_stub.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/tsrc/ut_phonecommandextensionwrapper/menuextension_stub.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -26,6 +26,7 @@ bool m_addMenuActionsCalled; bool m_releaseMenuCalled; bool m_releaseCalled; +bool m_modifyToolBarCommandListCalled; SvtMenu::SvtMenu() : @@ -49,6 +50,11 @@ m_modifyPushButtonCommandListCalled = true; } +void SvtMenu::modifyToolBarCommandList(const QList &callInfo,QList &toolBarCmdList) +{ + m_modifyToolBarCommandListCalled = true; +} + void SvtMenu::addMenuActions(const QList &callInfo,QList &menuActions) { m_addMenuActionsCalled = true; diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/tsrc/ut_phonecommandextensionwrapper/menuextension_stub.h --- a/phoneapp/phoneuiqtviewadapter/tsrc/ut_phonecommandextensionwrapper/menuextension_stub.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/tsrc/ut_phonecommandextensionwrapper/menuextension_stub.h Wed Jun 23 18:12:20 2010 +0300 @@ -3,7 +3,7 @@ * Name : * Part of : * Description : -* Version : %version: 2 % +* Version : %version: 3 % * * Copyright 2008 Nokia. All rights reserved. * This material, including documentation and any related computer @@ -82,6 +82,21 @@ QList &buttonCmdList); /*! + \fn void modifyToolBarCommandList(QList &menuCmdList) + + Modifies tool bar command list. CallInfo contains current call + information and toolBarCmdList contains current list of tool + bar commands. + Interface can remove/disable commands if the command list contains + unsupported call commands (For example if service doesn't support + conference call) or add commads which should be handled by telephony + call handling (maximum amount of tool bar commands is 4 and list + index 0 is used for right button). + */ + void modifyToolBarCommandList(const QList &callInfo, + QList &toolBarCmdList); + + /*! \fn void addMenuActions(QList &menuActions) Adds actions to menu. Interface adds own actions to the list which diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/tsrc/ut_phonecommandextensionwrapper/unit_tests.cpp --- a/phoneapp/phoneuiqtviewadapter/tsrc/ut_phonecommandextensionwrapper/unit_tests.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/tsrc/ut_phonecommandextensionwrapper/unit_tests.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -27,6 +27,7 @@ extern bool m_modifyMenuCommandListCalled; extern bool m_modifyPushButtonCommandListCalled; +extern bool m_modifyToolBarCommandListCalled; extern bool m_addMenuActionsCalled; extern bool m_releaseMenuCalled; extern bool m_releaseCalled; @@ -105,6 +106,7 @@ QList callInfo; QList menuCmdList; QList menuActions; + QList toolBar; m_useExtensionStub = false; m_wrapper = new PhoneCommandExtensionWrapper(123456); @@ -113,6 +115,9 @@ m_wrapper->modifyPushButtonCommandList(callInfo, menuCmdList); QVERIFY( false == m_modifyPushButtonCommandListCalled ); + + m_wrapper->modifyToolBarCommandList(callInfo, toolBar); + QVERIFY( false == m_modifyToolBarCommandListCalled ); m_wrapper->addMenuActions(callInfo, menuActions); QVERIFY( false == m_addMenuActionsCalled ); @@ -130,6 +135,7 @@ QList callInfo; QList menuCmdList; QList menuActions; + QList toolBar; m_useExtensionStub = true; m_wrapper = new PhoneCommandExtensionWrapper(123456); @@ -141,6 +147,9 @@ m_wrapper->modifyPushButtonCommandList(callInfo, menuCmdList); QVERIFY( m_modifyPushButtonCommandListCalled ); + m_wrapper->modifyToolBarCommandList(callInfo, toolBar); + QVERIFY( m_modifyToolBarCommandListCalled ); + m_wrapper->addMenuActions(callInfo, menuActions); QVERIFY( m_addMenuActionsCalled ); diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/tsrc/ut_phonemessagecontroller/unit_tests.cpp --- a/phoneapp/phoneuiqtviewadapter/tsrc/ut_phonemessagecontroller/unit_tests.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/tsrc/ut_phonemessagecontroller/unit_tests.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -19,10 +19,19 @@ #include #include #include -//#include +#include "phoneconstants.h" +#include "cphonecenrepproxy.h" +#include "cphonepubsubproxy.h" +#include #include "phonemessagecontroller.h" #include "tphonecmdparamsfidata.h" +QString mService; +QString mMessage; +bool mSend; +QList mList; + + #define PHONE_QT_MESSAGE_CONTROLLER_TEST_MAIN(TestObject) \ int main(int argc, char *argv[]) \ { \ @@ -55,6 +64,8 @@ void testOpenSoftRejectEditor(); +private: + QString softRejectText(); private: PhoneMessageController *m_messageController; // class under test @@ -88,11 +99,52 @@ void TestPhoneMessageController::testOpenSoftRejectEditor() { + QString text = softRejectText(); TPhoneCmdParamSfiData sfiParam; sfiParam.SetNumber(_L("1234567")); sfiParam.SetName(_L("Tester")); m_messageController->openSoftRejectMessageEditor(&sfiParam); + + QVERIFY( mService == "com.nokia.services.hbserviceprovider.conversationview" ); + QVERIFY( mMessage == "send(QString,QString,QString)" ); + QVERIFY( mList.contains("1234567") ); + QVERIFY( mList.contains("Tester") ); + QVERIFY( mList.contains(text) ); + QVERIFY( mSend ); +} + +QString TestPhoneMessageController::softRejectText() +{ + QString messageBody; + // Get message body + TInt softRejectDefaultInUseValue = 0; + const TInt err = CPhoneCenRepProxy::Instance()->GetInt( + KCRUidTelephonySettings, + KSettingsSoftRejectDefaultInUse, + softRejectDefaultInUseValue ); + + if (softRejectDefaultInUseValue) { + HBufC* softRejectTxt = NULL; + TRAP_IGNORE( softRejectTxt = HBufC::NewL( KPhoneSMSLength ) ); + + if (softRejectTxt) { + TPtr string( softRejectTxt->Des() ); + + // Default txt used or not + CPhoneCenRepProxy::Instance()->GetString( + KCRUidTelephonySettings, + KSettingsSoftRejectText, + string ); + + messageBody = QString::fromUtf16(string.Ptr(), string.Length()); + delete softRejectTxt; + } + } else { + messageBody = hbTrId("txt_phone_setlabel_soft_reject_val_default_text"); + } + + return messageBody; } PHONE_QT_MESSAGE_CONTROLLER_TEST_MAIN(TestPhoneMessageController) diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/tsrc/ut_phonemessagecontroller/ut_phonemessagecontroller.pro --- a/phoneapp/phoneuiqtviewadapter/tsrc/ut_phonemessagecontroller/ut_phonemessagecontroller.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/tsrc/ut_phonemessagecontroller/ut_phonemessagecontroller.pro Wed Jun 23 18:12:20 2010 +0300 @@ -41,6 +41,7 @@ } # Input +HEADERS += xqservicerequest.h HEADERS += ../../inc/phonemessagecontroller.h SOURCES += ../../src/phonemessagecontroller.cpp SOURCES += unit_tests.cpp diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/tsrc/ut_phonemessagecontroller/xqservicerequest.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneapp/phoneuiqtviewadapter/tsrc/ut_phonemessagecontroller/xqservicerequest.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,78 @@ +/*! +* 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: Unit tests for PhoneNoteController. +* +*/ + +#ifndef T_XQSERVICEREQUEST_H +#define T_XQSERVICEREQUEST_H + +#include +#include +#include + +extern QString mService; +extern QString mMessage; +extern bool mSend; +extern QList mList; + + +/*! + \class XQServiceRequest +*/ +class XQServiceRequest : public QObject +{ +Q_OBJECT + +public: + + XQServiceRequest(const QString &service, + const QString &message, + const bool &synchronous = true) + { + mService = service; + mMessage = message; + } + + ~XQServiceRequest() + { + } + + bool send(QVariant &retValue) + { + mSend = true; + return mSend; + } + + template + inline bool send(T& retValue) + { + QVariant retData; + bool ret=send(retData); + retValue = qVariantValue(retData); + return ret; + } + + void setArguments(QList list) + { + mList = list; + } + +Q_SIGNALS: + + void requestCompleted(const QVariant &value); + +}; + +#endif //T_XQSERVICEREQUEST_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/tsrc/ut_phonenotecontroller/unit_tests.cpp --- a/phoneapp/phoneuiqtviewadapter/tsrc/ut_phonenotecontroller/unit_tests.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/tsrc/ut_phonenotecontroller/unit_tests.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -66,7 +66,12 @@ void testShowNote(); void testShowQuery(); void testShowClobalWaitNote(); - + void testShowIndicationDialogDefault (); + void testShowIndicationDialogWithResourceId (); + void testShowIndicationDialogWithText (); + void testShowIndicationDialogTextAndResourceId (); + void testShowIndicationDialogTwoTimes (); + void testShowIndicationDialogThreeTimes (); private: PhoneNoteController *m_noteController; // class under test @@ -182,7 +187,7 @@ m_noteController->showGlobalNote(&globalNoteParam); - QTest::qWait(20000); + QTest::qWait(5000); } void TestPhoneNoteController::testShowNote() @@ -200,16 +205,16 @@ noteParam.SetText(_L("Sending:\n123p456")); m_noteController->showNote(¬eParam); - QTest::qWait(20000); + QTest::qWait(5000); noteParam.SetText(_L("Sending:\n123p456")); m_noteController->showNote(¬eParam); - QTest::qWait(20000); + QTest::qWait(5000); m_noteController->removeNote(); - QTest::qWait(20000); + QTest::qWait(5000); } void TestPhoneNoteController::testShowQuery() @@ -227,12 +232,12 @@ queryParam.SetQueryResourceId(R_PHONEUI_DTMF_WAIT_CHARACTER_CONFIRMATION_QUERY); m_noteController->showQuery(&queryParam); - QTest::qWait(20000); + QTest::qWait(5000); m_noteController->showQuery(&queryParam); m_noteController->removeQuery(); - QTest::qWait(20000); + QTest::qWait(5000); } void TestPhoneNoteController::testShowClobalWaitNote() @@ -256,11 +261,99 @@ queryParam.SetDataText(&buf); queryParam.SetTimeOut(2000); m_noteController->showQuery(&queryParam); - QTest::qWait(10000); + QTest::qWait(5000); queryParam.SetCustomCommandForTimeOut(10); m_noteController->showQuery(&queryParam); - QTest::qWait(10000); + QTest::qWait(5000); +} + +void TestPhoneNoteController::testShowIndicationDialogDefault () +{ + TPhoneCmdParamGlobalNote globalNoteParam; + globalNoteParam.SetNotificationDialog( ETrue ); + globalNoteParam.SetTimeout(0); + m_noteController->showGlobalNote(&globalNoteParam); + QTest::qWait(2500); + + globalNoteParam.SetTimeout(KPhoneNoteNoTimeout); + m_noteController->showGlobalNote(&globalNoteParam); + QTest::qWait(2500); +} + +void TestPhoneNoteController::testShowIndicationDialogWithResourceId () +{ + TPhoneCmdParamGlobalNote globalNoteParam; + globalNoteParam.SetNotificationDialog( ETrue ); + globalNoteParam.SetTextResourceId(R_NOTETEXT_NO_ANSWER); + globalNoteParam.SetType( EAknGlobalInformationNote ); + + m_noteController->showGlobalNote(&globalNoteParam); + + QTest::qWait(5000); +} + +void TestPhoneNoteController::testShowIndicationDialogWithText () +{ + TPhoneCmdParamGlobalNote globalNoteParam; + globalNoteParam.SetNotificationDialog( ETrue ); + globalNoteParam.SetType( EAknGlobalWarningNote ); + globalNoteParam.SetText(_L("Test indication 1")); + + m_noteController->showGlobalNote(&globalNoteParam); +} + +void TestPhoneNoteController::testShowIndicationDialogTextAndResourceId () +{ + TPhoneCmdParamGlobalNote globalNoteParam; + globalNoteParam.SetNotificationDialog( ETrue ); + globalNoteParam.SetTextResourceId(R_PHONE_TEXT_COLP_CONNECTED); + globalNoteParam.SetType( EAknGlobalInformationNote ); + globalNoteParam.SetText(_L("Indication number")); + globalNoteParam.SetTimeout(1000); + + m_noteController->showGlobalNote(&globalNoteParam); + + QTest::qWait(2000); +} + +void TestPhoneNoteController::testShowIndicationDialogTwoTimes () +{ + TPhoneCmdParamGlobalNote globalNoteParam; + globalNoteParam.SetNotificationDialog( ETrue ); + //globalNoteParam.SetTextResourceId(R_NOTETEXT_NO_ANSWER); + globalNoteParam.SetType( EAknGlobalInformationNote ); + globalNoteParam.SetText(_L("Test indication 2")); + + m_noteController->showGlobalNote(&globalNoteParam); + + globalNoteParam.SetText(_L("Test indication 3")); + + m_noteController->showGlobalNote(&globalNoteParam); + + QTest::qWait(5000); + +} + +void TestPhoneNoteController::testShowIndicationDialogThreeTimes () +{ + TPhoneCmdParamGlobalNote globalNoteParam; + globalNoteParam.SetNotificationDialog( ETrue ); + globalNoteParam.SetType( EAknGlobalInformationNote ); + globalNoteParam.SetText(_L("Test indication 4")); + + m_noteController->showGlobalNote(&globalNoteParam); + + globalNoteParam.SetText(_L("Test indication 5")); + + globalNoteParam.SetTimeout(1000); + m_noteController->showGlobalNote(&globalNoteParam); + + globalNoteParam.SetText(_L("Test indication 6")); + + m_noteController->showGlobalNote(&globalNoteParam); + + QTest::qWait(20000); } PHONE_QT_NOTE_CONTROLLER_TEST_MAIN(TestPhoneNoteController) diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneresourceadapter/unit_tests.cpp --- a/phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneresourceadapter/unit_tests.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneresourceadapter/unit_tests.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -21,9 +21,10 @@ #include #include #include -//#include #include +#include #include "phoneresourceadapter.h" +#include "phoneuiqtbuttonscontroller.h" #include "phoneresourceids.h" #include "phoneui.hrh" @@ -62,6 +63,7 @@ void testDefaultToolbarResourceId(); void testConvertCommandToString(); void testConvertToHbActions(); + void testConvertToToolBarCommandList(); private: void testIncallToolbar (int id); // helper function @@ -106,46 +108,6 @@ QMap map; PhoneAction *action = map [PhoneAction::LeftButton]; - - map = m_resourceAdapter->convert (R_PHONEUI_CALLHANDLING_INCOMINGCALL_CBA); - QCOMPARE (map.size (), 2); - action = map [PhoneAction::ToolbarButton1]; - QCOMPARE (action->icon (), HbIcon("qtg_mono_send")); - action = map [PhoneAction::ToolbarButton2]; - QCOMPARE (action->icon (), HbIcon("qtg_mono_speaker_off")); - QCOMPARE (action->command (), (int)EPhoneCallComingCmdSilent); - - map = m_resourceAdapter->convert (R_PHONEUI_CALLHANDLING_INCOMINGCALL_REJECT_CBA); - QCOMPARE (map.size (), 2); - action = map [PhoneAction::ToolbarButton1]; - QCOMPARE (action->icon (), HbIcon("qtg_mono_send")); - action = map [PhoneAction::ToolbarButton2]; - QCOMPARE (action->icon (), HbIcon("qtg_mono_reject_call")); - //Command is disabled - //QCOMPARE (action->command (), (int)EPhoneCallComingCmdReject); - - map = m_resourceAdapter->convert (R_PHONEUI_CALLHANDLING_INCOMINGCALL_SOFT_REJECT_CBA); - QCOMPARE (map.size (), 2); - action = map [PhoneAction::ToolbarButton1]; - QCOMPARE (action->icon (), HbIcon("qtg_mono_send")); - action = map [PhoneAction::ToolbarButton2]; - QCOMPARE (action->icon (), HbIcon("qtg_mono_speaker_off")); - //Command is disabled - //QCOMPARE (action->command (), (int)EPhoneCallComingCmdReject); - - map = m_resourceAdapter->convert (R_PHONEUI_CALLHANDLING_CALLWAITING_CBA); - QCOMPARE (map.size (), 2); - action = map [PhoneAction::ToolbarButton1]; - QCOMPARE (action->icon (), HbIcon("qtg_mono_send")); - action = map [PhoneAction::ToolbarButton2]; - QCOMPARE (action->icon (), HbIcon("qtg_mono_join_call")); - QCOMPARE (action->command (), (int)EPhoneInCallCmdJoin); - - testIncallToolbar( R_PHONEUI_DIALER_CBA ); - testIncallToolbar( R_PHONEUI_INCALL_DIALER_CBA ); - testIncallToolbar( R_PHONEUI_CALLHANDLING_CALLSETUP_EMPTY_DTMFDIALER_CBA ); - testIncallToolbar( R_PHONEUI_CALLHANDLING_INCALL_UNHOLD_CBA ); - testIncallToolbar( R_PHONEUI_CALLHANDLING_INCALL_UNMUTE_CBA ); map = m_resourceAdapter->convert (R_PHONEUI_MTCAL_INCOMING_CALL); QCOMPARE (map.size (), 1); @@ -167,11 +129,6 @@ action = map [PhoneAction::Text]; QVERIFY( false == action->text().isEmpty() ); - map = m_resourceAdapter->convert (R_PHONEUI_INCALL_CALL_NUMBER, 3); - QCOMPARE (map.size (), 1); - action = map [PhoneAction::Text]; - QVERIFY( false == action->text().isEmpty() ); - map = m_resourceAdapter->convert (R_PHONEUI_TIME_DURAT_LONG_WITH_ZERO); QCOMPARE (map.size (), 1); action = map [PhoneAction::Text]; @@ -186,12 +143,12 @@ QCOMPARE (map.size (), 1); action = map [PhoneAction::Text]; QVERIFY( false == action->text().isEmpty() ); - - map = m_resourceAdapter->convert (R_PHONEUI_MTCAL_CALL); + + map = m_resourceAdapter->convert (R_PHONEUI_MTCAL_CLI_UNKNOWN); QCOMPARE (map.size (), 1); action = map [PhoneAction::Text]; QVERIFY( false == action->text().isEmpty() ); - + map = m_resourceAdapter->convert (R_PHONEUI_EMERGENCY_CALL_HEADER); QCOMPARE (map.size (), 1); action = map [PhoneAction::Text]; @@ -207,15 +164,7 @@ action = map [PhoneAction::LeftButton]; QVERIFY( false == action->text().isEmpty() ); QCOMPARE (action->icon (), HbIcon("qtg_mono_end_call")); - QCOMPARE (action->command (), (int)EPhoneCmdEnd); - - map = m_resourceAdapter->convert (R_PHONEUI_CALLHANDLING_EMERGENCY_CBA); - QCOMPARE (map.size (), 2); - action = map [PhoneAction::ToolbarButton1]; - QCOMPARE (action->icon (), HbIcon("qtg_mono_dialer")); - action = map [PhoneAction::ToolbarButton2]; - QCOMPARE (action->icon (), HbIcon("qtg_mono_speaker")); - QCOMPARE (action->command (), (int)EPhoneInCallCmdActivateIhf); + QCOMPARE (action->command (), (int)EPhoneCmdEnd); map = m_resourceAdapter->convert (R_PHONEUI_CONFERENCE_CALL); QCOMPARE (map.size (), 1); @@ -233,16 +182,6 @@ action = map[PhoneAction::Text]; QVERIFY( false == action->text().isEmpty() ); - map = m_resourceAdapter->convert(R_PHONE_IMEI_STRING, &buffer); - QCOMPARE(map.size(), 1); - action = map[PhoneAction::Text]; - QVERIFY( false == action->text().isEmpty() ); - - map = m_resourceAdapter->convert(R_PHONEUI_LIFE_TIMER_STRING, &buffer); - QCOMPARE(map.size(), 1); - action = map[PhoneAction::Text]; - QVERIFY( false == action->text().isEmpty() ); - // TODO map = m_resourceAdapter->convert (R_PHONEUI_CALLHANDLING_INCALL_HANDSET_CBA); @@ -308,6 +247,93 @@ QString testString18 = m_resourceAdapter->convertToString(R_PHONE_ERROR_NO_SERVICE); QVERIFY( false == testString18.isEmpty() ); + QString testString19 = m_resourceAdapter->convertToString(R_NOTETEXT_NUMBER_BARRED); + QVERIFY( false == testString19.isEmpty() ); + + QString testString20 = m_resourceAdapter->convertToString(R_PHONEUI_NO_VIDEO_NETWORK); + QVERIFY( false == testString20.isEmpty() ); + + QString testString21 = m_resourceAdapter->convertToString(R_PHONEUI_VIDEO_CALL_NOT_POSSIBLE); + QVERIFY( false == testString21.isEmpty() ); + + QString testString22 = m_resourceAdapter->convertToString(R_CALL_INFO_CAUSE_VALUE127); + QVERIFY( false == testString22.isEmpty() ); + + QString testString23 = m_resourceAdapter->convertToString(R_CALL_INFO_NOT_SUPPORTED); + QVERIFY( false == testString23.isEmpty() ); + + QString testString24 = m_resourceAdapter->convertToString(R_CALL_INFO_SERVICE_NOT_AVAILABLE); + QVERIFY( false == testString24.isEmpty() ); + + QString testString25 = m_resourceAdapter->convertToString(R_CALL_INFO_CAUSE_VALUE38); + QVERIFY( false == testString25.isEmpty() ); + + QString testString26 = m_resourceAdapter->convertToString(R_CALL_INFO_CAUSE_VALUE55); + QVERIFY( false == testString26.isEmpty() ); + + QString testString27 = m_resourceAdapter->convertToString(R_CALL_INFO_CAUSE_VALUE58); + QVERIFY( false == testString27.isEmpty() ); + + QString testString28 = m_resourceAdapter->convertToString(R_NOTE_PHONE_OUT_OF_3G_COVERAGE); + QVERIFY( false == testString28.isEmpty() ); + + QString testString29 = m_resourceAdapter->convertToString(R_NOTE_VIDEO_CALL_ONLY_POSSIBLE_UNDER_3G_COVERAGE); + QVERIFY( false == testString29.isEmpty() ); + + QString testString30 = m_resourceAdapter->convertToString(R_NOTE_CALLED_NUMBER_HAS_BARRED_INCOMING_CALLS); + QVERIFY( false == testString30.isEmpty() ); + + QString testString31 = m_resourceAdapter->convertToString(R_INCAL_REMOTE_CREATE_CONFERENCE_TEXT); + QVERIFY( false == testString31.isEmpty() ); + + QString testString32 = m_resourceAdapter->convertToString(R_NOTETEXT_CALL_BARRINGS); + QVERIFY( false == testString32.isEmpty() ); + + QString testString33 = m_resourceAdapter->convertToString(R_CALL_INFO_CAUSE_VALUE16); + QVERIFY( false == testString33.isEmpty() ); + + QString testString34 = m_resourceAdapter->convertToString(R_CALL_INFO_CAUSE_VALUE18); + QVERIFY( false == testString34.isEmpty() ); + + QString testString35 = m_resourceAdapter->convertToString(R_CALL_INFO_CAUSE_VALUE21); + QVERIFY( false == testString35.isEmpty() ); + + QString testString36 = m_resourceAdapter->convertToString(R_CALL_INFO_CAUSE_VALUE22); + QVERIFY( false == testString36.isEmpty() ); + + QString testString37 = m_resourceAdapter->convertToString(R_CALL_INFO_CAUSE_VALUE34); + QVERIFY( false == testString37.isEmpty() ); + + QString testString38 = m_resourceAdapter->convertToString(R_PHONE_ERROR_CALL_NOT_ALLOWED_FDN); + QVERIFY( false == testString38.isEmpty() ); + + QString testString39 = m_resourceAdapter->convertToString(R_NOTE_UNABLE_TO_MAKE_VIDEO_CALL_NOT_SUPPORTED_BY_OTHER_PHONE); + QVERIFY( false == testString39.isEmpty() ); + + QString testString40 = m_resourceAdapter->convertToString(R_NOTETEXT_DIVERTING_INCOMING_CALL); + QVERIFY( false == testString40.isEmpty() ); + + QString testString41 = m_resourceAdapter->convertToString(R_NOTETEXT_DIVERTING); + QVERIFY( false == testString41.isEmpty() ); + + QString testString42 = m_resourceAdapter->convertToString(R_NOTETEXT_ALL_INCOMING_CALLS_DIVERTED); + QVERIFY( false == testString42.isEmpty() ); + + QString testString43 = m_resourceAdapter->convertToString(R_PHONE_ERROR_CHECK_CLIR); + QVERIFY( false == testString43.isEmpty() ); + + QString testString44 = m_resourceAdapter->convertToString(R_PHONE_SS_NOTIFICATION_CLIR_SUPPR_REJECT_TEXT); + QVERIFY( false == testString44.isEmpty() ); + + QString testString45 = m_resourceAdapter->convertToString(R_NOTE_TEXT_CLIR_CHANGE); + QVERIFY( false == testString45.isEmpty() ); + + QString testString46 = m_resourceAdapter->convertToString(R_PHONE_ERROR_CHECK_NETWORK_SERVICES); + QVERIFY( false == testString46.isEmpty() ); + + QString testString47 = m_resourceAdapter->convertToString(R_PHONE_INCALL_INFO_VIDEO_CALL_NOT_ALLOWED_DURING_RESTORE); + QVERIFY( false == testString47.isEmpty() ); + QString testString99 = m_resourceAdapter->convertToString(0); QCOMPARE( testString99, QString ("") ); } @@ -359,7 +385,7 @@ void TestPhoneResourceAdapter::testDefaultToolbarResourceId() { QVERIFY(m_resourceAdapter->defaultToolbarResourceId()== - R_PHONEUI_CALLHANDLING_INCOMINGCALL_CBA); + R_PHONEUI_INCALL_DIALER_CBA); } void TestPhoneResourceAdapter::testConvertCommandToString () @@ -375,10 +401,6 @@ QVERIFY( false == testString.isEmpty() ); testString = m_resourceAdapter->convertCommandToString( - EPhoneInCallCmdSwitchToVideo); - QVERIFY( false == testString.isEmpty() ); - - testString = m_resourceAdapter->convertCommandToString( EPhoneCmdHandoverToWlan); QVERIFY( false == testString.isEmpty() ); @@ -414,5 +436,169 @@ QCOMPARE( testList.count(), 0 ); } +void TestPhoneResourceAdapter::testConvertToToolBarCommandList () +{ + m_resourceAdapter = PhoneResourceAdapter::Instance(this); + PhoneUIQtButtonsController* buttonsController = + m_resourceAdapter->buttonsController(); + + QList testList; + + testList = m_resourceAdapter->convertToToolBarCommandList(R_PHONEUI_CALLHANDLING_INCOMINGCALL_CBA); + QCOMPARE(2,testList.count()); + QVERIFY(PhoneCallComingCmdSoftReject == testList.at(0).mCommandId); + QVERIFY(PhoneCallComingCmdSilent == testList.at(1).mCommandId); + QVERIFY(true == testList.at(0).mEnabled); + QVERIFY(true == testList.at(1).mEnabled); + testList.clear(); + + testList = m_resourceAdapter->convertToToolBarCommandList(R_PHONEUI_CALLHANDLING_INCOMINGCALL_REJECT_CBA); + QCOMPARE(2,testList.count()); + QVERIFY(PhoneCallComingCmdSoftReject == testList.at(0).mCommandId); + QVERIFY(PhoneInCallCmdReject == testList.at(1).mCommandId); + QVERIFY(true == testList.at(0).mEnabled); + QVERIFY(true == testList.at(1).mEnabled); + testList.clear(); + + testList = m_resourceAdapter->convertToToolBarCommandList(R_PHONEUI_CALLHANDLING_INCOMINGCALL_SOFT_REJECT_CBA); + QCOMPARE(2,testList.count()); + QVERIFY(PhoneCallComingCmdSoftReject == testList.at(0).mCommandId); + QVERIFY(PhoneCallComingCmdSilent == testList.at(1).mCommandId); + QVERIFY(true == testList.at(0).mEnabled); + QVERIFY(false == testList.at(1).mEnabled); + testList.clear(); + + testList = m_resourceAdapter->convertToToolBarCommandList(R_PHONEUI_CALLHANDLING_CALLWAITING_CBA); + QCOMPARE(2,testList.count()); + QVERIFY(PhoneCallComingCmdSoftReject == testList.at(0).mCommandId); + QVERIFY(PhoneInCallCmdJoinToConference == testList.at(1).mCommandId); + QVERIFY(true == testList.at(0).mEnabled); + QVERIFY(false == testList.at(1).mEnabled); + testList.clear(); + + testList = m_resourceAdapter->convertToToolBarCommandList(R_PHONEUI_CALLHANDLING_EMERGENCY_CBA); + QCOMPARE(2,testList.count()); + QVERIFY(PhoneInCallCmdActivateIhf == testList.at(0).mCommandId); + QVERIFY(PhoneInCallCmdOpenDialer == testList.at(1).mCommandId); + QVERIFY(true == testList.at(0).mEnabled); + QVERIFY(true == testList.at(1).mEnabled); + testList.clear(); + + testList = m_resourceAdapter->convertToToolBarCommandList(R_PHONEUI_DIALER_CBA); + QCOMPARE(4,testList.count()); + QVERIFY(PhoneInCallCmdActivateIhf == testList.at(0).mCommandId); + QVERIFY(PhoneInCallCmdHold == testList.at(1).mCommandId); + QVERIFY(PhoneInCallCmdOpenContacts == testList.at(2).mCommandId); + QVERIFY(PhoneInCallCmdOpenDialer == testList.at(3).mCommandId); + QVERIFY(true == testList.at(0).mEnabled); + QVERIFY(true == testList.at(1).mEnabled); + QVERIFY(true == testList.at(2).mEnabled); + QVERIFY(true == testList.at(3).mEnabled); + testList.clear(); + + testList = m_resourceAdapter->convertToToolBarCommandList(R_PHONEUI_CALLHANDLING_CALLSETUP_EMPTY_DTMFDIALER_CBA); + QCOMPARE(4,testList.count()); + QVERIFY(PhoneInCallCmdActivateIhf == testList.at(0).mCommandId); + QVERIFY(PhoneInCallCmdHold == testList.at(1).mCommandId); + QVERIFY(PhoneInCallCmdOpenContacts == testList.at(2).mCommandId); + QVERIFY(PhoneInCallCmdOpenDialer == testList.at(3).mCommandId); + QVERIFY(true == testList.at(0).mEnabled); + QVERIFY(true == testList.at(1).mEnabled); + QVERIFY(true == testList.at(2).mEnabled); + QVERIFY(true == testList.at(3).mEnabled); + testList.clear(); + + // Set flags hold and ihf + buttonsController->setButtonFlags(PhoneUIQtButtonsController::Ihf,true); + buttonsController->setButtonFlags(PhoneUIQtButtonsController::Hold,true); + + testList = m_resourceAdapter->convertToToolBarCommandList(R_PHONEUI_CALLHANDLING_EMERGENCY_CBA); + QCOMPARE(2,testList.count()); + QVERIFY(PhoneInCallCmdDeactivateIhf == testList.at(0).mCommandId); + QVERIFY(PhoneInCallCmdOpenDialer == testList.at(1).mCommandId); + QVERIFY(true == testList.at(0).mEnabled); + QVERIFY(true == testList.at(1).mEnabled); + testList.clear(); + + testList = m_resourceAdapter->convertToToolBarCommandList(R_PHONEUI_INCALL_DIALER_CBA); + QCOMPARE(4,testList.count()); + QVERIFY(PhoneInCallCmdDeactivateIhf == testList.at(0).mCommandId); + QVERIFY(PhoneInCallCmdUnhold == testList.at(1).mCommandId); + QVERIFY(PhoneInCallCmdOpenContacts == testList.at(2).mCommandId); + QVERIFY(PhoneInCallCmdOpenDialer == testList.at(3).mCommandId); + QVERIFY(true == testList.at(0).mEnabled); + QVERIFY(true == testList.at(1).mEnabled); + QVERIFY(true == testList.at(2).mEnabled); + QVERIFY(true == testList.at(3).mEnabled); + testList.clear(); + + testList = m_resourceAdapter->convertToToolBarCommandList(R_PHONEUI_CALLHANDLING_CALLSETUP_EMPTY_DTMFDIALER_CBA); + QCOMPARE(4,testList.count()); + QVERIFY(PhoneInCallCmdDeactivateIhf == testList.at(0).mCommandId); + QVERIFY(PhoneInCallCmdUnhold == testList.at(1).mCommandId); + QVERIFY(PhoneInCallCmdOpenContacts == testList.at(2).mCommandId); + QVERIFY(PhoneInCallCmdOpenDialer == testList.at(3).mCommandId); + QVERIFY(true == testList.at(0).mEnabled); + QVERIFY(true == testList.at(1).mEnabled); + QVERIFY(true == testList.at(2).mEnabled); + QVERIFY(true == testList.at(3).mEnabled); + testList.clear(); + + // Set flag multi call + buttonsController->setButtonFlags(PhoneUIQtButtonsController::MultiCall,true); + + testList = m_resourceAdapter->convertToToolBarCommandList(R_PHONEUI_CALLHANDLING_INCALL_UNHOLD_CBA); + QCOMPARE(4,testList.count()); + QVERIFY(PhoneInCallCmdDeactivateIhf == testList.at(0).mCommandId); + QVERIFY(PhoneInCallCmdSwap == testList.at(1).mCommandId); + QVERIFY(PhoneInCallCmdCreateConference == testList.at(2).mCommandId); + QVERIFY(PhoneInCallCmdOpenDialer == testList.at(3).mCommandId); + QVERIFY(true == testList.at(0).mEnabled); + QVERIFY(true == testList.at(1).mEnabled); + QVERIFY(true == testList.at(2).mEnabled); + QVERIFY(true == testList.at(3).mEnabled); + testList.clear(); + + testList = m_resourceAdapter->convertToToolBarCommandList(R_PHONEUI_CALLHANDLING_CALLSETUP_EMPTY_DTMFDIALER_CBA); + QCOMPARE(4,testList.count()); + QVERIFY(PhoneInCallCmdDeactivateIhf == testList.at(0).mCommandId); + QVERIFY(PhoneInCallCmdSwap == testList.at(1).mCommandId); + QVERIFY(PhoneInCallCmdCreateConference == testList.at(2).mCommandId); + QVERIFY(PhoneInCallCmdOpenDialer == testList.at(3).mCommandId); + QVERIFY(true == testList.at(0).mEnabled); + QVERIFY(true == testList.at(1).mEnabled); + QVERIFY(true == testList.at(2).mEnabled); + QVERIFY(true == testList.at(3).mEnabled); + testList.clear(); + + // Set flag outgoing and conference call + buttonsController->setButtonFlags(PhoneUIQtButtonsController::Outgoing,true); + buttonsController->setButtonFlags(PhoneUIQtButtonsController::Conference,true); + + testList = m_resourceAdapter->convertToToolBarCommandList(R_PHONEUI_CALLHANDLING_INCALL_UNMUTE_CBA); + QCOMPARE(4,testList.count()); + QVERIFY(PhoneInCallCmdDeactivateIhf == testList.at(0).mCommandId); + QVERIFY(PhoneInCallCmdSwap == testList.at(1).mCommandId); + QVERIFY(PhoneInCallCmdJoinToConference == testList.at(2).mCommandId); + QVERIFY(PhoneInCallCmdOpenDialer == testList.at(3).mCommandId); + QVERIFY(true == testList.at(0).mEnabled); + QVERIFY(false == testList.at(1).mEnabled); + QVERIFY(false == testList.at(2).mEnabled); + QVERIFY(true == testList.at(3).mEnabled); + testList.clear(); + + testList = m_resourceAdapter->convertToToolBarCommandList(R_PHONEUI_CALLHANDLING_CALLSETUP_EMPTY_DTMFDIALER_CBA); + QCOMPARE(4,testList.count()); + QVERIFY(PhoneInCallCmdDeactivateIhf == testList.at(0).mCommandId); + QVERIFY(PhoneInCallCmdSwap == testList.at(1).mCommandId); + QVERIFY(PhoneInCallCmdJoinToConference == testList.at(2).mCommandId); + QVERIFY(PhoneInCallCmdOpenDialer == testList.at(3).mCommandId); + QVERIFY(true == testList.at(0).mEnabled); + QVERIFY(false == testList.at(1).mEnabled); + QVERIFY(false == testList.at(2).mEnabled); + QVERIFY(true == testList.at(3).mEnabled); + testList.clear(); +} + PHONE_QT_RESOURCE_ADAPTER_TEST_MAIN(TestPhoneResourceAdapter) #include "unit_tests.moc" diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneuicommandcontroller/phonecommandextensionwrapper_stub.cpp --- a/phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneuicommandcontroller/phonecommandextensionwrapper_stub.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneuicommandcontroller/phonecommandextensionwrapper_stub.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -18,10 +18,13 @@ #include #include #include +#include bool m_setActions; bool m_setInvalidCommand; bool m_setInvalidButtonCommands; +bool m_setInvalidToolBarCommands; +bool m_setCustomToolBarCommands; QList m_menuActions; @@ -61,6 +64,33 @@ } } +void PhoneCommandExtensionWrapper::modifyToolBarCommandList( + const QList &callInfo, + QList &toolBarCmdList) +{ + if (m_setInvalidToolBarCommands) { + XQTelUiCommandExtension::ToolBarCommand invalidCommand; + invalidCommand.mCommandId = -1; + invalidCommand.mIsEnabled = true; + toolBarCmdList.replace(0,invalidCommand); + } else if (m_setCustomToolBarCommands) { + toolBarCmdList.clear(); + XQTelUiCommandExtension::ToolBarCommand command; + command.mCommandId = PhoneInCallCmdJoinToConference; + command.mIsEnabled = true; + toolBarCmdList.append(command); + command.mCommandId = PhoneInCallCmdUnhold; + command.mIsEnabled = true; + toolBarCmdList.append(command); + command.mCommandId = PhoneInCallCmdEndOutgoingCall; + command.mIsEnabled = true; + toolBarCmdList.append(command); + command.mCommandId = PhoneCallComingCmdSilent; + command.mIsEnabled = true; + toolBarCmdList.append(command); + } +} + void PhoneCommandExtensionWrapper::addMenuActions( const QList &callInfo, QList &menuActions) diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneuicommandcontroller/unit_tests.cpp --- a/phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneuicommandcontroller/unit_tests.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneuicommandcontroller/unit_tests.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -20,16 +20,20 @@ #include #include #include +#include #include "phoneuiqtviewif.h" #include "pevirtualengine.h" #include "bubblemanagerif.h" #include "phonebubblewrapper.h" #include "phoneuicommandcontroller.h" +#include "phoneresourceids.h" extern bool m_setActions; extern bool m_setInvalidCommand; extern QList m_menuActions; extern bool m_setInvalidButtonCommands; +extern bool m_setInvalidToolBarCommands; +extern bool m_setCustomToolBarCommands; #define PHONE_QT_VIEW_ADAPTER_TEST_MAIN(TestObject) \ int main(int argc, char *argv[]) \ @@ -83,6 +87,7 @@ return m_isDialpadVisible; } QString dialpadText() {return m_dialpadText;}; void clearAndHideDialpad() { m_clearAndHideDialpadCalled = true;}; + void clearDialpad() {}; void bringToForeground() {;}; void setMenuActions(const QList& actions) { m_setMenuActionsCalled = true;}; void shutdownPhoneApp() {;}; @@ -161,6 +166,7 @@ void testSetCallMenuActions(); void testSetDialpadMenuActions(); void testPushButtonActionsForCall(); + void testToolBarActionsForCall(); private: @@ -675,6 +681,126 @@ } +void TestPhoneUiCommandController::testToolBarActionsForCall() +{ + int callState = EPEStateConnected; + QMap callStates; + QMap serviceIds; + int serviceId(2); + int callId(1); + callStates[callId] = EPEStateConnected; + serviceIds[callId] = serviceId; + m_setInvalidToolBarCommands = false; + m_setCustomToolBarCommands = false; + + QList actions = + m_commandController->toolBarActions( + R_PHONEUI_DIALER_CBA, + callStates, + serviceIds, + serviceId, + callId); + + QVERIFY(4==actions.count()); + QVERIFY(EPhoneInCallCmdActivateIhf == actions.at(0)->command()); + QVERIFY(EPhoneInCallCmdHold == actions.at(1)->command()); + QVERIFY(EPhoneInCallCmdContacts == actions.at(2)->command()); + QVERIFY(EPhoneInCallCmdDialer == actions.at(3)->command()); + + qDeleteAll(actions); + actions.clear(); + + // Invalid resource id + actions = m_commandController->toolBarActions( + -1, + callStates, + serviceIds, + serviceId, + callId); + + QVERIFY(0==actions.count()); + + qDeleteAll(actions); + actions.clear(); + + // Service not found + actions = m_commandController->toolBarActions( + R_PHONEUI_DIALER_CBA, + callStates, + serviceIds, + -1, + -1); + + QVERIFY(4==actions.count()); + + qDeleteAll(actions); + actions.clear(); + + // Invalid toolbar command by extension + m_setInvalidToolBarCommands = true; + + actions = m_commandController->toolBarActions( + R_PHONEUI_DIALER_CBA, + callStates, + serviceIds, + serviceId, + callId); + + QVERIFY(3==actions.count()); + + qDeleteAll(actions); + actions.clear(); + + + // Command list modified by extension + m_setInvalidToolBarCommands = false; + m_setCustomToolBarCommands = true; + + actions = m_commandController->toolBarActions( + R_PHONEUI_DIALER_CBA, + callStates, + serviceIds, + serviceId, + callId); + + QVERIFY(4==actions.count()); + QVERIFY(EPhoneInCallCmdJoin == actions.at(0)->command()); + QVERIFY(EPhoneInCallCmdUnhold == actions.at(1)->command()); + QVERIFY(EPhoneInCallCmdEndThisOutgoingCall == actions.at(2)->command()); + QVERIFY(EPhoneCallComingCmdSilent == actions.at(3)->command()); + + qDeleteAll(actions); + actions.clear(); + + m_setCustomToolBarCommands =false; + + // Multi call + callStates[2] = EPEStateHeld; + serviceIds[2] = 2; + + actions = m_commandController->toolBarActions( + R_PHONEUI_INCALL_DIALER_CBA, + callStates, + serviceIds, + serviceId, + callId); + + QVERIFY(4==actions.count()); + + // No extension + serviceIds[1] = 1; + serviceIds[2] = 1; + serviceId = 1; + + actions = m_commandController->toolBarActions( + R_PHONEUI_INCALL_DIALER_CBA, + callStates, + serviceIds, + serviceId, + callId); + + QVERIFY(4==actions.count()); +} PHONE_QT_VIEW_ADAPTER_TEST_MAIN(TestPhoneUiCommandController) #include "unit_tests.moc" diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneuiqtviewadapter/phoneindicatorcontroller.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneuiqtviewadapter/phoneindicatorcontroller.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,32 @@ +/* + * phoneindicatorcontroller.h + * + * Created on: May 4, 2010 + * Author: maposio + */ + +#ifndef PHONEINDICATORCONTROLLER_H_ +#define PHONEINDICATORCONTROLLER_H_ + +#include + +extern bool m_setActiveCallCalled; +extern bool m_clearActiveCallCalled; +extern bool m_enableCallIndCalled; +extern bool m_disableCallIndCalled; + +class PhoneIndicatorController : public QObject + { + Q_OBJECT +public: + PhoneIndicatorController(QObject *parent); + virtual ~PhoneIndicatorController(); + + void setActiveCallData(); + void clearActiveCallData(); + void enableActiveCallIndicator(); + void disableActiveCallIndicator(); + + }; + +#endif /* PHONEINDICATORCONTROLLER_H_ */ diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneuiqtviewadapter/phoneindicatorcontroller_stub.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneuiqtviewadapter/phoneindicatorcontroller_stub.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,48 @@ +/* + * phoneindicatorcontroller_stub.cpp + * + * Created on: May 4, 2010 + * Author: maposio + */ + +#include "phoneindicatorcontroller.h" + +bool m_setActiveCallCalled; +bool m_clearActiveCallCalled; +bool m_enableCallIndCalled; +bool m_disableCallIndCalled; + +PhoneIndicatorController::PhoneIndicatorController(QObject *parent): +QObject(parent) +{ + m_setActiveCallCalled = false; + m_clearActiveCallCalled = false; + m_enableCallIndCalled = false; + m_disableCallIndCalled = false; +} + +PhoneIndicatorController::~PhoneIndicatorController() +{ +// TODO Auto-generated destructor stub +} + + +void PhoneIndicatorController::setActiveCallData() +{ + m_setActiveCallCalled = true; +} + +void PhoneIndicatorController::clearActiveCallData() +{ + m_clearActiveCallCalled = true; +} + +void PhoneIndicatorController::enableActiveCallIndicator() +{ + m_enableCallIndCalled = true; +} + +void PhoneIndicatorController::disableActiveCallIndicator() +{ + m_disableCallIndCalled = true; +} diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneuiqtviewadapter/phonenotecontroller_stub.cpp --- a/phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneuiqtviewadapter/phonenotecontroller_stub.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneuiqtviewadapter/phonenotecontroller_stub.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -85,6 +85,10 @@ { } +void PhoneNoteController::destroyNotification() +{ +} + void PhoneNoteController::removeMappings() { } diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneuiqtviewadapter/phonevisibilityhandler_stub.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneuiqtviewadapter/phonevisibilityhandler_stub.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,109 @@ +/* +* 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: Adjusts visibility of Phone app in device lock situations. +* +*/ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "phonevisibilityhandler.h" +#include "cphonepubsubproxy.h" +#include "phoneconstants.h" +#include "phoneuiqtviewif.h" + +bool m_bringToForegroundCalled; +bool m_sendToBackgroundCalled; +bool m_ordinalPositionCalled; + +/*! + PhoneVisibilityHandler::PhoneVisibilityHandler. + */ +PhoneVisibilityHandler::PhoneVisibilityHandler(PhoneUIQtViewIF &view, QObject *parent) + : + QObject(parent), + m_view(view), + m_eikonEnv(0), + m_carModeEnabled(false), + m_hideDeviceDialogs(false) +{ + +} + + +/*! + PhoneVisibilityHandler::~PhoneVisibilityHandler. + */ +PhoneVisibilityHandler::~PhoneVisibilityHandler() +{ + +} + +/*! + PhoneVisibilityHandler::bringToForeground. + */ +void PhoneVisibilityHandler::bringToForeground() +{ + m_bringToForegroundCalled = true; +} + +/*! + PhoneVisibilityHandler::sendToBackground. + */ +void PhoneVisibilityHandler::sendToBackground(bool homeScreenForeground) +{ + m_sendToBackgroundCalled = true; +} + +/*! + PhoneVisibilityHandler::hideDeviceDialogs. + */ +void PhoneVisibilityHandler::hideDeviceDialogs(bool hide) +{ + Q_UNUSED(hide) +} + +/*! + PhoneVisibilityHandler::ordinalPosition. + */ +int PhoneVisibilityHandler::ordinalPosition() +{ + m_ordinalPositionCalled = true; + return -1; +} + +/*! + PhoneVisibilityHandler::HandlePropertyChangedL. + */ +void PhoneVisibilityHandler::HandlePropertyChangedL(const TUid& aCategory, + const TUint aKey, const TInt aValue) +{ + Q_UNUSED(aCategory) + Q_UNUSED(aKey) + Q_UNUSED(aValue) +} + +/*! + PhoneVisibilityHandler::adjustVisibility. + */ +void PhoneVisibilityHandler::adjustVisibility(AdjustAction action) +{ + Q_UNUSED(action) +} diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneuiqtviewadapter/unit_tests.cpp --- a/phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneuiqtviewadapter/unit_tests.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneuiqtviewadapter/unit_tests.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -41,6 +41,7 @@ #include "phoneuiqtbuttonscontroller.h" #include "tphonecmdparamglobalnote.h" #include "tphonecmdparamstring.h" +#include "phoneindicatorcontroller.h" extern int m_phoneButtonFlags; extern bool m_EPhoneViewMuteRingToneOnAnswer_called; @@ -56,6 +57,8 @@ extern bool m_removeQueryCalled; extern bool m_showNoteCalled; extern bool m_removeGlobalWaitNoteCalled; +extern bool m_ordinalPositionCalled; +extern bool m_sendToBackgroundCalled; #define PHONE_QT_VIEW_ADAPTER_TEST_MAIN(TestObject) \ @@ -114,6 +117,7 @@ {m_dialpadVisibilityCalled = true; return m_isDialpadVisible; } QString dialpadText() {return m_dialpadText;}; + void clearDialpad() {}; void clearAndHideDialpad() { m_clearAndHideDialpadCalled = true;}; void bringToForeground() {;}; void setMenuActions(const QList& actions) { m_setMenuActionsCalled = true;}; @@ -182,6 +186,8 @@ signals: void dialpadAboutToClose(); void keyPressReleased(QKeyEvent *event); + void windowActivated(); + void windowDeactivated(); public slots: void initTestCase (); @@ -234,6 +240,8 @@ void testCipheringInfoChange(); void testSetHidden(); void testBeginEndUiUpdate(); + void testIndicatorController(); + void testOpenLogs(); private: PhoneUIQtViewAdapter *m_adapter; // class under test @@ -406,6 +414,10 @@ QVERIFY (m_setCipheringCalled == true); QVERIFY (m_endChangesCalled == true); + + QVERIFY (m_setActiveCallCalled == true); + + } void TestPhoneUIQtViewAdapter::testEPhoneViewCreateEmergencyCallHeader () @@ -434,7 +446,9 @@ QVERIFY (m_setCipheringCalled == true); - QVERIFY (m_endChangesCalled == true); + QVERIFY (m_endChangesCalled == true); + + QVERIFY (m_setActiveCallCalled == true); } void TestPhoneUIQtViewAdapter::testEPhoneViewUpdateBubble () @@ -707,13 +721,13 @@ m_callStateMap.insert(0, EPEStateConnected); m_bubblesMap.insert(0, 0); m_adapter->ExecuteCommandL (EPhoneViewSetTouchPaneButtons, &boolParam); - QVERIFY(m_actionMap.value(0)->contains(EPhoneInCallCmdHold)); + QVERIFY(m_actionMap.value(0)->contains(EPhoneInCallCmdMute)); QVERIFY(m_actionMap.value(0)->contains(EPhoneInCallCmdEndThisActiveCall)); //Emergency boolParam.SetBoolean(true); m_adapter->ExecuteCommandL (EPhoneViewSetTouchPaneButtons, &boolParam); - QVERIFY(false == m_actionMap.value(0)->contains(EPhoneInCallCmdHold)); + QVERIFY(false == m_actionMap.value(0)->contains(EPhoneInCallCmdMute)); QVERIFY(m_actionMap.value(0)->contains(EPhoneInCallCmdEndThisActiveCall)); //Held and active @@ -721,9 +735,9 @@ m_callStateMap.insert(1, EPEStateHeld); m_bubblesMap.insert(1, 1); m_adapter->ExecuteCommandL (EPhoneViewSetTouchPaneButtons, &boolParam); - QVERIFY(m_actionMap.value(0)->contains(EPhoneInCallCmdCreateConference)); + QVERIFY(m_actionMap.value(0)->contains(EPhoneInCallCmdMute)); QVERIFY(m_actionMap.value(0)->contains(EPhoneInCallCmdEndThisActiveCall)); - QVERIFY(m_actionMap.value(1)->contains(EPhoneInCallCmdCreateConference)); + QVERIFY(m_actionMap.value(1)->contains(EPhoneInCallCmdMute)); QVERIFY(m_actionMap.value(1)->contains(EPhoneInCallCmdEndThisActiveCall)); clearBubbleCommands(0); clearBubbleCommands(1); @@ -736,7 +750,7 @@ m_callStateMap.insert(1, EPEStateRinging); m_bubblesMap.insert(1, 1); m_adapter->ExecuteCommandL (EPhoneViewSetTouchPaneButtons, &boolParam); - QVERIFY(m_actionMap.value(0)->contains(EPhoneInCallCmdHold)); + QVERIFY(m_actionMap.value(0)->contains(EPhoneInCallCmdMute)); QVERIFY(m_actionMap.value(0)->contains(EPhoneInCallCmdEndThisActiveCall)); QVERIFY(m_actionMap.value(1)->contains(EPhoneCallComingCmdReject)); clearBubbleCommands(0); @@ -750,7 +764,7 @@ m_callStateMap.insert(1, EPEStateRinging); m_bubblesMap.insert(1, 1); m_adapter->ExecuteCommandL (EPhoneViewSetTouchPaneButtons, &boolParam); - QVERIFY(m_actionMap.value(0)->contains(EPhoneInCallCmdUnhold)); + QVERIFY(m_actionMap.value(0)->contains(EPhoneInCallCmdMute)); QVERIFY(m_actionMap.value(0)->contains(EPhoneInCallCmdEndThisActiveCall)); QVERIFY(m_actionMap.value(1)->contains(EPhoneCallComingCmdReject)); clearBubbleCommands(0); @@ -789,7 +803,8 @@ m_callStateMap.insert(0, EPEStateDialing); m_bubblesMap.insert(0, 0); m_adapter->ExecuteCommandL (EPhoneViewSetTouchPaneButtons, &boolParam); - QVERIFY(1==m_actionMap.value(0)->size()); + QVERIFY(2==m_actionMap.value(0)->size()); + QVERIFY(m_actionMap.value(0)->contains(EPhoneInCallCmdMute)); QVERIFY(m_actionMap.value(0)->contains(EPhoneInCallCmdEndThisOutgoingCall)); clearBubbleCommands(0); @@ -810,7 +825,8 @@ m_callStateMap.insert(0, EPEStateConnecting); m_bubblesMap.insert(0, 0); m_adapter->ExecuteCommandL (EPhoneViewSetTouchPaneButtons, &boolParam); - QVERIFY(1==m_actionMap.value(0)->size()); + QVERIFY(2==m_actionMap.value(0)->size()); + QVERIFY(m_actionMap.value(0)->contains(EPhoneInCallCmdMute)); QVERIFY(m_actionMap.value(0)->contains(EPhoneInCallCmdEndThisOutgoingCall)); clearBubbleCommands(0); @@ -821,16 +837,16 @@ m_bubblesMap.insert(0, 0); m_adapter->ExecuteCommandL (EPhoneViewSetTouchPaneButtons, &boolParam); QVERIFY(2==m_actionMap.value(0)->size()); - QVERIFY(m_actionMap.value(0)->contains(EPhoneInCallCmdHold)); + QVERIFY(m_actionMap.value(0)->contains(EPhoneInCallCmdMute)); QVERIFY(m_actionMap.value(0)->contains(EPhoneInCallCmdEndThisActiveCall)); // Conference and held m_callStateMap.insert(1, EPEStateHeld); m_bubblesMap.insert(1, 1); m_adapter->ExecuteCommandL (EPhoneViewSetTouchPaneButtons, &boolParam); - QVERIFY(m_actionMap.value(0)->contains(EPhoneInCallCmdSwap)); + QVERIFY(m_actionMap.value(0)->contains(EPhoneInCallCmdMute)); QVERIFY(m_actionMap.value(0)->contains(EPhoneInCallCmdEndThisActiveCall)); - QVERIFY(m_actionMap.value(1)->contains(EPhoneInCallCmdJoin)); + QVERIFY(m_actionMap.value(1)->contains(EPhoneInCallCmdMute)); QVERIFY(m_actionMap.value(1)->contains(EPhoneInCallCmdEndThisActiveCall)); clearBubbleCommands(0); clearBubbleCommands(1); @@ -844,7 +860,7 @@ m_adapter->ExecuteCommandL (EPhoneViewSetTouchPaneButtons, &boolParam); QVERIFY(2==m_actionMap.value(0)->size()); QVERIFY(m_actionMap.value(0)->contains(EPhoneInCallCmdEndThisActiveCall)); - QVERIFY(m_actionMap.value(0)->contains(EPhoneInCallCmdUnhold)); + QVERIFY(m_actionMap.value(0)->contains(EPhoneInCallCmdMute)); clearBubbleCommands(0); m_conferenceCallList.clear(); @@ -1269,5 +1285,27 @@ QVERIFY (m_endChangesCalled == true); } +void TestPhoneUIQtViewAdapter::testIndicatorController() +{ + connect( this, SIGNAL(windowActivated()), m_adapter, SLOT(handleWindowActivated())); + connect( this, SIGNAL(windowDeactivated()), m_adapter, SLOT(handleWindowDeactivated())); + emit windowActivated(); + QVERIFY( m_disableCallIndCalled ); + emit windowDeactivated(); + QVERIFY( m_enableCallIndCalled ); + +} + +void TestPhoneUIQtViewAdapter::testOpenLogs() +{ + m_ordinalPositionCalled = false; + m_sendToBackgroundCalled = false; + TPhoneCmdParamString param; + m_adapter->ExecuteCommandL(EPhoneViewLaunchLogs, ¶m); + QVERIFY(m_ordinalPositionCalled); + QVERIFY(m_sendToBackgroundCalled); +} + + PHONE_QT_VIEW_ADAPTER_TEST_MAIN(TestPhoneUIQtViewAdapter) #include "unit_tests.moc" diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneuiqtviewadapter/ut_phoneuiqtviewadapter.pro --- a/phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneuiqtviewadapter/ut_phoneuiqtviewadapter.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneuiqtviewadapter/ut_phoneuiqtviewadapter.pro Wed Jun 23 18:12:20 2010 +0300 @@ -69,8 +69,10 @@ SOURCES += ../../src/phonecommandextensionwrapper.cpp HEADERS += ../../inc/phonemessagecontroller.h SOURCES += ../../src/phonemessagecontroller.cpp -HEADERS += ../../inc/phoneindicatorcontroller.h -SOURCES += ../../src/phoneindicatorcontroller.cpp +HEADERS += ../../inc/phonevisibilityhandler.h +SOURCES += phonevisibilityhandler_stub.cpp +HEADERS += phoneindicatorcontroller.h +SOURCES += phoneindicatorcontroller_stub.cpp SOURCES += phoneuiqtbuttonscontroller_stub.cpp HEADERS += phonebubblewrapper.h SOURCES += phonebubblewrapper_stub.cpp diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/tsrc/ut_phonevisibilityhandler/cphonepubsubproxy_stub.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneapp/phoneuiqtviewadapter/tsrc/ut_phonevisibilityhandler/cphonepubsubproxy_stub.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,78 @@ +/* +* 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 "cphonepubsubproxy.h" + + + +CPhonePubSubProxy* CPhonePubSubProxy::Instance() +{ + static CPhonePubSubProxy p; + return &p; +} + +CPhonePubSubProxy::~CPhonePubSubProxy() +{ + +} + +void CPhonePubSubProxy::CancelAllNotifications( + MPhonePubSubObserver* aObserver ) +{ + +} + +TInt CPhonePubSubProxy::Value( const TUid& aCategory, const TUint aKey ) +{ + +} + +void CPhonePubSubProxy::NotifyChangeL( + const TUid& aCategory, + const TUint aKey, + MPhonePubSubObserver* aObserver ) +{ + +} + +void CPhonePubSubProxy::ChangePropertyValue( + const TUid& aCategory, + const TUint aKey, + const TInt aValue ) +{ + +} + +CPhonePubSubProxy::CPhonePubSubProxy() +{ + +} + +void CPhonePubSubProxy::CancelAllObserverNotifies( + MPhonePubSubObserver* aObserver ) +{ + +} + +void CPhonePubSubProxy::HandlePropertyChangedL( + const TUid& aCategory, + const TUint aKey, + const TInt aValue ) +{ + +} + diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/tsrc/ut_phonevisibilityhandler/unit_tests.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneapp/phoneuiqtviewadapter/tsrc/ut_phonevisibilityhandler/unit_tests.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,279 @@ +/*! +* 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: Unit tests for PhoneUIQtViewAdapter. +* +*/ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "phoneuiqtviewif.h" +#define private public +#include "phonevisibilityhandler.h" +#undef public + +int m_callCount = 0; + +#define PHONE_TEST_MAIN(TestObject) \ +int main(int argc, char *argv[]) \ + { \ + HbApplication app(argc, argv); \ + TestObject tc; \ + QResource::registerResource("../hbcore.rcc"); \ + int ret = QTest::qExec(&tc, argc, argv); \ + /* Core dump if HbIconLoader instance is not destroyed before the application instance. */ \ + /* HbIconLoader uses QCoreApplication::aboutToQuit() signal to destroy itself. */ \ + /* app.exec() where the signal is normally emitted is not called here. */ \ + /* So, invoking the signal explicitly. */ \ + QMetaObject::invokeMethod(&app, "aboutToQuit", Qt::DirectConnection); \ + return ret; \ + } + +TInt CCallInfoIter::Count() const +{ + return m_callCount; +} + +class TestPhoneVisibilityHandler : public QObject, public PhoneUIQtViewIF +{ + Q_OBJECT +public: + TestPhoneVisibilityHandler(); + virtual ~TestPhoneVisibilityHandler(); + + // From PhoneUIQtViewIF + BubbleManagerIF& bubbleManager () {}; + void addBubbleCommand (int bubbleId, const PhoneAction& action) {}; + void clearBubbleCommands (int bubbleId) {}; + void addParticipantListAction( + int commandId, + const QString &text, + const HbIcon &icon) {}; + void clearParticipantListActions() {}; + void hideToolbar () {}; + void showToolbar () {}; + void setToolbarActions (const QList& actions) {}; + int volumeSliderValue () {}; + void removeVolumeSlider () {}; + void setVolumeSliderValue ( + int value, + int commandId, + int maxVolumeValue, + int minVolumeValue ) {}; + + void setExpandAction(int bubbleId, int commandId) {}; + void removeExpandAction(int bubbleId) {}; + void showDialpad() {}; + void hideDialpad() {}; + bool isDialpadVisible() {}; + QString dialpadText() {}; + void clearAndHideDialpad() {}; + void clearDialpad() {}; + void bringToForeground() { m_bringToForegroundCalled = true;}; + void setMenuActions(const QList& actions) {}; + void shutdownPhoneApp() {}; + void setBackButtonVisible(bool visible) {}; + HbMenu &menuReference() {}; +public slots: + void initTestCase(); + + void cleanupTestCase(); + + void init(); + + void cleanup(); + +private slots: + void t_memleak(); + + void t_normal(); + + void t_carmode(); + + void t_devicelock(); + + +private: + PhoneVisibilityHandler *m_handler; + bool m_bringToForegroundCalled; + int m_startPosition; + int m_startPriority; + int m_normalPriority; +}; + +TestPhoneVisibilityHandler::TestPhoneVisibilityHandler () +{ +} + +TestPhoneVisibilityHandler::~TestPhoneVisibilityHandler () +{ +} + +void TestPhoneVisibilityHandler::initTestCase () +{ + m_normalPriority = CEikonEnv::Static()->RootWin().OrdinalPriority(); + + m_handler = new PhoneVisibilityHandler (*this, this); + + m_startPosition = m_handler->ordinalPosition(); + QVERIFY(m_startPosition > 0); // Expect OrdinalPosition higher than 0 + m_startPriority = CEikonEnv::Static()->RootWin().OrdinalPriority(); + QCOMPARE(m_startPriority, (int)ECoeWinPriorityNeverAtFront); +} + +void TestPhoneVisibilityHandler::cleanupTestCase () +{ + delete m_handler; +} + +void TestPhoneVisibilityHandler::init () +{ + +} + +void TestPhoneVisibilityHandler::cleanup () +{ + m_bringToForegroundCalled = false; +} + +void TestPhoneVisibilityHandler::t_memleak() +{ +} + +void TestPhoneVisibilityHandler::t_normal() +{ + // Test hide device dialogs when background ( false ) + m_handler->hideDeviceDialogs(false); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPosition(), m_startPosition); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPriority(), m_startPriority); + + // Test hide device dialogs when background ( true ) + m_handler->hideDeviceDialogs(true); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPosition(), m_startPosition); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPriority(), m_startPriority); + + // bringToForeground is call + m_handler->bringToForeground(); + QVERIFY(m_bringToForegroundCalled); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPosition(), 0); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPriority(), ECoeWinPriorityAlwaysAtFront + 1); + + // Test hide device dialogs when foreground ( false ) + m_handler->hideDeviceDialogs(false); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPosition(), 0); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPriority(), m_normalPriority); + + // Test hide device dialogs when foreground ( true ) + m_handler->hideDeviceDialogs(true); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPosition(), 0); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPriority(), ECoeWinPriorityAlwaysAtFront + 1); + + // send backgroud is called last + m_handler->sendToBackground(false); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPosition(), m_startPosition); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPriority(), m_startPriority); +} + +void TestPhoneVisibilityHandler::t_carmode() +{ + QValueSpaceSubscriber* subscriber = new QValueSpaceSubscriber("/phone/carmode", this); + QValueSpacePublisher* publisher = new QValueSpacePublisher("/phone",this); + + QVERIFY(m_handler->m_carModeEnabled == false); + + // 1 ongoing call and car mode switched on + m_callCount = 1; + publisher->setValue(QString("/carmode"),QVariant(true)); + QTest::qWait(100); + QVERIFY(m_handler->m_carModeEnabled == true); + QVERIFY(m_bringToForegroundCalled == false); + + // 1 ongoing call and car mode switched off + publisher->setValue(QString("/carmode"),QVariant(false)); + QTest::qWait(100); + QVERIFY(m_handler->m_carModeEnabled == false); + QVERIFY(m_bringToForegroundCalled == true); + + // 0 ongoing calls and car mode switched on + m_callCount = 0; + m_bringToForegroundCalled = false; + publisher->setValue(QString("/carmode"),QVariant(true)); + QTest::qWait(100); + QVERIFY(m_handler->m_carModeEnabled == true); + QVERIFY(m_bringToForegroundCalled == false); + + // 0 ongoing calls and car mode switched off + publisher->setValue(QString("/carmode"),QVariant(false)); + QTest::qWait(100); + QVERIFY(m_handler->m_carModeEnabled == false); + QVERIFY(m_bringToForegroundCalled == false); +} + +void TestPhoneVisibilityHandler::t_devicelock() +{ + m_handler->HandlePropertyChangedL(KPSUidCoreApplicationUIs, KCoreAppUIsAutolockStatus, ETimerLocked); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPosition(), m_startPosition); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPriority(), m_startPriority); + + // Test hide device dialogs when background ( false ) + m_handler->hideDeviceDialogs(false); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPosition(), m_startPosition); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPriority(), m_startPriority); + + // Test hide device dialogs when background ( true ) + m_handler->hideDeviceDialogs(true); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPosition(), m_startPosition); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPriority(), m_startPriority); + + // bringToForeground is call + m_handler->bringToForeground(); + QVERIFY(m_bringToForegroundCalled); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPosition(), 0); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPriority(), ECoeWinPriorityAlwaysAtFront + 1); + + // Test hide device dialogs when foreground ( false ) + m_handler->hideDeviceDialogs(false); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPosition(), 0); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPriority(), (int)ECoeWinPriorityAlwaysAtFront); + + // Test hide device dialogs when foreground ( true ) + m_handler->hideDeviceDialogs(true); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPosition(), 0); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPriority(), ECoeWinPriorityAlwaysAtFront + 1); + + // Test lock status change + m_handler->HandlePropertyChangedL(KPSUidCoreApplicationUIs, KCoreAppUIsAutolockStatus, EAutolockOff); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPosition(), 0); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPriority(), ECoeWinPriorityAlwaysAtFront + 1); + + + // send backgroud is called last + m_handler->sendToBackground(false); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPosition(), m_startPosition); + QCOMPARE(CEikonEnv::Static()->RootWin().OrdinalPriority(), m_startPriority); + +} + + +PHONE_TEST_MAIN(TestPhoneVisibilityHandler) +#include "unit_tests.moc" diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/tsrc/ut_phonevisibilityhandler/ut_phonevisibilityhandler.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneapp/phoneuiqtviewadapter/tsrc/ut_phonevisibilityhandler/ut_phonevisibilityhandler.pro Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,55 @@ +# +# 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 file for building unit test component +# +# + +TEMPLATE = app +TARGET = +TARGET.UID3 = 0xEFF8FFF2 +DEPENDPATH += . +INCLUDEPATH += . +CONFIG += hb +CONFIG += qtestlib +CONFIG += mobility +MOBILITY = publishsubscribe + +symbian { + + INCLUDEPATH += \epoc32\include\platform\mw \ + \epoc32\include\platform \ + \epoc32\include\platform\app \ + \epoc32\include\mw \ + \sf\app\phone\inc \ + ../../../phoneuiutils/inc/ \ + ../../../phonemediatorcenter/inc/ \ + ../../../phoneuiview2/inc \ + ../../../../inc \ + ../../../phoneringingtoneplayer/inc \ + ../../../phoneui2/srcdata + + LIBS += -ltelephonyservice + + TARGET.CAPABILITY = ALL -TCB + DEFINES += FT_SYMBIAN_INTEGRATION +} + +# Input +HEADERS += ../../inc/phonevisibilityhandler.h +SOURCES += ../../src/phonevisibilityhandler.cpp + +HEADERS += \sf\mw\phonesrv\phonesrv_plat\call_information_api\inc\ccallinfoiter.h +SOURCES += cphonepubsubproxy_stub.cpp +SOURCES += unit_tests.cpp + diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiqtviewadapter/tsrc/ut_telephonyservice/phoneuiqtviewadapter_stub.cpp --- a/phoneapp/phoneuiqtviewadapter/tsrc/ut_telephonyservice/phoneuiqtviewadapter_stub.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiqtviewadapter/tsrc/ut_telephonyservice/phoneuiqtviewadapter_stub.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -167,8 +167,8 @@ void PhoneUIQtViewAdapter::keyReleased(QKeyEvent */*event*/) {} -void PhoneUIQtViewAdapter::HandlePropertyChangedL( - const TUid& aCategory, - const TUint aKey, - const TInt aValue) -{} \ No newline at end of file +void PhoneUIQtViewAdapter::handleWindowActivated() +{} + +void PhoneUIQtViewAdapter::handleWindowDeactivated() +{} diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuistates/bwins/phoneuistatesu.def --- a/phoneapp/phoneuistates/bwins/phoneuistatesu.def Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuistates/bwins/phoneuistatesu.def Wed Jun 23 18:12:20 2010 +0300 @@ -1,37 +1,37 @@ EXPORTS - ??1CPhoneResourceResolverGSM@@UAE@XZ @ 1 NONAME ; CPhoneResourceResolverGSM::~CPhoneResourceResolverGSM(void) - ?HandleKeyMessageL@CPhoneSingleCall@@UAEXW4TPhoneKeyEventMessages@MPhoneKeyEvents@@W4TKeyCode@@@Z @ 2 NONAME ; void CPhoneSingleCall::HandleKeyMessageL(enum MPhoneKeyEvents::TPhoneKeyEventMessages, enum TKeyCode) - ?ConstructL@CPhoneTwoSingles@@MAEXXZ @ 3 NONAME ; void CPhoneTwoSingles::ConstructL(void) - ??0CPhoneCallSetup@@IAE@PAVMPhoneStateMachine@@PAVMPhoneViewCommandHandle@@PAVMPhoneCustomization@@@Z @ 4 NONAME ; CPhoneCallSetup::CPhoneCallSetup(class MPhoneStateMachine *, class MPhoneViewCommandHandle *, class MPhoneCustomization *) - ?NewPhoneUIStateMachineFactoryL@@YAPAVCPhoneUIStateMachineFactoryBase@@XZ @ 5 NONAME ; class CPhoneUIStateMachineFactoryBase * NewPhoneUIStateMachineFactoryL(void) - ?SendGlobalErrorNoteL@CPhoneErrorMessagesHandler@@IAEXH@Z @ 6 NONAME ; void CPhoneErrorMessagesHandler::SendGlobalErrorNoteL(int) - ?HandlePhoneEngineMessageL@CPhoneCallSetup@@UAEXHH@Z @ 7 NONAME ; void CPhoneCallSetup::HandlePhoneEngineMessageL(int, int) - ?HandleKeyMessageL@CPhoneAlerting@@MAEXW4TPhoneKeyEventMessages@MPhoneKeyEvents@@W4TKeyCode@@@Z @ 8 NONAME ; void CPhoneAlerting::HandleKeyMessageL(enum MPhoneKeyEvents::TPhoneKeyEventMessages, enum TKeyCode) - ?HandleCommandL@CPhoneAlerting@@MAEHH@Z @ 9 NONAME ; int CPhoneAlerting::HandleCommandL(int) - ?HandleKeyMessageL@CPhoneTwoSingles@@UAEXW4TPhoneKeyEventMessages@MPhoneKeyEvents@@W4TKeyCode@@@Z @ 10 NONAME ; void CPhoneTwoSingles::HandleKeyMessageL(enum MPhoneKeyEvents::TPhoneKeyEventMessages, enum TKeyCode) - ??1CPhoneSingleCall@@UAE@XZ @ 11 NONAME ; CPhoneSingleCall::~CPhoneSingleCall(void) - ??1CPhoneAlerting@@UAE@XZ @ 12 NONAME ; CPhoneAlerting::~CPhoneAlerting(void) - ??0CPhoneIncoming@@IAE@PAVMPhoneStateMachine@@PAVMPhoneViewCommandHandle@@PAVMPhoneCustomization@@@Z @ 13 NONAME ; CPhoneIncoming::CPhoneIncoming(class MPhoneStateMachine *, class MPhoneViewCommandHandle *, class MPhoneCustomization *) - ?HandleConnectedL@CPhoneAlerting@@IAEXH@Z @ 14 NONAME ; void CPhoneAlerting::HandleConnectedL(int) - ?ConstructL@CPhoneAlerting@@MAEXXZ @ 15 NONAME ; void CPhoneAlerting::ConstructL(void) - ??0CPhoneSingleCall@@IAE@PAVMPhoneStateMachine@@PAVMPhoneViewCommandHandle@@PAVMPhoneCustomization@@@Z @ 16 NONAME ; CPhoneSingleCall::CPhoneSingleCall(class MPhoneStateMachine *, class MPhoneViewCommandHandle *, class MPhoneCustomization *) - ??1CPhoneIncoming@@UAE@XZ @ 17 NONAME ; CPhoneIncoming::~CPhoneIncoming(void) - ?HandleCommandL@CPhoneSingleCall@@UAEHH@Z @ 18 NONAME ; int CPhoneSingleCall::HandleCommandL(int) - ?ConstructL@CPhoneIncoming@@MAEXXZ @ 19 NONAME ; void CPhoneIncoming::ConstructL(void) - ?HandlePhoneEngineMessageL@CPhoneSingleCall@@UAEXHH@Z @ 20 NONAME ; void CPhoneSingleCall::HandlePhoneEngineMessageL(int, int) - ??1CPhoneErrorMessagesHandler@@UAE@XZ @ 21 NONAME ; CPhoneErrorMessagesHandler::~CPhoneErrorMessagesHandler(void) - ?ConstructL@CPhoneCallSetup@@MAEXXZ @ 22 NONAME ; void CPhoneCallSetup::ConstructL(void) - ??0CPhoneErrorMessagesHandler@@IAE@PAVMPhoneViewCommandHandle@@PAVMPhoneStateMachine@@@Z @ 23 NONAME ; CPhoneErrorMessagesHandler::CPhoneErrorMessagesHandler(class MPhoneViewCommandHandle *, class MPhoneStateMachine *) - ?HandleErrorL@CPhoneTwoSinglesAndWaiting@@UAEXABUTPEErrorInfo@@@Z @ 24 NONAME ; void CPhoneTwoSinglesAndWaiting::HandleErrorL(struct TPEErrorInfo const &) - ??1CPhoneTwoSingles@@UAE@XZ @ 25 NONAME ; CPhoneTwoSingles::~CPhoneTwoSingles(void) - ?HandleDisconnectingL@CPhoneAlerting@@IAEXH@Z @ 26 NONAME ; void CPhoneAlerting::HandleDisconnectingL(int) - ?HandleCommandL@CPhoneGsmInCall@@MAEHH@Z @ 27 NONAME ; int CPhoneGsmInCall::HandleCommandL(int) - ?CreatePhoneEngineL@CPhoneStateMachineGSM@@UAEPAVMPEPhoneModel@@AAVMEngineMonitor@@@Z @ 28 NONAME ; class MPEPhoneModel * CPhoneStateMachineGSM::CreatePhoneEngineL(class MEngineMonitor &) - ?ResolveResourceID@CPhoneResourceResolverGSM@@UBEHABH@Z @ 29 NONAME ; int CPhoneResourceResolverGSM::ResolveResourceID(int const &) const - ?HandleErrorL@CPhoneIncoming@@UAEXABUTPEErrorInfo@@@Z @ 30 NONAME ; void CPhoneIncoming::HandleErrorL(struct TPEErrorInfo const &) - ??0CPhoneIdle@@IAE@PAVMPhoneStateMachine@@PAVMPhoneViewCommandHandle@@PAVMPhoneCustomization@@@Z @ 31 NONAME ; CPhoneIdle::CPhoneIdle(class MPhoneStateMachine *, class MPhoneViewCommandHandle *, class MPhoneCustomization *) - ?ShowErrorSpecificNoteL@CPhoneErrorMessagesHandler@@UAEXABUTPEErrorInfo@@@Z @ 32 NONAME ; void CPhoneErrorMessagesHandler::ShowErrorSpecificNoteL(struct TPEErrorInfo const &) - ??1CPhoneStateMachineGSM@@UAE@XZ @ 33 NONAME ; CPhoneStateMachineGSM::~CPhoneStateMachineGSM(void) + ?NewPhoneUIStateMachineFactoryL@@YAPAVCPhoneUIStateMachineFactoryBase@@XZ @ 1 NONAME ; class CPhoneUIStateMachineFactoryBase * NewPhoneUIStateMachineFactoryL(void) + ??1CPhoneResourceResolverGSM@@UAE@XZ @ 2 NONAME ; CPhoneResourceResolverGSM::~CPhoneResourceResolverGSM(void) + ?HandleKeyMessageL@CPhoneSingleCall@@UAEXW4TPhoneKeyEventMessages@MPhoneKeyEvents@@W4TKeyCode@@@Z @ 3 NONAME ; void CPhoneSingleCall::HandleKeyMessageL(enum MPhoneKeyEvents::TPhoneKeyEventMessages, enum TKeyCode) + ?ConstructL@CPhoneTwoSingles@@MAEXXZ @ 4 NONAME ; void CPhoneTwoSingles::ConstructL(void) + ??0CPhoneCallSetup@@IAE@PAVMPhoneStateMachine@@PAVMPhoneViewCommandHandle@@PAVMPhoneCustomization@@@Z @ 5 NONAME ; CPhoneCallSetup::CPhoneCallSetup(class MPhoneStateMachine *, class MPhoneViewCommandHandle *, class MPhoneCustomization *) + ?HandlePhoneEngineMessageL@CPhoneCallSetup@@UAEXHH@Z @ 6 NONAME ; void CPhoneCallSetup::HandlePhoneEngineMessageL(int, int) + ?HandleKeyMessageL@CPhoneAlerting@@MAEXW4TPhoneKeyEventMessages@MPhoneKeyEvents@@W4TKeyCode@@@Z @ 7 NONAME ; void CPhoneAlerting::HandleKeyMessageL(enum MPhoneKeyEvents::TPhoneKeyEventMessages, enum TKeyCode) + ?HandleCommandL@CPhoneAlerting@@MAEHH@Z @ 8 NONAME ; int CPhoneAlerting::HandleCommandL(int) + ?HandleKeyMessageL@CPhoneTwoSingles@@UAEXW4TPhoneKeyEventMessages@MPhoneKeyEvents@@W4TKeyCode@@@Z @ 9 NONAME ; void CPhoneTwoSingles::HandleKeyMessageL(enum MPhoneKeyEvents::TPhoneKeyEventMessages, enum TKeyCode) + ??1CPhoneSingleCall@@UAE@XZ @ 10 NONAME ; CPhoneSingleCall::~CPhoneSingleCall(void) + ??1CPhoneAlerting@@UAE@XZ @ 11 NONAME ; CPhoneAlerting::~CPhoneAlerting(void) + ??0CPhoneIncoming@@IAE@PAVMPhoneStateMachine@@PAVMPhoneViewCommandHandle@@PAVMPhoneCustomization@@@Z @ 12 NONAME ; CPhoneIncoming::CPhoneIncoming(class MPhoneStateMachine *, class MPhoneViewCommandHandle *, class MPhoneCustomization *) + ?HandleConnectedL@CPhoneAlerting@@IAEXH@Z @ 13 NONAME ; void CPhoneAlerting::HandleConnectedL(int) + ?ConstructL@CPhoneAlerting@@MAEXXZ @ 14 NONAME ; void CPhoneAlerting::ConstructL(void) + ??0CPhoneSingleCall@@IAE@PAVMPhoneStateMachine@@PAVMPhoneViewCommandHandle@@PAVMPhoneCustomization@@@Z @ 15 NONAME ; CPhoneSingleCall::CPhoneSingleCall(class MPhoneStateMachine *, class MPhoneViewCommandHandle *, class MPhoneCustomization *) + ??1CPhoneIncoming@@UAE@XZ @ 16 NONAME ; CPhoneIncoming::~CPhoneIncoming(void) + ?HandleCommandL@CPhoneSingleCall@@UAEHH@Z @ 17 NONAME ; int CPhoneSingleCall::HandleCommandL(int) + ?ConstructL@CPhoneIncoming@@MAEXXZ @ 18 NONAME ; void CPhoneIncoming::ConstructL(void) + ?HandlePhoneEngineMessageL@CPhoneSingleCall@@UAEXHH@Z @ 19 NONAME ; void CPhoneSingleCall::HandlePhoneEngineMessageL(int, int) + ??1CPhoneErrorMessagesHandler@@UAE@XZ @ 20 NONAME ; CPhoneErrorMessagesHandler::~CPhoneErrorMessagesHandler(void) + ?ConstructL@CPhoneCallSetup@@MAEXXZ @ 21 NONAME ; void CPhoneCallSetup::ConstructL(void) + ??0CPhoneErrorMessagesHandler@@IAE@PAVMPhoneViewCommandHandle@@PAVMPhoneStateMachine@@@Z @ 22 NONAME ; CPhoneErrorMessagesHandler::CPhoneErrorMessagesHandler(class MPhoneViewCommandHandle *, class MPhoneStateMachine *) + ?HandleErrorL@CPhoneTwoSinglesAndWaiting@@UAEXABUTPEErrorInfo@@@Z @ 23 NONAME ; void CPhoneTwoSinglesAndWaiting::HandleErrorL(struct TPEErrorInfo const &) + ??1CPhoneTwoSingles@@UAE@XZ @ 24 NONAME ; CPhoneTwoSingles::~CPhoneTwoSingles(void) + ?HandleDisconnectingL@CPhoneAlerting@@IAEXH@Z @ 25 NONAME ; void CPhoneAlerting::HandleDisconnectingL(int) + ?HandleCommandL@CPhoneGsmInCall@@MAEHH@Z @ 26 NONAME ; int CPhoneGsmInCall::HandleCommandL(int) + ?CreatePhoneEngineL@CPhoneStateMachineGSM@@UAEPAVMPEPhoneModel@@AAVMEngineMonitor@@@Z @ 27 NONAME ; class MPEPhoneModel * CPhoneStateMachineGSM::CreatePhoneEngineL(class MEngineMonitor &) + ?ResolveResourceID@CPhoneResourceResolverGSM@@UBEHABH@Z @ 28 NONAME ; int CPhoneResourceResolverGSM::ResolveResourceID(int const &) const + ?HandleErrorL@CPhoneIncoming@@UAEXABUTPEErrorInfo@@@Z @ 29 NONAME ; void CPhoneIncoming::HandleErrorL(struct TPEErrorInfo const &) + ??0CPhoneIdle@@IAE@PAVMPhoneStateMachine@@PAVMPhoneViewCommandHandle@@PAVMPhoneCustomization@@@Z @ 30 NONAME ; CPhoneIdle::CPhoneIdle(class MPhoneStateMachine *, class MPhoneViewCommandHandle *, class MPhoneCustomization *) + ?ShowErrorSpecificNoteL@CPhoneErrorMessagesHandler@@UAEXABUTPEErrorInfo@@@Z @ 31 NONAME ; void CPhoneErrorMessagesHandler::ShowErrorSpecificNoteL(struct TPEErrorInfo const &) + ??1CPhoneStateMachineGSM@@UAE@XZ @ 32 NONAME ; CPhoneStateMachineGSM::~CPhoneStateMachineGSM(void) + ?SendGlobalInfoNoteL@CPhoneErrorMessagesHandler@@IAEXHH@Z @ 33 NONAME ; void CPhoneErrorMessagesHandler::SendGlobalInfoNoteL(int, int) ?OpenMenuBarL@CPhoneSingleCall@@MAEXXZ @ 34 NONAME ; void CPhoneSingleCall::OpenMenuBarL(void) ??0CPhoneStateMachineGSM@@IAE@PAVMPhoneViewCommandHandle@@@Z @ 35 NONAME ; CPhoneStateMachineGSM::CPhoneStateMachineGSM(class MPhoneViewCommandHandle *) ?SetDivertIndication@CPhoneGsmInCall@@MAEXH@Z @ 36 NONAME ; void CPhoneGsmInCall::SetDivertIndication(int) @@ -41,21 +41,21 @@ ?ConstructL@CPhoneSingleCall@@MAEXXZ @ 40 NONAME ; void CPhoneSingleCall::ConstructL(void) ?HandlePhoneEngineMessageL@CPhoneIncoming@@UAEXHH@Z @ 41 NONAME ; void CPhoneIncoming::HandlePhoneEngineMessageL(int, int) ?State@CPhoneStateMachineGSM@@UAEPAVMPhoneState@@XZ @ 42 NONAME ; class MPhoneState * CPhoneStateMachineGSM::State(void) - ?HandleErrorL@CPhoneIdle@@MAEXABUTPEErrorInfo@@@Z @ 43 NONAME ; void CPhoneIdle::HandleErrorL(struct TPEErrorInfo const &) - ?HandleConnectingL@CPhoneCallSetup@@MAEXH@Z @ 44 NONAME ; void CPhoneCallSetup::HandleConnectingL(int) - ?UpdateInCallCbaL@CPhoneTwoSingles@@MAEXXZ @ 45 NONAME ; void CPhoneTwoSingles::UpdateInCallCbaL(void) - ?HandleErrorL@CPhoneSingleAndWaiting@@MAEXABUTPEErrorInfo@@@Z @ 46 NONAME ; void CPhoneSingleAndWaiting::HandleErrorL(struct TPEErrorInfo const &) - ??0CPhoneResourceResolverGSM@@IAE@XZ @ 47 NONAME ; CPhoneResourceResolverGSM::CPhoneResourceResolverGSM(void) - ?ConstructL@CPhoneResourceResolverGSM@@IAEXXZ @ 48 NONAME ; void CPhoneResourceResolverGSM::ConstructL(void) - ?HandlePhoneForegroundEventL@CPhoneGsmInCall@@MAEXXZ @ 49 NONAME ; void CPhoneGsmInCall::HandlePhoneForegroundEventL(void) - ?HandlePhoneEngineMessageL@CPhoneIdle@@UAEXHH@Z @ 50 NONAME ; void CPhoneIdle::HandlePhoneEngineMessageL(int, int) - ??1CPhoneIdle@@UAE@XZ @ 51 NONAME ; CPhoneIdle::~CPhoneIdle(void) - ??1CPhoneCallSetup@@UAE@XZ @ 52 NONAME ; CPhoneCallSetup::~CPhoneCallSetup(void) - ?ConstructL@CPhoneIdle@@MAEXXZ @ 53 NONAME ; void CPhoneIdle::ConstructL(void) - ??0CPhoneAlerting@@IAE@PAVMPhoneStateMachine@@PAVMPhoneViewCommandHandle@@PAVMPhoneCustomization@@@Z @ 54 NONAME ; CPhoneAlerting::CPhoneAlerting(class MPhoneStateMachine *, class MPhoneViewCommandHandle *, class MPhoneCustomization *) - ?OpenMenuBarL@CPhoneAlerting@@MAEXXZ @ 55 NONAME ; void CPhoneAlerting::OpenMenuBarL(void) - ?SendGlobalWarningNoteL@CPhoneErrorMessagesHandler@@IAEXH@Z @ 56 NONAME ; void CPhoneErrorMessagesHandler::SendGlobalWarningNoteL(int) - ?SendGlobalInfoNoteL@CPhoneErrorMessagesHandler@@IAEXH@Z @ 57 NONAME ; void CPhoneErrorMessagesHandler::SendGlobalInfoNoteL(int) + ?SendGlobalErrorNoteL@CPhoneErrorMessagesHandler@@IAEXHH@Z @ 43 NONAME ; void CPhoneErrorMessagesHandler::SendGlobalErrorNoteL(int, int) + ?HandleErrorL@CPhoneIdle@@MAEXABUTPEErrorInfo@@@Z @ 44 NONAME ; void CPhoneIdle::HandleErrorL(struct TPEErrorInfo const &) + ?HandleConnectingL@CPhoneCallSetup@@MAEXH@Z @ 45 NONAME ; void CPhoneCallSetup::HandleConnectingL(int) + ?UpdateInCallCbaL@CPhoneTwoSingles@@MAEXXZ @ 46 NONAME ; void CPhoneTwoSingles::UpdateInCallCbaL(void) + ?SendGlobalWarningNoteL@CPhoneErrorMessagesHandler@@IAEXHH@Z @ 47 NONAME ; void CPhoneErrorMessagesHandler::SendGlobalWarningNoteL(int, int) + ?HandleErrorL@CPhoneSingleAndWaiting@@MAEXABUTPEErrorInfo@@@Z @ 48 NONAME ; void CPhoneSingleAndWaiting::HandleErrorL(struct TPEErrorInfo const &) + ??0CPhoneResourceResolverGSM@@IAE@XZ @ 49 NONAME ; CPhoneResourceResolverGSM::CPhoneResourceResolverGSM(void) + ?ConstructL@CPhoneResourceResolverGSM@@IAEXXZ @ 50 NONAME ; void CPhoneResourceResolverGSM::ConstructL(void) + ?HandlePhoneForegroundEventL@CPhoneGsmInCall@@MAEXXZ @ 51 NONAME ; void CPhoneGsmInCall::HandlePhoneForegroundEventL(void) + ?HandlePhoneEngineMessageL@CPhoneIdle@@UAEXHH@Z @ 52 NONAME ; void CPhoneIdle::HandlePhoneEngineMessageL(int, int) + ??1CPhoneIdle@@UAE@XZ @ 53 NONAME ; CPhoneIdle::~CPhoneIdle(void) + ??1CPhoneCallSetup@@UAE@XZ @ 54 NONAME ; CPhoneCallSetup::~CPhoneCallSetup(void) + ?ConstructL@CPhoneIdle@@MAEXXZ @ 55 NONAME ; void CPhoneIdle::ConstructL(void) + ??0CPhoneAlerting@@IAE@PAVMPhoneStateMachine@@PAVMPhoneViewCommandHandle@@PAVMPhoneCustomization@@@Z @ 56 NONAME ; CPhoneAlerting::CPhoneAlerting(class MPhoneStateMachine *, class MPhoneViewCommandHandle *, class MPhoneCustomization *) + ?OpenMenuBarL@CPhoneAlerting@@MAEXXZ @ 57 NONAME ; void CPhoneAlerting::OpenMenuBarL(void) ?HandleNumberEntryClearedL@CPhoneTwoSingles@@MAEXXZ @ 58 NONAME ; void CPhoneTwoSingles::HandleNumberEntryClearedL(void) ?CheckIfShowCallTerminationNote@CPhoneAlerting@@MAEHXZ @ 59 NONAME ; int CPhoneAlerting::CheckIfShowCallTerminationNote(void) ?OpenMenuBarL@CPhoneTwoSingles@@MAEXXZ @ 60 NONAME ; void CPhoneTwoSingles::OpenMenuBarL(void) diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuistates/eabi/phoneuistatesu.def --- a/phoneapp/phoneuistates/eabi/phoneuistatesu.def Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuistates/eabi/phoneuistatesu.def Wed Jun 23 18:12:20 2010 +0300 @@ -77,9 +77,9 @@ _ZN25CPhoneResourceResolverGSMD0Ev @ 76 NONAME _ZN25CPhoneResourceResolverGSMD1Ev @ 77 NONAME _ZN25CPhoneResourceResolverGSMD2Ev @ 78 NONAME - _ZN26CPhoneErrorMessagesHandler19SendGlobalInfoNoteLEi @ 79 NONAME - _ZN26CPhoneErrorMessagesHandler20SendGlobalErrorNoteLEi @ 80 NONAME - _ZN26CPhoneErrorMessagesHandler22SendGlobalWarningNoteLEi @ 81 NONAME + _ZN26CPhoneErrorMessagesHandler19SendGlobalInfoNoteLEii @ 79 NONAME + _ZN26CPhoneErrorMessagesHandler20SendGlobalErrorNoteLEii @ 80 NONAME + _ZN26CPhoneErrorMessagesHandler22SendGlobalWarningNoteLEii @ 81 NONAME _ZN26CPhoneErrorMessagesHandler22ShowErrorSpecificNoteLERK12TPEErrorInfo @ 82 NONAME _ZN26CPhoneErrorMessagesHandlerC1EP23MPhoneViewCommandHandleP18MPhoneStateMachine @ 83 NONAME _ZN26CPhoneErrorMessagesHandlerC2EP23MPhoneViewCommandHandleP18MPhoneStateMachine @ 84 NONAME diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuistates/inc/cphoneerrormessageshandler.h --- a/phoneapp/phoneuistates/inc/cphoneerrormessageshandler.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuistates/inc/cphoneerrormessageshandler.h Wed Jun 23 18:12:20 2010 +0300 @@ -84,19 +84,23 @@ * Show global InfoNote * @param aResourceId resource id to be resolved */ - IMPORT_C void SendGlobalInfoNoteL( TInt aResourceId ); + IMPORT_C void SendGlobalInfoNoteL( TInt aResourceId, + TBool aNotificationDialog = EFalse ); /** * Show global ErrorNote * @param aResourceId resource id to be resolved */ - IMPORT_C void SendGlobalErrorNoteL( TInt aResourceId ); + IMPORT_C void SendGlobalErrorNoteL( TInt aResourceId, + TBool aNotificationDialog = EFalse ); /** * Show global WarningNote * @param aResourceId resource id to be resolved */ - IMPORT_C void SendGlobalWarningNoteL( TInt aResourceId ); + IMPORT_C void SendGlobalWarningNoteL( + TInt aResourceId, + TBool aNotificationDialog = EFalse ); private: diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuistates/inc/cphonegeneralgsmmessageshandler.h --- a/phoneapp/phoneuistates/inc/cphonegeneralgsmmessageshandler.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuistates/inc/cphonegeneralgsmmessageshandler.h Wed Jun 23 18:12:20 2010 +0300 @@ -90,8 +90,10 @@ /** * Show global InfoNote * @param aResourceId resource id to be resolved + * @param aNotificationDialog ETrue if notification dialog should be used */ - void SendGlobalInfoNoteL( TInt aResourceId ); + void SendGlobalInfoNoteL( TInt aResourceId, + TBool aNotificationDialog = EFalse ); /** * Shows divert indication or sets internal divert flag @@ -101,15 +103,12 @@ void HandleIncomingCallForwardedL(); /** - * Shows software version note - */ - void HandleShowVersionL(); - - /** * Show global ErrorNote * @param aResourceId resource id to be resolved + * @param aNotificationDialog ETrue if notification dialog should be used */ - void SendGlobalErrorNoteL( TInt aResourceId ); + void SendGlobalErrorNoteL( TInt aResourceId, + TBool aNotificationDialog = EFalse ); private: diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuistates/src/cphonealerting.cpp --- a/phoneapp/phoneuistates/src/cphonealerting.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuistates/src/cphonealerting.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -256,8 +256,6 @@ EndUiUpdate(); - HandleColpNoteL( aCallId ); - // Go to single state UpdateCbaL( EPhoneCallHandlingInCallCBA ); iStateMachine->ChangeState( EPhoneStateSingle ); diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuistates/src/cphonecallsetup.cpp --- a/phoneapp/phoneuistates/src/cphonecallsetup.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuistates/src/cphonecallsetup.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -105,7 +105,6 @@ // fall through. case MEngineMonitor::EPEMessageIssuingSSRequest: case MEngineMonitor::EPEMessageCallBarred: - case MEngineMonitor::EPEMessageShowVersion: case MEngineMonitor::EPEMessageIssuedSSRequest: case MEngineMonitor::EPEMessageTempClirActivationUnsuccessful: case MEngineMonitor::EPEMessageIncCallIsForw: diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuistates/src/cphoneconferenceandcallsetup.cpp --- a/phoneapp/phoneuistates/src/cphoneconferenceandcallsetup.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuistates/src/cphoneconferenceandcallsetup.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -311,8 +311,7 @@ SetTouchPaneButtons( EPhoneConferenceAndSingleButtons ); SetTouchPaneButtonDisabled( EPhoneInCallCmdPrivate ); EndUiUpdate(); - - HandleColpNoteL( aCallId ); + UpdateCbaL ( EPhoneCallHandlingNewCallSwapCBA ); iStateMachine->ChangeState( EPhoneStateConferenceAndSingle ); diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuistates/src/cphoneconferenceandsingle.cpp --- a/phoneapp/phoneuistates/src/cphoneconferenceandsingle.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuistates/src/cphoneconferenceandsingle.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -327,7 +327,7 @@ EPhoneViewUpdateBubble, KConferenceCallId, &callHeaderParam ); SetTouchPaneButtons( EPhoneConferenceAndHeldSingleButtons ); - + UpdateInCallCbaL(); EndUiUpdate(); } @@ -374,15 +374,13 @@ { __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneConferenceAndSingle::HandleConnectedL"); - UpdateInCallCbaL(); - - // Display connected bubble TPhoneCmdParamCallHeaderData callHeaderParam; callHeaderParam.SetCallState( EPEStateConnected ); iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId, &callHeaderParam ); + UpdateInCallCbaL(); SetTouchPaneButtons( EPhoneConferenceButtons ); } diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuistates/src/cphoneconferenceandwaitingandcallsetup.cpp --- a/phoneapp/phoneuistates/src/cphoneconferenceandwaitingandcallsetup.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuistates/src/cphoneconferenceandwaitingandcallsetup.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -321,8 +321,6 @@ { iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveNumberEntry ); } - - HandleColpNoteL( aCallId ); SetTouchPaneButtons( EPhoneWaitingCallButtons ); SetTouchPaneButtonDisabled( EPhoneCallComingCmdAnswer ); diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuistates/src/cphoneemergency.cpp --- a/phoneapp/phoneuistates/src/cphoneemergency.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuistates/src/cphoneemergency.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -182,6 +182,10 @@ } } break; + + case MEngineMonitor::EPEMessageColpNumberAvailable: + //Don't show COLP note during emergency call. + break; default: CPhoneGsmInCall::HandlePhoneEngineMessageL( @@ -709,7 +713,7 @@ case ECCPErrorCCNoChannelAvailable: case ECCPErrorNetworkBusy: case ECCPEmergencyFailed: - SendGlobalErrorNoteL( EPhoneNoteNoNetworkCallEmergency ); + SendGlobalErrorNoteL( EPhoneNoteNoNetworkCallEmergency, ETrue ); break; default: diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuistates/src/cphoneerrormessageshandler.cpp --- a/phoneapp/phoneuistates/src/cphoneerrormessageshandler.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuistates/src/cphoneerrormessageshandler.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -93,7 +93,8 @@ // CPhoneErrorMessagesHandler::SendGlobalInfoNoteL // --------------------------------------------------------- // -EXPORT_C void CPhoneErrorMessagesHandler::SendGlobalInfoNoteL( TInt aResourceId ) +EXPORT_C void CPhoneErrorMessagesHandler::SendGlobalInfoNoteL( + TInt aResourceId, TBool aNotificationDialog ) { __LOGMETHODSTARTEND( EPhoneControl, "CPhoneErrorMessagesHandler::SendGlobalInfoNoteL()" ); @@ -105,7 +106,9 @@ // Re-enable global notes TPhoneCmdParamBoolean globalNotifierParam; globalNotifierParam.SetBoolean( EFalse ); - iViewCommandHandle->ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled, &globalNotifierParam ); + iViewCommandHandle->ExecuteCommandL( + EPhoneViewSetGlobalNotifiersDisabled, + &globalNotifierParam ); TPhoneCmdParamGlobalNote globalNoteParam; @@ -114,6 +117,7 @@ CPhoneMainResourceResolver::Instance()-> ResolveResourceID( aResourceId ) ); globalNoteParam.SetTone( EAvkonSIDInformationTone ); + globalNoteParam.SetNotificationDialog( aNotificationDialog ); iViewCommandHandle->ExecuteCommandL( EPhoneViewShowGlobalNote, &globalNoteParam ); @@ -125,7 +129,8 @@ // CPhoneErrorMessagesHandler::SendGlobalErrorNoteL // --------------------------------------------------------- // -EXPORT_C void CPhoneErrorMessagesHandler::SendGlobalErrorNoteL( TInt aResourceId ) +EXPORT_C void CPhoneErrorMessagesHandler::SendGlobalErrorNoteL( + TInt aResourceId, TBool aNotificationDialog ) { __LOGMETHODSTARTEND( EPhoneControl, "CPhoneErrorMessagesHandler::SendGlobalErrorNoteL()" ); @@ -147,7 +152,8 @@ CPhoneMainResourceResolver::Instance()-> ResolveResourceID( aResourceId ) ); globalNoteParam.SetTone( CAknNoteDialog::EErrorTone ); - + globalNoteParam.SetNotificationDialog( aNotificationDialog ); + iViewCommandHandle->ExecuteCommandL( EPhoneViewShowGlobalNote, &globalNoteParam ); } @@ -158,7 +164,8 @@ // CPhoneErrorMessagesHandler::SendGlobalWarningNoteL // --------------------------------------------------------- // -EXPORT_C void CPhoneErrorMessagesHandler::SendGlobalWarningNoteL( TInt aResourceId ) +EXPORT_C void CPhoneErrorMessagesHandler::SendGlobalWarningNoteL( + TInt aResourceId, TBool aNotificationDialog ) { __LOGMETHODSTARTEND(EPhoneControl, "CPhoneErrorMessagesHandler::SendGlobalWarningNoteL( ) "); __ASSERT_DEBUG( aResourceId, Panic( EPhoneCtrlParameterNotInitialized ) ); @@ -180,6 +187,7 @@ CPhoneMainResourceResolver::Instance()-> ResolveResourceID( aResourceId ) ); globalNoteParam.SetTone( EAvkonSIDWarningTone ); + globalNoteParam.SetNotificationDialog( aNotificationDialog ); iViewCommandHandle->ExecuteCommandL( EPhoneViewShowGlobalNote, &globalNoteParam ); @@ -214,21 +222,21 @@ { case ECCPErrorRejected: case ECCPRequestFailure: - SendGlobalErrorNoteL( EPhoneNoteTextRequestRejected ); + SendGlobalErrorNoteL( EPhoneNoteTextRequestRejected, ETrue ); break; case ECCPErrorInvalidPhoneNumber: - SendGlobalErrorNoteL( EPhoneInvalidPhoneNumber ); + SendGlobalErrorNoteL( EPhoneInvalidPhoneNumber, ETrue ); break; case ECCPErrorInvalidURI: if( IsVideoCall( aErrorInfo.iCallId ) ) { - SendGlobalInfoNoteL( EPhoneInvalidPhoneNumber ); + SendGlobalInfoNoteL( EPhoneInvalidPhoneNumber, ETrue ); } else { - SendGlobalErrorNoteL( EPhoneInvalidPhoneNumber ); + SendGlobalErrorNoteL( EPhoneInvalidPhoneNumber, ETrue ); } break; @@ -239,13 +247,13 @@ } else { - SendGlobalInfoNoteL( EPhoneNoteTextCheckNetworkservices ); + SendGlobalInfoNoteL( EPhoneNoteTextCheckNetworkservices, ETrue ); } break; case ECCPErrorNotAllowedInOfflineMode: case ECCPErrorAuthenticationFailed: - SendGlobalWarningNoteL( EPhoneEmergencyCallsOnly ); + SendGlobalWarningNoteL( EPhoneEmergencyCallsOnly, ETrue ); break; case ECCPErrorNotReady: @@ -254,25 +262,25 @@ case ECCPErrorNotFound: case ECCPErrorTimedOut: case ECCPErrorAccessDenied: - SendGlobalWarningNoteL( EPhoneNoteTextNotAllowed ); + SendGlobalWarningNoteL( EPhoneNoteTextNotAllowed, ETrue ); break; case ECCPErrorAlreadyInUse: - SendGlobalErrorNoteL( EPhoneNoteTextCallNotAllowed ); + SendGlobalErrorNoteL( EPhoneNoteTextCallNotAllowed, ETrue ); break; case ECCPErrorInvalidFDN: - SendGlobalWarningNoteL( EPhoneNoteTextCallNotAllowedFDN ); + SendGlobalWarningNoteL( EPhoneNoteTextCallNotAllowedFDN, ETrue ); break; case ECCPErrorNotReached: if( IsVideoCall( aErrorInfo.iCallId ) ) { - SendGlobalInfoNoteL( EPhoneNumberNotInUse ); + SendGlobalInfoNoteL( EPhoneNumberNotInUse, ETrue ); } else { - SendGlobalWarningNoteL( EPhoneNumberNotInUse ); + SendGlobalWarningNoteL( EPhoneNumberNotInUse, ETrue ); } break; @@ -292,31 +300,31 @@ } else { - SendGlobalWarningNoteL( EPhoneErrorInConnection ); + SendGlobalWarningNoteL( EPhoneErrorInConnection, ETrue ); } break; case ECCPErrorCCResourceNotAvailable: - SendGlobalWarningNoteL( EPhoneErrorInConnection ); + SendGlobalWarningNoteL( EPhoneErrorInConnection, ETrue ); break; case ECCPErrorNumberBarred: - SendGlobalWarningNoteL( EPhoneNumberBarred ); + SendGlobalWarningNoteL( EPhoneNumberBarred, ETrue ); break; case ECCPErrorCCUserAlertingNoAnswer: if( IsVideoCall( aErrorInfo.iCallId ) ) { - SendGlobalInfoNoteL( EPhoneNoAnswer ); + SendGlobalInfoNoteL( EPhoneNoAnswer, ETrue ); } else { - SendGlobalWarningNoteL( EPhoneNoAnswer ); + SendGlobalWarningNoteL( EPhoneNoAnswer, ETrue ); } break; case KErrPhoneEngineNoWcdmaNetwork: // Videotel special case. Refactoring PE/CSPlugin needed - case ECCPErrorVideoCallNotSupportedByNetwork: + case ECCPErrorVideoCallNotSupportedByNetwork: //// SendGlobalInfoNoteL( EPhoneInformationNoNetworkSupportForVideoCallNote ); break; @@ -331,25 +339,25 @@ break; case ECCPErrorNetworkBusy: - SendGlobalWarningNoteL( EPhoneNetworkBusy ); + SendGlobalWarningNoteL( EPhoneNetworkBusy, ETrue ); break; case ECCPErrorNoService: - SendGlobalWarningNoteL( EPhoneNoteNoService ); + SendGlobalWarningNoteL( EPhoneNoteNoService, ETrue ); break; case ECCPErrorBusy: - SendGlobalWarningNoteL( EPhoneNumberBusy ); + SendGlobalWarningNoteL( EPhoneNumberBusy, ETrue ); break; case ECCPErrorUserNotInCug: if( IsVideoCall( aErrorInfo.iCallId ) ) { - SendGlobalInfoNoteL( EPhoneNumberNotInCUG ); + SendGlobalInfoNoteL( EPhoneNumberNotInCUG, ETrue ); } else { - SendGlobalWarningNoteL( EPhoneNumberNotInCUG ); + SendGlobalWarningNoteL( EPhoneNumberNotInCUG, ETrue ); } break; @@ -374,14 +382,14 @@ } else { - SendGlobalWarningNoteL( EPhoneNoAnswer ); + SendGlobalWarningNoteL( EPhoneNoAnswer, ETrue ); } break; case ECCPErrorCCCallRejected: if( IsVideoCall( aErrorInfo.iCallId ) ) { - SendGlobalInfoNoteL( EPhoneNoteCalledNumberHasBarredIncomingCalls ); + SendGlobalInfoNoteL( EPhoneNoteCalledNumberHasBarredIncomingCalls, ETrue ); } break; @@ -399,7 +407,7 @@ } else { - SendGlobalWarningNoteL( EPhoneNoAnswer ); + SendGlobalWarningNoteL( EPhoneNoAnswer, ETrue ); } break; @@ -410,7 +418,7 @@ } else { - SendGlobalWarningNoteL( EPhoneNetworkBusy ); + SendGlobalWarningNoteL( EPhoneNetworkBusy, ETrue ); } break; @@ -428,7 +436,7 @@ } else { - SendGlobalWarningNoteL( EPhoneNoteTextNotAllowed ); + SendGlobalWarningNoteL( EPhoneNoteTextNotAllowed, ETrue ); } break; @@ -461,7 +469,7 @@ } else { - SendGlobalWarningNoteL( EPhoneErrorInConnection ); + SendGlobalWarningNoteL( EPhoneErrorInConnection, ETrue ); } break; @@ -484,7 +492,7 @@ } else { - SendGlobalWarningNoteL( EPhoneErrorInConnection ); + SendGlobalWarningNoteL( EPhoneErrorInConnection, ETrue ); } break; @@ -502,12 +510,12 @@ } else { - SendGlobalErrorNoteL( EPhoneNoteTextRequestRejected ); + SendGlobalErrorNoteL( EPhoneNoteTextRequestRejected, ETrue ); } break; case ECCPTransferFailed: - SendGlobalErrorNoteL( EPhoneNoteTextRequestRejected ); + SendGlobalErrorNoteL( EPhoneNoteTextRequestRejected, ETrue ); break; case ECCPErrorCCServiceNotAvailable: @@ -521,27 +529,27 @@ break; case ECCPErrorCUGOutgoingCallsBarred: - SendGlobalInfoNoteL( EPhoneOutgoingCallsBarredWithinCUG ); + SendGlobalInfoNoteL( EPhoneOutgoingCallsBarredWithinCUG, ETrue ); break; case ECCPErrorCUGNotSelected: - SendGlobalInfoNoteL( EPhoneNoCUGSelected ); + SendGlobalInfoNoteL( EPhoneNoCUGSelected, ETrue ); break; case ECCPErrorCUGIndexUnknown: - SendGlobalInfoNoteL( EPhoneUnknownCUGIndex ); + SendGlobalInfoNoteL( EPhoneUnknownCUGIndex, ETrue ); break; case ECCPErrorCUGIndexIncompatible: - SendGlobalInfoNoteL( EPhoneCUGIndexIncompatible ); + SendGlobalInfoNoteL( EPhoneCUGIndexIncompatible, ETrue ); break; case ECCPErrorCUGCallsFailure: - SendGlobalInfoNoteL( EPhoneCUGCallsFailure ); + SendGlobalInfoNoteL( EPhoneCUGCallsFailure, ETrue ); break; case ECCPErrorCLIRNotSubscribed: - SendGlobalInfoNoteL( EPhoneCLIRNotSubscribed ); + SendGlobalInfoNoteL( EPhoneCLIRNotSubscribed, ETrue ); break; case ECCPErrorCCBSPossible: diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuistates/src/cphonegeneralgsmmessageshandler.cpp --- a/phoneapp/phoneuistates/src/cphonegeneralgsmmessageshandler.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuistates/src/cphonegeneralgsmmessageshandler.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -100,7 +100,7 @@ switch ( aMessage ) { case MEngineMonitor::EPEMessageCallBarred: - SendGlobalInfoNoteL( EPhoneActiveBarrings ); + SendGlobalInfoNoteL( EPhoneActiveBarrings, ETrue ); break; case MEngineMonitor::EPEMessageIncCallIsForw: @@ -108,17 +108,13 @@ break; case MEngineMonitor::EPEMessageIncCallForwToC: - SendGlobalInfoNoteL( EPhoneMtCallDiverting ); + SendGlobalInfoNoteL( EPhoneMtCallDiverting, ETrue ); break; case MEngineMonitor::EPEMessageOutCallForwToC: - SendGlobalInfoNoteL( EPhoneDiverting ); + SendGlobalInfoNoteL( EPhoneDiverting, ETrue ); break; - case MEngineMonitor::EPEMessageShowVersion: - HandleShowVersionL(); - break; - case MEngineMonitor::EPEMessageIssuedSSRequest: { __PHONELOG( @@ -197,15 +193,15 @@ } case MEngineMonitor::EPEMessageTempClirActivationUnsuccessful: - SendGlobalErrorNoteL( EPhoneSSNotifCLIRSupprReject ); + SendGlobalErrorNoteL( EPhoneSSNotifCLIRSupprReject, ETrue ); break; case MEngineMonitor::EPEMessageForwardUnconditionalModeActive: - SendGlobalInfoNoteL( EPhoneAllIncomingCallsDiverted ); + SendGlobalInfoNoteL( EPhoneAllIncomingCallsDiverted, ETrue ); break; case MEngineMonitor::EPEMessageForwardConditionallyModeActive: - SendGlobalInfoNoteL( EPhoneActiveDiverts ); + SendGlobalInfoNoteL( EPhoneActiveDiverts, ETrue ); break; default: @@ -217,7 +213,8 @@ // CPhoneGeneralGsmMessagesHandler::SendGlobalInfoNoteL // --------------------------------------------------------- // -void CPhoneGeneralGsmMessagesHandler::SendGlobalInfoNoteL( TInt aResourceId ) +void CPhoneGeneralGsmMessagesHandler::SendGlobalInfoNoteL( + TInt aResourceId, TBool aNotificationDialog ) { __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneGeneralGsmMessagesHandler::SendGlobalInfoNoteL()" ); @@ -238,6 +235,7 @@ CPhoneMainResourceResolver::Instance()-> ResolveResourceID( aResourceId ) ); globalNoteParam.SetTone( EAvkonSIDInformationTone ); + globalNoteParam.SetNotificationDialog( aNotificationDialog ); iViewCommandHandle.ExecuteCommandL( EPhoneViewShowGlobalNote, &globalNoteParam ); @@ -257,81 +255,12 @@ } -// ----------------------------------------------------------- -// CPhoneGeneralGsmMessagesHandler::HandleShowVersionL -// ----------------------------------------------------------- -// -void CPhoneGeneralGsmMessagesHandler::HandleShowVersionL() - { - __LOGMETHODSTARTEND( EPhoneUIStates, - "CPhoneGeneralGsmMessagesHandler::HandleShowVersionL()" ); - if ( FeatureManager::FeatureSupported( KFeatureIdOnScreenDialer ) ) - { - iViewCommandHandle.ExecuteCommandL( EPhoneViewClearNumberEntryContent ); - } - else - { - // Remove number entry from screen - iViewCommandHandle.ExecuteCommandL( EPhoneViewRemoveNumberEntry ); - } - - -#ifdef __SYNCML_DM - // Launch DM UI - RWsSession sess = CCoeEnv::Static()->WsSession(); - RApaLsSession apaLsSession; - - TApaTaskList appList( sess ); - TApaTask bring = appList.FindApp( KDeviceManagerUid ); - - if ( bring.Exists() ) - { - bring.BringToForeground(); - } - else - { - if( !apaLsSession.Handle() ) - { - User::LeaveIfError(apaLsSession.Connect()); - } - CleanupClosePushL( apaLsSession ); - TThreadId thread; - User::LeaveIfError( apaLsSession.StartDocument(KNullDesC, KDeviceManagerUid, thread) ); - CleanupStack::PopAndDestroy( &apaLsSession ); - } - - // Stop dtmf tone. Long key press case key up event go to - // device manager application. - iStateMachine.SendPhoneEngineMessage( - MPEPhoneModel::EPEMessageEndDTMF ); - -#else - // Fetch version number - TPEPhoneIdentityParameters phoneIdentityParameters = iStateMachine. - PhoneEngineInfo()->PhoneIdentityParameters(); - - // Add it to the resource string - HBufC* buf = HBufC::NewLC( KSysUtilVersionTextLength ); - buf->Des().Format( phoneIdentityParameters.iRevision ); - - TPhoneCmdParamNote noteParam; - noteParam.SetType( EPhoneNoteCustom ); - noteParam.SetResourceId( CPhoneMainResourceResolver::Instance()-> - ResolveResourceID( EPhoneInformationWaitNote ) ); - noteParam.SetText( *buf ); - - // Display note - iViewCommandHandle.ExecuteCommandL( EPhoneViewShowNote, ¬eParam ); - - CleanupStack::PopAndDestroy( buf ); -#endif - } - // --------------------------------------------------------- // CPhoneGeneralGsmMessagesHandler::SendGlobalErrorNoteL // --------------------------------------------------------- // -void CPhoneGeneralGsmMessagesHandler::SendGlobalErrorNoteL( TInt aResourceId ) +void CPhoneGeneralGsmMessagesHandler::SendGlobalErrorNoteL( + TInt aResourceId, TBool aNotificationDialog ) { __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneGeneralGsmMessagesHandler::SendGlobalErrorNoteL()" ); @@ -352,7 +281,8 @@ CPhoneMainResourceResolver::Instance()-> ResolveResourceID( aResourceId ) ); globalNoteParam.SetTone( CAknNoteDialog::EErrorTone ); - + globalNoteParam.SetNotificationDialog( aNotificationDialog ); + iViewCommandHandle.ExecuteCommandL( EPhoneViewShowGlobalNote, &globalNoteParam ); } diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuistates/src/cphonegsmincall.cpp --- a/phoneapp/phoneuistates/src/cphonegsmincall.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuistates/src/cphonegsmincall.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -106,22 +106,21 @@ { case MEngineMonitor::EPEMessageRemoteHeld: CPhoneState::SendGlobalInfoNoteL( - EPhoneInformationRemotePutOnHoldNote ); + EPhoneInformationRemotePutOnHoldNote, ETrue ); break; case MEngineMonitor::EPEMessageRemoteResumed: CPhoneState::SendGlobalInfoNoteL( - EPhoneInformationConnectedNote ); + EPhoneInformationConnectedNote, ETrue ); break; case MEngineMonitor::EPEMessageRemoteCreatedConference: CPhoneState::SendGlobalInfoNoteL( - EPhoneInformationRemoteCreateConferenceNote ); + EPhoneInformationRemoteCreateConferenceNote, ETrue ); break; case MEngineMonitor::EPEMessageIncCallIsForw: // fall through case MEngineMonitor::EPEMessageIssuingSSRequest: // fall through case MEngineMonitor::EPEMessageCallBarred: // fall through - case MEngineMonitor::EPEMessageShowVersion: // fall through case MEngineMonitor::EPEMessageIssuedSSRequest: // fall through case MEngineMonitor::EPEMessageTempClirActivationUnsuccessful: case MEngineMonitor::EPEMessageIncCallForwToC: // fall through @@ -140,8 +139,14 @@ // Needed also in non-touch, if call waiting request (*43#) // is sent during active call at least. UpdateCbaL( EPhoneCallHandlingInCallCBA ); + } + break; + + case MEngineMonitor::EPEMessageColpNumberAvailable: + { + HandleColpNoteL( aCallId ); } - break; + break; default: CPhoneStateInCall::HandlePhoneEngineMessageL( @@ -218,26 +223,24 @@ // CPhoneGsmInCall::HandleColpNoteL // ----------------------------------------------------------- // -void CPhoneGsmInCall::HandleColpNoteL( - TInt aCallId ) +void CPhoneGsmInCall::HandleColpNoteL( TInt aCallId ) { __LOGMETHODSTARTEND(EPhoneControl, "CPhoneGsmInCall::HandleColpNoteL() "); MPEEngineInfo* EngineInfo = CPhoneState::iStateMachine->PhoneEngineInfo(); - - if ( EngineInfo->RemoteColpNumber( aCallId ).Length() ) - { - TPhoneCmdParamGlobalNote globalNoteParam; - globalNoteParam.SetText( EngineInfo->RemoteColpNumber( aCallId ) ); - globalNoteParam.SetType( EAknGlobalInformationNote ); - globalNoteParam.SetTextResourceId( + + TPhoneCmdParamGlobalNote globalNoteParam; + globalNoteParam.SetText( EngineInfo->RemoteColpNumber( aCallId ) ); + globalNoteParam.SetType( EAknGlobalInformationNote ); + globalNoteParam.SetTextResourceId( CPhoneMainResourceResolver::Instance()-> - ResolveResourceID( EPhoneColpConnected ) ); - globalNoteParam.SetTone( EAvkonSIDInformationTone ); - - iViewCommandHandle->ExecuteCommandL( - EPhoneViewShowGlobalNote, &globalNoteParam ); - } + ResolveResourceID( EPhoneColpConnected ) ); + globalNoteParam.SetTone( EAvkonSIDInformationTone ); + globalNoteParam.SetNotificationDialog( ETrue ); + + iViewCommandHandle->ExecuteCommandL( + EPhoneViewShowGlobalNote, &globalNoteParam ); + } // ----------------------------------------------------------- diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuistates/src/cphoneidle.cpp --- a/phoneapp/phoneuistates/src/cphoneidle.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuistates/src/cphoneidle.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -93,12 +93,12 @@ { case MEngineMonitor::EPEMessageRemoteHeld: CPhoneState::SendGlobalInfoNoteL( - EPhoneInformationRemotePutOnHoldNote ); + EPhoneInformationRemotePutOnHoldNote, ETrue ); break; case MEngineMonitor::EPEMessageRemoteResumed: CPhoneState::SendGlobalInfoNoteL( - EPhoneInformationConnectedNote ); + EPhoneInformationConnectedNote, ETrue ); break; case MEngineMonitor::EPEMessageAudioOutputChanged: @@ -114,7 +114,6 @@ } case MEngineMonitor::EPEMessageIssuingSSRequest: // fall through case MEngineMonitor::EPEMessageCallBarred: // fall through - case MEngineMonitor::EPEMessageShowVersion: // fall through case MEngineMonitor::EPEMessageTempClirActivationUnsuccessful: case MEngineMonitor::EPEMessageIncCallIsForw: // fall through case MEngineMonitor::EPEMessageIncCallForwToC: // fall through @@ -137,20 +136,6 @@ aMessage, aCallId ); break; } - -#ifndef __SYNCML_DM - switch ( aMessage ) - { - case MEngineMonitor::EPEMessageShowVersion: - if ( !iOnScreenDialer ) - { - HandleNumberEntryClearedL(); - } - break; - default: - break; - } -#endif } // ----------------------------------------------------------- diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuistates/src/cphoneincoming.cpp --- a/phoneapp/phoneuistates/src/cphoneincoming.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuistates/src/cphoneincoming.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -119,17 +119,16 @@ break; case MEngineMonitor::EPEMessageRemoteHeld: - SendGlobalInfoNoteL( EPhoneInformationRemotePutOnHoldNote ); + SendGlobalInfoNoteL( EPhoneInformationRemotePutOnHoldNote, ETrue ); break; case MEngineMonitor::EPEMessageRemoteResumed: - SendGlobalInfoNoteL( EPhoneInformationConnectedNote ); + SendGlobalInfoNoteL( EPhoneInformationConnectedNote, ETrue ); break; // fall through. case MEngineMonitor::EPEMessageIssuingSSRequest: case MEngineMonitor::EPEMessageCallBarred: - case MEngineMonitor::EPEMessageShowVersion: case MEngineMonitor::EPEMessageIssuedSSRequest: case MEngineMonitor::EPEMessageTempClirActivationUnsuccessful: case MEngineMonitor::EPEMessageIncCallIsForw: diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuistates/src/cphonesingleandalerting.cpp --- a/phoneapp/phoneuistates/src/cphonesingleandalerting.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuistates/src/cphonesingleandalerting.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -231,9 +231,7 @@ TPhoneCmdParamBoolean holdFlag; holdFlag.SetBoolean( EFalse ); iViewCommandHandle->ExecuteCommandL( EPhoneViewSetHoldFlag, &holdFlag ); - } - - CPhoneGsmInCall::HandleColpNoteL( aCallId ); + } } // ----------------------------------------------------------- // CPhoneSingleAndAlerting::HandleIdleL diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuistates/src/cphonesingleandcallsetupandwaiting.cpp --- a/phoneapp/phoneuistates/src/cphonesingleandcallsetupandwaiting.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuistates/src/cphonesingleandcallsetupandwaiting.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -211,8 +211,9 @@ case MEngineMonitor::EPEMessageRemoteBusy: // If call setup failed then stop capturing keys. - // Flow through to default branch. - CaptureKeysDuringCallNotificationL( EFalse ); + CaptureKeysDuringCallNotificationL( EFalse ); + CPhoneGsmInCall::HandlePhoneEngineMessageL( aMessage, aCallId ); + break; default: CPhoneGsmInCall::HandlePhoneEngineMessageL( aMessage, aCallId ); break; @@ -449,8 +450,6 @@ iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveNumberEntry ); } - HandleColpNoteL( aCallId ); - if ( aCallId != iWaitingCallId ) { // Alerting call is connected diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuistates/src/cphonestartup.cpp --- a/phoneapp/phoneuistates/src/cphonestartup.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuistates/src/cphonestartup.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -93,17 +93,16 @@ { case MEngineMonitor::EPEMessageRemoteHeld: CPhoneState::SendGlobalInfoNoteL( - EPhoneInformationRemotePutOnHoldNote ); + EPhoneInformationRemotePutOnHoldNote, ETrue ); break; case MEngineMonitor::EPEMessageRemoteResumed: CPhoneState::SendGlobalInfoNoteL( - EPhoneInformationConnectedNote ); + EPhoneInformationConnectedNote, ETrue ); break; case MEngineMonitor::EPEMessageIssuingSSRequest: // fall through case MEngineMonitor::EPEMessageCallBarred: // fall through - case MEngineMonitor::EPEMessageShowVersion: // fall through case MEngineMonitor::EPEMessageIssuedSSRequest: // fall through case MEngineMonitor::EPEMessageTempClirActivationUnsuccessful: case MEngineMonitor::EPEMessageIncCallIsForw: // fall through diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuistates/src/cphonetwosinglesandwaiting.cpp --- a/phoneapp/phoneuistates/src/cphonetwosinglesandwaiting.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuistates/src/cphonetwosinglesandwaiting.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -124,7 +124,7 @@ // Waiting call bubble is over number entry // so display not allowed note because we // can't answer the call - SendGlobalWarningNoteL( EPhoneNoteTextCallNotAllowed ); + SendGlobalWarningNoteL( EPhoneNoteTextCallNotAllowed, ETrue ); } break; } diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiutils/bwins/phoneuiutilsu.def --- a/phoneapp/phoneuiutils/bwins/phoneuiutilsu.def Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiutils/bwins/phoneuiutilsu.def Wed Jun 23 18:12:20 2010 +0300 @@ -12,134 +12,134 @@ ?NumberType@TPhoneCmdParamCallHeaderData@@QBEHXZ @ 11 NONAME ; int TPhoneCmdParamCallHeaderData::NumberType(void) const ?CbaCommandMapping@TPhoneCmdParamQuery@@QBEHH@Z @ 12 NONAME ; int TPhoneCmdParamQuery::CbaCommandMapping(int) const ?SetTone@TPhoneCmdParamQuery@@QAEXH@Z @ 13 NONAME ; void TPhoneCmdParamQuery::SetTone(int) - ?PhoneNumber@TPhoneCmdParamSpeedDial@@QAEPAVTPtr16@@XZ @ 14 NONAME ; class TPtr16 * TPhoneCmdParamSpeedDial::PhoneNumber(void) - ?CLIText@TPhoneCmdParamCallHeaderData@@QBEABVTDesC16@@XZ @ 15 NONAME ; class TDesC16 const & TPhoneCmdParamCallHeaderData::CLIText(void) const - ??0CPhoneLogger@@QAE@VTUid@@@Z @ 16 NONAME ; CPhoneLogger::CPhoneLogger(class TUid) - ?RingingType@TPhoneCmdParamRingTone@@QBEHXZ @ 17 NONAME ; int TPhoneCmdParamRingTone::RingingType(void) const - ?Remove@CPhoneRecoverySystem@@SAXH@Z @ 18 NONAME ; void CPhoneRecoverySystem::Remove(int) - ??0TPhoneCmdParamKeyEvent@@QAE@XZ @ 19 NONAME ; TPhoneCmdParamKeyEvent::TPhoneCmdParamKeyEvent(void) - ?SetPhoneEngine@CPhoneLogger@@QAEXPAVMPEPhoneModel@@@Z @ 20 NONAME ; void CPhoneLogger::SetPhoneEngine(class MPEPhoneModel *) - ?SetSendKeyEnabled@TPhoneCmdParamQuery@@QAEXH@Z @ 21 NONAME ; void TPhoneCmdParamQuery::SetSendKeyEnabled(int) - ?Pointer@TPhoneCmdParamPointer@@QBEPAXXZ @ 22 NONAME ; void * TPhoneCmdParamPointer::Pointer(void) const - ?SetCallerText@TPhoneCmdParamCallHeaderData@@QAEXABVTDesC16@@@Z @ 23 NONAME ; void TPhoneCmdParamCallHeaderData::SetCallerText(class TDesC16 const &) - ?Line2@TPhoneCmdParamIncallIndicatorData@@QBEHXZ @ 24 NONAME ; int TPhoneCmdParamIncallIndicatorData::Line2(void) const - ?Text@TPhoneCmdParamGlobalNote@@QBEABVTDesC16@@XZ @ 25 NONAME ; class TDesC16 const & TPhoneCmdParamGlobalNote::Text(void) const - ?RecoverNow@CPhoneRecoverySystem@@QAEHHCH@Z @ 26 NONAME ; int CPhoneRecoverySystem::RecoverNow(int, signed char, int) - ?LogMsgFromControlToView@CPhoneLogger@@QAEXHH@Z @ 27 NONAME ; void CPhoneLogger::LogMsgFromControlToView(int, int) - ??0TPhoneCmdParamBitmap@@QAE@XZ @ 28 NONAME ; TPhoneCmdParamBitmap::TPhoneCmdParamBitmap(void) - ?NumberType@TPhoneCmdParamSpeedDial@@QAE?AW4TPhoneNumberType@@XZ @ 29 NONAME ; enum TPhoneNumberType TPhoneCmdParamSpeedDial::NumberType(void) - ?SetHasThumbnail@TPhoneCmdParamCallHeaderData@@QAEXH@Z @ 30 NONAME ; void TPhoneCmdParamCallHeaderData::SetHasThumbnail(int) - ?Text@TPhoneCmdParamNote@@QBEABVTDesC16@@XZ @ 31 NONAME ; class TDesC16 const & TPhoneCmdParamNote::Text(void) const - ??1CPhoneMethodLogger@@UAE@XZ @ 32 NONAME ; CPhoneMethodLogger::~CPhoneMethodLogger(void) - ?WaitForReady@TPhoneCmdParamGlobalNote@@QBEHXZ @ 33 NONAME ; int TPhoneCmdParamGlobalNote::WaitForReady(void) const - ?MaskBitmap@TPhoneCmdParamBitmap@@QBEPAVCFbsBitmap@@XZ @ 34 NONAME ; class CFbsBitmap * TPhoneCmdParamBitmap::MaskBitmap(void) const - ?IsScreenLocked@CPhoneStorage@@UAEHXZ @ 35 NONAME ; int CPhoneStorage::IsScreenLocked(void) - ?SetText@TPhoneCmdParamGlobalNote@@QAEXABVTDesC16@@@Z @ 36 NONAME ; void TPhoneCmdParamGlobalNote::SetText(class TDesC16 const &) - ?AddLibraryL@CPhoneLibraryContainer@@QAEXABVRLibrary@@@Z @ 37 NONAME ; void CPhoneLibraryContainer::AddLibraryL(class RLibrary const &) - ??1CPhoneResourceResolverBase@@UAE@XZ @ 38 NONAME ; CPhoneResourceResolverBase::~CPhoneResourceResolverBase(void) - ?ResetBlockedKeysList@CPhoneStorage@@UAEXXZ @ 39 NONAME ; void CPhoneStorage::ResetBlockedKeysList(void) - ?SetInt@CPhoneCenRepProxy@@QAEHABVTUid@@IH@Z @ 40 NONAME ; int CPhoneCenRepProxy::SetInt(class TUid const &, unsigned int, int) - ?GetCustomCommandForTimeOut@TPhoneCmdParamQuery@@QBEHAAH@Z @ 41 NONAME ; int TPhoneCmdParamQuery::GetCustomCommandForTimeOut(int &) const - ?ParamId@TPhoneCommandParam@@QBE?AW4TPhoneParamId@1@XZ @ 42 NONAME ; enum TPhoneCommandParam::TPhoneParamId TPhoneCommandParam::ParamId(void) const - ?SetString@CPhoneCenRepProxy@@QAEHABVTUid@@IABVTDesC16@@@Z @ 43 NONAME ; int CPhoneCenRepProxy::SetString(class TUid const &, unsigned int, class TDesC16 const &) - ?Line2@TPhoneCmdParamCallHeaderData@@QBEHXZ @ 44 NONAME ; int TPhoneCmdParamCallHeaderData::Line2(void) const - ??1CPhoneTimer@@UAE@XZ @ 45 NONAME ; CPhoneTimer::~CPhoneTimer(void) - ?LogMsgFromPEToPhoneUIEnd@CPhoneLogger@@QAEXH@Z @ 46 NONAME ; void CPhoneLogger::LogMsgFromPEToPhoneUIEnd(int) - ?DialerController@TPhoneCmdParamCustomDialer@@QAEPAVMPhoneDialerController@@XZ @ 47 NONAME ; class MPhoneDialerController * TPhoneCmdParamCustomDialer::DialerController(void) - ?Type@TPhoneCmdParamGlobalNote@@QBE?AW4TAknGlobalNoteType@@XZ @ 48 NONAME ; enum TAknGlobalNoteType TPhoneCmdParamGlobalNote::Type(void) const - ?SetMultipleInstances@TPhoneCmdParamAppInfo@@QAEXH@Z @ 49 NONAME ; void TPhoneCmdParamAppInfo::SetMultipleInstances(int) - ?Tone@TPhoneCmdParamGlobalNote@@QBEHXZ @ 50 NONAME ; int TPhoneCmdParamGlobalNote::Tone(void) const - ?ChangePropertyValue@CPhonePubSubProxy@@QAEXABVTUid@@IH@Z @ 51 NONAME ; void CPhonePubSubProxy::ChangePropertyValue(class TUid const &, unsigned int, int) - ?SetThumbnail@TPhoneCmdParamCallHeaderData@@QAEXPAVCFbsBitmap@@@Z @ 52 NONAME ; void TPhoneCmdParamCallHeaderData::SetThumbnail(class CFbsBitmap *) - ?SetCbaCommandMapping@TPhoneCmdParamQuery@@QAEXHH@Z @ 53 NONAME ; void TPhoneCmdParamQuery::SetCbaCommandMapping(int, int) - ?EventCode@TPhoneCmdParamKeyEvent@@QBE?AW4TEventCode@@XZ @ 54 NONAME ; enum TEventCode TPhoneCmdParamKeyEvent::EventCode(void) const - ?KeyEvent@TPhoneCmdParamKeyEvent@@QBE?BUTKeyEvent@@XZ @ 55 NONAME ; struct TKeyEvent const TPhoneCmdParamKeyEvent::KeyEvent(void) const - ?SetDataText@TPhoneCmdParamQuery@@QAEXPAVTDes16@@@Z @ 56 NONAME ; void TPhoneCmdParamQuery::SetDataText(class TDes16 *) - ??0TPhoneCmdParamAppInfo@@QAE@XZ @ 57 NONAME ; TPhoneCmdParamAppInfo::TPhoneCmdParamAppInfo(void) - ?LittleBubbleVisible@TPhoneCmdParamIncallIndicatorData@@QBEHXZ @ 58 NONAME ; int TPhoneCmdParamIncallIndicatorData::LittleBubbleVisible(void) const - ?SetCallState@TPhoneCmdParamIncallIndicatorData@@QAEXH@Z @ 59 NONAME ; void TPhoneCmdParamIncallIndicatorData::SetCallState(int) - ?GetString@CPhoneCenRepProxy@@QBEHABVTUid@@IAAVTDes16@@@Z @ 60 NONAME ; int CPhoneCenRepProxy::GetString(class TUid const &, unsigned int, class TDes16 &) const - ?ResourceId@TPhoneCmdParamProgressNote@@QBEHXZ @ 61 NONAME ; int TPhoneCmdParamProgressNote::ResourceId(void) const - ?CallId@TPhoneCmdParamCallStateData@@QBEHXZ @ 62 NONAME ; int TPhoneCmdParamCallStateData::CallId(void) const - ?NotifyChangeL@CPhoneCenRepProxy@@QAEXABVTUid@@IPAVMPhoneCenRepObserver@@@Z @ 63 NONAME ; void CPhoneCenRepProxy::NotifyChangeL(class TUid const &, unsigned int, class MPhoneCenRepObserver *) - ?SetResourceId@TPhoneCmdParamDynMenu@@QAEXH@Z @ 64 NONAME ; void TPhoneCmdParamDynMenu::SetResourceId(int) - ?Validate@CPhoneKeys@@SAHABVTDesC16@@@Z @ 65 NONAME ; int CPhoneKeys::Validate(class TDesC16 const &) - ??0TPhoneCmdParamKeyCapture@@QAE@XZ @ 66 NONAME ; TPhoneCmdParamKeyCapture::TPhoneCmdParamKeyCapture(void) - ?SetResourceId@TPhoneCmdParamNote@@QAEXH@Z @ 67 NONAME ; void TPhoneCmdParamNote::SetResourceId(int) - ?LogMsgFromPEToPhoneUI@CPhoneLogger@@QAEXHH@Z @ 68 NONAME ; void CPhoneLogger::LogMsgFromPEToPhoneUI(int, int) - ??0TPhoneCmdParamProgressNote@@QAE@XZ @ 69 NONAME ; TPhoneCmdParamProgressNote::TPhoneCmdParamProgressNote(void) - ?CallState@TPhoneCmdParamCallStateData@@QBEHXZ @ 70 NONAME ; int TPhoneCmdParamCallStateData::CallState(void) const - ?SetPointer@TPhoneCmdParamPointer@@QAEXPAX@Z @ 71 NONAME ; void TPhoneCmdParamPointer::SetPointer(void *) - ??1CPhoneCenRepProxy@@UAE@XZ @ 72 NONAME ; CPhoneCenRepProxy::~CPhoneCenRepProxy(void) - ?SetEventCode@TPhoneCmdParamKeyEvent@@QAEXW4TEventCode@@@Z @ 73 NONAME ; void TPhoneCmdParamKeyEvent::SetEventCode(enum TEventCode) - ?WaitTime@TPhoneCmdParamProgressNote@@QBE?AVTTimeIntervalMicroSeconds32@@XZ @ 74 NONAME ; class TTimeIntervalMicroSeconds32 TPhoneCmdParamProgressNote::WaitTime(void) const - ?SetParam@TPhoneCmdParamAppInfo@@QAEXABVTDesC8@@@Z @ 75 NONAME ; void TPhoneCmdParamAppInfo::SetParam(class TDesC8 const &) - ??0TPhoneCmdParamPointer@@QAE@XZ @ 76 NONAME ; TPhoneCmdParamPointer::TPhoneCmdParamPointer(void) - ??0TPhoneCmdParamGlobalNote@@QAE@XZ @ 77 NONAME ; TPhoneCmdParamGlobalNote::TPhoneCmdParamGlobalNote(void) - ?CallType@TPhoneCmdParamCallHeaderData@@QBEHXZ @ 78 NONAME ; int TPhoneCmdParamCallHeaderData::CallType(void) const - ?SetCiphering@TPhoneCmdParamEmergencyCallHeaderData@@QAEXH@Z @ 79 NONAME ; void TPhoneCmdParamEmergencyCallHeaderData::SetCiphering(int) - ?SetTone@TPhoneCmdParamNote@@QAEXW4TTone@CAknNoteDialog@@@Z @ 80 NONAME ; void TPhoneCmdParamNote::SetTone(enum CAknNoteDialog::TTone) - ?SetCustomCommandForTimeOut@TPhoneCmdParamQuery@@QAEXH@Z @ 81 NONAME ; void TPhoneCmdParamQuery::SetCustomCommandForTimeOut(int) - ?IsBTAccAvailable@TPhoneCmdParamAudioAvailability@@QBEHXZ @ 82 NONAME ; int TPhoneCmdParamAudioAvailability::IsBTAccAvailable(void) const - ?NewL@CPhoneStorage@@SAPAV1@XZ @ 83 NONAME ; class CPhoneStorage * CPhoneStorage::NewL(void) - ?CNAPTextClippingDirection@TPhoneCmdParamCallHeaderData@@QBE?AW4TPhoneTextClippingDirection@1@XZ @ 84 NONAME ; enum TPhoneCmdParamCallHeaderData::TPhoneTextClippingDirection TPhoneCmdParamCallHeaderData::CNAPTextClippingDirection(void) const - ?Timeout@TPhoneCmdParamNote@@QBE?AW4TTimeout@CAknNoteDialog@@XZ @ 85 NONAME ; enum CAknNoteDialog::TTimeout TPhoneCmdParamNote::Timeout(void) const - ?Instance@CPhoneRecoverySystem@@SAPAV1@XZ @ 86 NONAME ; class CPhoneRecoverySystem * CPhoneRecoverySystem::Instance(void) - ?CancelTimer@CPhoneTimer@@QAEXXZ @ 87 NONAME ; void CPhoneTimer::CancelTimer(void) - ?NewL@CPhoneTimer@@SAPAV1@H@Z @ 88 NONAME ; class CPhoneTimer * CPhoneTimer::NewL(int) - ?GetInt@CPhoneCenRepProxy@@QBEHABVTUid@@IAAH@Z @ 89 NONAME ; int CPhoneCenRepProxy::GetInt(class TUid const &, unsigned int, int &) const - ?SetTextToSay@TPhoneCmdParamRingTone@@QAEXABVTDesC16@@@Z @ 90 NONAME ; void TPhoneCmdParamRingTone::SetTextToSay(class TDesC16 const &) - ?SetCallState@TPhoneCmdParamCallHeaderData@@QAEXH@Z @ 91 NONAME ; void TPhoneCmdParamCallHeaderData::SetCallState(int) - ?ContentCba@TPhoneCmdParamQuery@@QBEHXZ @ 92 NONAME ; int TPhoneCmdParamQuery::ContentCba(void) const - ?SetTextResourceId@TPhoneCmdParamGlobalNote@@QAEXH@Z @ 93 NONAME ; void TPhoneCmdParamGlobalNote::SetTextResourceId(int) - ??0TPhoneCmdParamDynMenu@@QAE@XZ @ 94 NONAME ; TPhoneCmdParamDynMenu::TPhoneCmdParamDynMenu(void) - ?CancelAllNotifications@CPhonePubSubProxy@@SAXPAVMPhonePubSubObserver@@@Z @ 95 NONAME ; void CPhonePubSubProxy::CancelAllNotifications(class MPhonePubSubObserver *) - ??0TPhoneCommandParam@@QAE@XZ @ 96 NONAME ; TPhoneCommandParam::TPhoneCommandParam(void) - ?SetCLIText@TPhoneCmdParamCallHeaderData@@QAEXABVTDesC16@@W4TPhoneTextClippingDirection@1@@Z @ 97 NONAME ; void TPhoneCmdParamCallHeaderData::SetCLIText(class TDesC16 const &, enum TPhoneCmdParamCallHeaderData::TPhoneTextClippingDirection) - ??1CPhoneLogger@@UAE@XZ @ 98 NONAME ; CPhoneLogger::~CPhoneLogger(void) - ?Softkeys@TPhoneCmdParamGlobalNote@@QBEHXZ @ 99 NONAME ; int TPhoneCmdParamGlobalNote::Softkeys(void) const - ?SetCallState@TPhoneCmdParamCallStateData@@QAEXH@Z @ 100 NONAME ; void TPhoneCmdParamCallStateData::SetCallState(int) - ?CallerText@TPhoneCmdParamCallHeaderData@@QBEABVTDesC16@@XZ @ 101 NONAME ; class TDesC16 const & TPhoneCmdParamCallHeaderData::CallerText(void) const - ?Diverted@TPhoneCmdParamCallHeaderData@@QBEHXZ @ 102 NONAME ; int TPhoneCmdParamCallHeaderData::Diverted(void) const - ?String@TPhoneCmdParamString@@QAEPAVTPtr16@@XZ @ 103 NONAME ; class TPtr16 * TPhoneCmdParamString::String(void) - ?SetKey@TPhoneCmdParamKeyCapture@@QAEXW4TStdScanCode@@@Z @ 104 NONAME ; void TPhoneCmdParamKeyCapture::SetKey(enum TStdScanCode) - ?IsExtraChar@CPhoneKeys@@SAHH@Z @ 105 NONAME ; int CPhoneKeys::IsExtraChar(int) - ?SetDynMenu@TPhoneCmdParamDynMenu@@QAEXPAX@Z @ 106 NONAME ; void TPhoneCmdParamDynMenu::SetDynMenu(void *) - ?IsSecondHashKey@CPhoneKeys@@SAHABVTDes16@@@Z @ 107 NONAME ; int CPhoneKeys::IsSecondHashKey(class TDes16 const &) - ?SetCallerImageStatus@TPhoneCmdParamRingTone@@QAEXH@Z @ 108 NONAME ; void TPhoneCmdParamRingTone::SetCallerImageStatus(int) - ?GetReal@CPhoneCenRepProxy@@QBEHABVTUid@@IAAN@Z @ 109 NONAME ; int CPhoneCenRepProxy::GetReal(class TUid const &, unsigned int, double &) const - ?SetShortLabelText@TPhoneCmdParamCallHeaderData@@QAEXABVTDesC16@@@Z @ 110 NONAME ; void TPhoneCmdParamCallHeaderData::SetShortLabelText(class TDesC16 const &) - ?SetDialerController@TPhoneCmdParamCustomDialer@@QAEXPAVMPhoneDialerController@@@Z @ 111 NONAME ; void TPhoneCmdParamCustomDialer::SetDialerController(class MPhoneDialerController *) - ?RingTone@TPhoneCmdParamRingTone@@QBEABVTDesC16@@XZ @ 112 NONAME ; class TDesC16 const & TPhoneCmdParamRingTone::RingTone(void) const - ?TimeOut@TPhoneCmdParamQuery@@QBEHXZ @ 113 NONAME ; int TPhoneCmdParamQuery::TimeOut(void) const - ?ShortLabelText@TPhoneCmdParamCallHeaderData@@QBEABVTDesC16@@XZ @ 114 NONAME ; class TDesC16 const & TPhoneCmdParamCallHeaderData::ShortLabelText(void) const - ?SetInteger@TPhoneCmdParamInteger@@QAEXH@Z @ 115 NONAME ; void TPhoneCmdParamInteger::SetInteger(int) - ?SetMaskBitmap@TPhoneCmdParamBitmap@@QAEXPAVCFbsBitmap@@@Z @ 116 NONAME ; void TPhoneCmdParamBitmap::SetMaskBitmap(class CFbsBitmap *) - ?SetTimeout@TPhoneCmdParamNote@@QAEXW4TTimeout@CAknNoteDialog@@@Z @ 117 NONAME ; void TPhoneCmdParamNote::SetTimeout(enum CAknNoteDialog::TTimeout) - ?IsBlockedKeysListEmpty@CPhoneStorage@@UAEHXZ @ 118 NONAME ; int CPhoneStorage::IsBlockedKeysListEmpty(void) - ?SetCustomMessage@TPhoneCmdParamAppInfo@@QAEXABVTDesC8@@@Z @ 119 NONAME ; void TPhoneCmdParamAppInfo::SetCustomMessage(class TDesC8 const &) - ?BaseConstructL@CPhoneResourceResolverBase@@QAEXXZ @ 120 NONAME ; void CPhoneResourceResolverBase::BaseConstructL(void) - ?SetTextResourceId@TPhoneCmdParamNote@@QAEXH@Z @ 121 NONAME ; void TPhoneCmdParamNote::SetTextResourceId(int) - ?SetString@TPhoneCmdParamString@@QAEXPAVTPtr16@@@Z @ 122 NONAME ; void TPhoneCmdParamString::SetString(class TPtr16 *) - ?SetAppUid@TPhoneCmdParamAppInfo@@QAEXABVTUid@@@Z @ 123 NONAME ; void TPhoneCmdParamAppInfo::SetAppUid(class TUid const &) - ?SetBTAccAvailable@TPhoneCmdParamAudioAvailability@@QAEXH@Z @ 124 NONAME ; void TPhoneCmdParamAudioAvailability::SetBTAccAvailable(int) - ?IsTelephonyFeatureSupported@CPhoneCenRepProxy@@QAEHH@Z @ 125 NONAME ; int CPhoneCenRepProxy::IsTelephonyFeatureSupported(int) - ?CallImageThemeFilePath@CPhoneCallThemeMonitor@@QBE?AVTPtrC16@@XZ @ 126 NONAME ; class TPtrC16 CPhoneCallThemeMonitor::CallImageThemeFilePath(void) const - ?HasThumbnail@TPhoneCmdParamCallHeaderData@@QBEHXZ @ 127 NONAME ; int TPhoneCmdParamCallHeaderData::HasThumbnail(void) const - ?ClearBlackListNow@CPhoneClearBlacklist@@QAEXXZ @ 128 NONAME ; void CPhoneClearBlacklist::ClearBlackListNow(void) - ?SetCipheringIndicatorAllowed@TPhoneCmdParamEmergencyCallHeaderData@@QAEXH@Z @ 129 NONAME ; void TPhoneCmdParamEmergencyCallHeaderData::SetCipheringIndicatorAllowed(int) - ?SetCommandParamId@TPhoneCmdParamQuery@@QAEXW4TPhoneParamId@TPhoneCommandParam@@@Z @ 130 NONAME ; void TPhoneCmdParamQuery::SetCommandParamId(enum TPhoneCommandParam::TPhoneParamId) - ??0TPhoneCmdParamEmergencyCallHeaderData@@QAE@XZ @ 131 NONAME ; TPhoneCmdParamEmergencyCallHeaderData::TPhoneCmdParamEmergencyCallHeaderData(void) - ?After@CPhoneTimer@@QAEXVTTimeIntervalMicroSeconds32@@PAVMPhoneTimer@@@Z @ 132 NONAME ; void CPhoneTimer::After(class TTimeIntervalMicroSeconds32, class MPhoneTimer *) - ?NewL@CPhoneLibraryContainer@@SAPAV1@XZ @ 133 NONAME ; class CPhoneLibraryContainer * CPhoneLibraryContainer::NewL(void) - ?CreateL@CPhoneClearBlacklist@@SAPAV1@AAVRWsSession@@ABVRWindowBase@@@Z @ 134 NONAME ; class CPhoneClearBlacklist * CPhoneClearBlacklist::CreateL(class RWsSession &, class RWindowBase const &) - ??1CPhoneStorage@@UAE@XZ @ 135 NONAME ; CPhoneStorage::~CPhoneStorage(void) - ?SetVolume@TPhoneCmdParamRingTone@@QAEXH@Z @ 136 NONAME ; void TPhoneCmdParamRingTone::SetVolume(int) - ??0TPhoneCmdParamString@@QAE@XZ @ 137 NONAME ; TPhoneCmdParamString::TPhoneCmdParamString(void) - ?SetContactLink@TPhoneCmdParamCallHeaderData@@QAEXABVTDesC8@@@Z @ 138 NONAME ; void TPhoneCmdParamCallHeaderData::SetContactLink(class TDesC8 const &) - ??4TPhoneCmdParamQuery@@QAEAAV0@ABV0@@Z @ 139 NONAME ; class TPhoneCmdParamQuery & TPhoneCmdParamQuery::operator=(class TPhoneCmdParamQuery const &) - ??0TPhoneCmdParamAudioAvailability@@QAE@XZ @ 140 NONAME ; TPhoneCmdParamAudioAvailability::TPhoneCmdParamAudioAvailability(void) - ?GetBlockedKeyList@CPhoneStorage@@UBEABV?$RArray@H@@XZ @ 141 NONAME ; class RArray const & CPhoneStorage::GetBlockedKeyList(void) const + ?CLIText@TPhoneCmdParamCallHeaderData@@QBEABVTDesC16@@XZ @ 14 NONAME ; class TDesC16 const & TPhoneCmdParamCallHeaderData::CLIText(void) const + ??0CPhoneLogger@@QAE@VTUid@@@Z @ 15 NONAME ; CPhoneLogger::CPhoneLogger(class TUid) + ?RingingType@TPhoneCmdParamRingTone@@QBEHXZ @ 16 NONAME ; int TPhoneCmdParamRingTone::RingingType(void) const + ?Remove@CPhoneRecoverySystem@@SAXH@Z @ 17 NONAME ; void CPhoneRecoverySystem::Remove(int) + ??0TPhoneCmdParamKeyEvent@@QAE@XZ @ 18 NONAME ; TPhoneCmdParamKeyEvent::TPhoneCmdParamKeyEvent(void) + ?SetPhoneEngine@CPhoneLogger@@QAEXPAVMPEPhoneModel@@@Z @ 19 NONAME ; void CPhoneLogger::SetPhoneEngine(class MPEPhoneModel *) + ?SetSendKeyEnabled@TPhoneCmdParamQuery@@QAEXH@Z @ 20 NONAME ; void TPhoneCmdParamQuery::SetSendKeyEnabled(int) + ?Pointer@TPhoneCmdParamPointer@@QBEPAXXZ @ 21 NONAME ; void * TPhoneCmdParamPointer::Pointer(void) const + ?SetCallerText@TPhoneCmdParamCallHeaderData@@QAEXABVTDesC16@@@Z @ 22 NONAME ; void TPhoneCmdParamCallHeaderData::SetCallerText(class TDesC16 const &) + ?Line2@TPhoneCmdParamIncallIndicatorData@@QBEHXZ @ 23 NONAME ; int TPhoneCmdParamIncallIndicatorData::Line2(void) const + ?Text@TPhoneCmdParamGlobalNote@@QBEABVTDesC16@@XZ @ 24 NONAME ; class TDesC16 const & TPhoneCmdParamGlobalNote::Text(void) const + ?RecoverNow@CPhoneRecoverySystem@@QAEHHCH@Z @ 25 NONAME ; int CPhoneRecoverySystem::RecoverNow(int, signed char, int) + ?LogMsgFromControlToView@CPhoneLogger@@QAEXHH@Z @ 26 NONAME ; void CPhoneLogger::LogMsgFromControlToView(int, int) + ??0TPhoneCmdParamBitmap@@QAE@XZ @ 27 NONAME ; TPhoneCmdParamBitmap::TPhoneCmdParamBitmap(void) + ?SetHasThumbnail@TPhoneCmdParamCallHeaderData@@QAEXH@Z @ 28 NONAME ; void TPhoneCmdParamCallHeaderData::SetHasThumbnail(int) + ?Text@TPhoneCmdParamNote@@QBEABVTDesC16@@XZ @ 29 NONAME ; class TDesC16 const & TPhoneCmdParamNote::Text(void) const + ??1CPhoneMethodLogger@@UAE@XZ @ 30 NONAME ; CPhoneMethodLogger::~CPhoneMethodLogger(void) + ?WaitForReady@TPhoneCmdParamGlobalNote@@QBEHXZ @ 31 NONAME ; int TPhoneCmdParamGlobalNote::WaitForReady(void) const + ?MaskBitmap@TPhoneCmdParamBitmap@@QBEPAVCFbsBitmap@@XZ @ 32 NONAME ; class CFbsBitmap * TPhoneCmdParamBitmap::MaskBitmap(void) const + ?IsScreenLocked@CPhoneStorage@@UAEHXZ @ 33 NONAME ; int CPhoneStorage::IsScreenLocked(void) + ?SetText@TPhoneCmdParamGlobalNote@@QAEXABVTDesC16@@@Z @ 34 NONAME ; void TPhoneCmdParamGlobalNote::SetText(class TDesC16 const &) + ?AddLibraryL@CPhoneLibraryContainer@@QAEXABVRLibrary@@@Z @ 35 NONAME ; void CPhoneLibraryContainer::AddLibraryL(class RLibrary const &) + ??1CPhoneResourceResolverBase@@UAE@XZ @ 36 NONAME ; CPhoneResourceResolverBase::~CPhoneResourceResolverBase(void) + ?ResetBlockedKeysList@CPhoneStorage@@UAEXXZ @ 37 NONAME ; void CPhoneStorage::ResetBlockedKeysList(void) + ?SetInt@CPhoneCenRepProxy@@QAEHABVTUid@@IH@Z @ 38 NONAME ; int CPhoneCenRepProxy::SetInt(class TUid const &, unsigned int, int) + ?GetCustomCommandForTimeOut@TPhoneCmdParamQuery@@QBEHAAH@Z @ 39 NONAME ; int TPhoneCmdParamQuery::GetCustomCommandForTimeOut(int &) const + ?ParamId@TPhoneCommandParam@@QBE?AW4TPhoneParamId@1@XZ @ 40 NONAME ; enum TPhoneCommandParam::TPhoneParamId TPhoneCommandParam::ParamId(void) const + ?SetString@CPhoneCenRepProxy@@QAEHABVTUid@@IABVTDesC16@@@Z @ 41 NONAME ; int CPhoneCenRepProxy::SetString(class TUid const &, unsigned int, class TDesC16 const &) + ?Line2@TPhoneCmdParamCallHeaderData@@QBEHXZ @ 42 NONAME ; int TPhoneCmdParamCallHeaderData::Line2(void) const + ??1CPhoneTimer@@UAE@XZ @ 43 NONAME ; CPhoneTimer::~CPhoneTimer(void) + ?LogMsgFromPEToPhoneUIEnd@CPhoneLogger@@QAEXH@Z @ 44 NONAME ; void CPhoneLogger::LogMsgFromPEToPhoneUIEnd(int) + ?DialerController@TPhoneCmdParamCustomDialer@@QAEPAVMPhoneDialerController@@XZ @ 45 NONAME ; class MPhoneDialerController * TPhoneCmdParamCustomDialer::DialerController(void) + ?Type@TPhoneCmdParamGlobalNote@@QBE?AW4TAknGlobalNoteType@@XZ @ 46 NONAME ; enum TAknGlobalNoteType TPhoneCmdParamGlobalNote::Type(void) const + ?SetMultipleInstances@TPhoneCmdParamAppInfo@@QAEXH@Z @ 47 NONAME ; void TPhoneCmdParamAppInfo::SetMultipleInstances(int) + ?Tone@TPhoneCmdParamGlobalNote@@QBEHXZ @ 48 NONAME ; int TPhoneCmdParamGlobalNote::Tone(void) const + ?ChangePropertyValue@CPhonePubSubProxy@@QAEXABVTUid@@IH@Z @ 49 NONAME ; void CPhonePubSubProxy::ChangePropertyValue(class TUid const &, unsigned int, int) + ?SetThumbnail@TPhoneCmdParamCallHeaderData@@QAEXPAVCFbsBitmap@@@Z @ 50 NONAME ; void TPhoneCmdParamCallHeaderData::SetThumbnail(class CFbsBitmap *) + ?SetCbaCommandMapping@TPhoneCmdParamQuery@@QAEXHH@Z @ 51 NONAME ; void TPhoneCmdParamQuery::SetCbaCommandMapping(int, int) + ?EventCode@TPhoneCmdParamKeyEvent@@QBE?AW4TEventCode@@XZ @ 52 NONAME ; enum TEventCode TPhoneCmdParamKeyEvent::EventCode(void) const + ?KeyEvent@TPhoneCmdParamKeyEvent@@QBE?BUTKeyEvent@@XZ @ 53 NONAME ; struct TKeyEvent const TPhoneCmdParamKeyEvent::KeyEvent(void) const + ?SetDataText@TPhoneCmdParamQuery@@QAEXPAVTDes16@@@Z @ 54 NONAME ; void TPhoneCmdParamQuery::SetDataText(class TDes16 *) + ??0TPhoneCmdParamAppInfo@@QAE@XZ @ 55 NONAME ; TPhoneCmdParamAppInfo::TPhoneCmdParamAppInfo(void) + ?LittleBubbleVisible@TPhoneCmdParamIncallIndicatorData@@QBEHXZ @ 56 NONAME ; int TPhoneCmdParamIncallIndicatorData::LittleBubbleVisible(void) const + ?SetCallState@TPhoneCmdParamIncallIndicatorData@@QAEXH@Z @ 57 NONAME ; void TPhoneCmdParamIncallIndicatorData::SetCallState(int) + ?GetString@CPhoneCenRepProxy@@QBEHABVTUid@@IAAVTDes16@@@Z @ 58 NONAME ; int CPhoneCenRepProxy::GetString(class TUid const &, unsigned int, class TDes16 &) const + ?ResourceId@TPhoneCmdParamProgressNote@@QBEHXZ @ 59 NONAME ; int TPhoneCmdParamProgressNote::ResourceId(void) const + ?CallId@TPhoneCmdParamCallStateData@@QBEHXZ @ 60 NONAME ; int TPhoneCmdParamCallStateData::CallId(void) const + ?NotifyChangeL@CPhoneCenRepProxy@@QAEXABVTUid@@IPAVMPhoneCenRepObserver@@@Z @ 61 NONAME ; void CPhoneCenRepProxy::NotifyChangeL(class TUid const &, unsigned int, class MPhoneCenRepObserver *) + ?SetResourceId@TPhoneCmdParamDynMenu@@QAEXH@Z @ 62 NONAME ; void TPhoneCmdParamDynMenu::SetResourceId(int) + ?Validate@CPhoneKeys@@SAHABVTDesC16@@@Z @ 63 NONAME ; int CPhoneKeys::Validate(class TDesC16 const &) + ??0TPhoneCmdParamKeyCapture@@QAE@XZ @ 64 NONAME ; TPhoneCmdParamKeyCapture::TPhoneCmdParamKeyCapture(void) + ?SetResourceId@TPhoneCmdParamNote@@QAEXH@Z @ 65 NONAME ; void TPhoneCmdParamNote::SetResourceId(int) + ?LogMsgFromPEToPhoneUI@CPhoneLogger@@QAEXHH@Z @ 66 NONAME ; void CPhoneLogger::LogMsgFromPEToPhoneUI(int, int) + ??0TPhoneCmdParamProgressNote@@QAE@XZ @ 67 NONAME ; TPhoneCmdParamProgressNote::TPhoneCmdParamProgressNote(void) + ?CallState@TPhoneCmdParamCallStateData@@QBEHXZ @ 68 NONAME ; int TPhoneCmdParamCallStateData::CallState(void) const + ?SetPointer@TPhoneCmdParamPointer@@QAEXPAX@Z @ 69 NONAME ; void TPhoneCmdParamPointer::SetPointer(void *) + ??1CPhoneCenRepProxy@@UAE@XZ @ 70 NONAME ; CPhoneCenRepProxy::~CPhoneCenRepProxy(void) + ?SetEventCode@TPhoneCmdParamKeyEvent@@QAEXW4TEventCode@@@Z @ 71 NONAME ; void TPhoneCmdParamKeyEvent::SetEventCode(enum TEventCode) + ?WaitTime@TPhoneCmdParamProgressNote@@QBE?AVTTimeIntervalMicroSeconds32@@XZ @ 72 NONAME ; class TTimeIntervalMicroSeconds32 TPhoneCmdParamProgressNote::WaitTime(void) const + ?SetParam@TPhoneCmdParamAppInfo@@QAEXABVTDesC8@@@Z @ 73 NONAME ; void TPhoneCmdParamAppInfo::SetParam(class TDesC8 const &) + ??0TPhoneCmdParamPointer@@QAE@XZ @ 74 NONAME ; TPhoneCmdParamPointer::TPhoneCmdParamPointer(void) + ??0TPhoneCmdParamGlobalNote@@QAE@XZ @ 75 NONAME ; TPhoneCmdParamGlobalNote::TPhoneCmdParamGlobalNote(void) + ?CallType@TPhoneCmdParamCallHeaderData@@QBEHXZ @ 76 NONAME ; int TPhoneCmdParamCallHeaderData::CallType(void) const + ?SetCiphering@TPhoneCmdParamEmergencyCallHeaderData@@QAEXH@Z @ 77 NONAME ; void TPhoneCmdParamEmergencyCallHeaderData::SetCiphering(int) + ?SetTone@TPhoneCmdParamNote@@QAEXW4TTone@CAknNoteDialog@@@Z @ 78 NONAME ; void TPhoneCmdParamNote::SetTone(enum CAknNoteDialog::TTone) + ?SetCustomCommandForTimeOut@TPhoneCmdParamQuery@@QAEXH@Z @ 79 NONAME ; void TPhoneCmdParamQuery::SetCustomCommandForTimeOut(int) + ?IsBTAccAvailable@TPhoneCmdParamAudioAvailability@@QBEHXZ @ 80 NONAME ; int TPhoneCmdParamAudioAvailability::IsBTAccAvailable(void) const + ?NewL@CPhoneStorage@@SAPAV1@XZ @ 81 NONAME ; class CPhoneStorage * CPhoneStorage::NewL(void) + ?CNAPTextClippingDirection@TPhoneCmdParamCallHeaderData@@QBE?AW4TPhoneTextClippingDirection@1@XZ @ 82 NONAME ; enum TPhoneCmdParamCallHeaderData::TPhoneTextClippingDirection TPhoneCmdParamCallHeaderData::CNAPTextClippingDirection(void) const + ?Timeout@TPhoneCmdParamNote@@QBE?AW4TTimeout@CAknNoteDialog@@XZ @ 83 NONAME ; enum CAknNoteDialog::TTimeout TPhoneCmdParamNote::Timeout(void) const + ?Instance@CPhoneRecoverySystem@@SAPAV1@XZ @ 84 NONAME ; class CPhoneRecoverySystem * CPhoneRecoverySystem::Instance(void) + ?CancelTimer@CPhoneTimer@@QAEXXZ @ 85 NONAME ; void CPhoneTimer::CancelTimer(void) + ?NewL@CPhoneTimer@@SAPAV1@H@Z @ 86 NONAME ; class CPhoneTimer * CPhoneTimer::NewL(int) + ?GetInt@CPhoneCenRepProxy@@QBEHABVTUid@@IAAH@Z @ 87 NONAME ; int CPhoneCenRepProxy::GetInt(class TUid const &, unsigned int, int &) const + ?SetTextToSay@TPhoneCmdParamRingTone@@QAEXABVTDesC16@@@Z @ 88 NONAME ; void TPhoneCmdParamRingTone::SetTextToSay(class TDesC16 const &) + ?SetCallState@TPhoneCmdParamCallHeaderData@@QAEXH@Z @ 89 NONAME ; void TPhoneCmdParamCallHeaderData::SetCallState(int) + ?ContentCba@TPhoneCmdParamQuery@@QBEHXZ @ 90 NONAME ; int TPhoneCmdParamQuery::ContentCba(void) const + ?SetTextResourceId@TPhoneCmdParamGlobalNote@@QAEXH@Z @ 91 NONAME ; void TPhoneCmdParamGlobalNote::SetTextResourceId(int) + ??0TPhoneCmdParamDynMenu@@QAE@XZ @ 92 NONAME ; TPhoneCmdParamDynMenu::TPhoneCmdParamDynMenu(void) + ?CancelAllNotifications@CPhonePubSubProxy@@SAXPAVMPhonePubSubObserver@@@Z @ 93 NONAME ; void CPhonePubSubProxy::CancelAllNotifications(class MPhonePubSubObserver *) + ??0TPhoneCommandParam@@QAE@XZ @ 94 NONAME ; TPhoneCommandParam::TPhoneCommandParam(void) + ?SetCLIText@TPhoneCmdParamCallHeaderData@@QAEXABVTDesC16@@W4TPhoneTextClippingDirection@1@@Z @ 95 NONAME ; void TPhoneCmdParamCallHeaderData::SetCLIText(class TDesC16 const &, enum TPhoneCmdParamCallHeaderData::TPhoneTextClippingDirection) + ??1CPhoneLogger@@UAE@XZ @ 96 NONAME ; CPhoneLogger::~CPhoneLogger(void) + ?Softkeys@TPhoneCmdParamGlobalNote@@QBEHXZ @ 97 NONAME ; int TPhoneCmdParamGlobalNote::Softkeys(void) const + ?SetCallState@TPhoneCmdParamCallStateData@@QAEXH@Z @ 98 NONAME ; void TPhoneCmdParamCallStateData::SetCallState(int) + ?CallerText@TPhoneCmdParamCallHeaderData@@QBEABVTDesC16@@XZ @ 99 NONAME ; class TDesC16 const & TPhoneCmdParamCallHeaderData::CallerText(void) const + ?Diverted@TPhoneCmdParamCallHeaderData@@QBEHXZ @ 100 NONAME ; int TPhoneCmdParamCallHeaderData::Diverted(void) const + ?String@TPhoneCmdParamString@@QAEPAVTPtr16@@XZ @ 101 NONAME ; class TPtr16 * TPhoneCmdParamString::String(void) + ?SetKey@TPhoneCmdParamKeyCapture@@QAEXW4TStdScanCode@@@Z @ 102 NONAME ; void TPhoneCmdParamKeyCapture::SetKey(enum TStdScanCode) + ?IsExtraChar@CPhoneKeys@@SAHH@Z @ 103 NONAME ; int CPhoneKeys::IsExtraChar(int) + ?SetDynMenu@TPhoneCmdParamDynMenu@@QAEXPAX@Z @ 104 NONAME ; void TPhoneCmdParamDynMenu::SetDynMenu(void *) + ?IsSecondHashKey@CPhoneKeys@@SAHABVTDes16@@@Z @ 105 NONAME ; int CPhoneKeys::IsSecondHashKey(class TDes16 const &) + ?SetCallerImageStatus@TPhoneCmdParamRingTone@@QAEXH@Z @ 106 NONAME ; void TPhoneCmdParamRingTone::SetCallerImageStatus(int) + ?SetTimeout@TPhoneCmdParamGlobalNote@@QAEXH@Z @ 107 NONAME ; void TPhoneCmdParamGlobalNote::SetTimeout(int) + ?GetReal@CPhoneCenRepProxy@@QBEHABVTUid@@IAAN@Z @ 108 NONAME ; int CPhoneCenRepProxy::GetReal(class TUid const &, unsigned int, double &) const + ?SetShortLabelText@TPhoneCmdParamCallHeaderData@@QAEXABVTDesC16@@@Z @ 109 NONAME ; void TPhoneCmdParamCallHeaderData::SetShortLabelText(class TDesC16 const &) + ?SetDialerController@TPhoneCmdParamCustomDialer@@QAEXPAVMPhoneDialerController@@@Z @ 110 NONAME ; void TPhoneCmdParamCustomDialer::SetDialerController(class MPhoneDialerController *) + ?RingTone@TPhoneCmdParamRingTone@@QBEABVTDesC16@@XZ @ 111 NONAME ; class TDesC16 const & TPhoneCmdParamRingTone::RingTone(void) const + ?TimeOut@TPhoneCmdParamQuery@@QBEHXZ @ 112 NONAME ; int TPhoneCmdParamQuery::TimeOut(void) const + ?ShortLabelText@TPhoneCmdParamCallHeaderData@@QBEABVTDesC16@@XZ @ 113 NONAME ; class TDesC16 const & TPhoneCmdParamCallHeaderData::ShortLabelText(void) const + ?SetInteger@TPhoneCmdParamInteger@@QAEXH@Z @ 114 NONAME ; void TPhoneCmdParamInteger::SetInteger(int) + ?SetMaskBitmap@TPhoneCmdParamBitmap@@QAEXPAVCFbsBitmap@@@Z @ 115 NONAME ; void TPhoneCmdParamBitmap::SetMaskBitmap(class CFbsBitmap *) + ?SetTimeout@TPhoneCmdParamNote@@QAEXW4TTimeout@CAknNoteDialog@@@Z @ 116 NONAME ; void TPhoneCmdParamNote::SetTimeout(enum CAknNoteDialog::TTimeout) + ?IsBlockedKeysListEmpty@CPhoneStorage@@UAEHXZ @ 117 NONAME ; int CPhoneStorage::IsBlockedKeysListEmpty(void) + ?SetCustomMessage@TPhoneCmdParamAppInfo@@QAEXABVTDesC8@@@Z @ 118 NONAME ; void TPhoneCmdParamAppInfo::SetCustomMessage(class TDesC8 const &) + ?BaseConstructL@CPhoneResourceResolverBase@@QAEXXZ @ 119 NONAME ; void CPhoneResourceResolverBase::BaseConstructL(void) + ?SetTextResourceId@TPhoneCmdParamNote@@QAEXH@Z @ 120 NONAME ; void TPhoneCmdParamNote::SetTextResourceId(int) + ?SetString@TPhoneCmdParamString@@QAEXPAVTPtr16@@@Z @ 121 NONAME ; void TPhoneCmdParamString::SetString(class TPtr16 *) + ?SetAppUid@TPhoneCmdParamAppInfo@@QAEXABVTUid@@@Z @ 122 NONAME ; void TPhoneCmdParamAppInfo::SetAppUid(class TUid const &) + ?SetBTAccAvailable@TPhoneCmdParamAudioAvailability@@QAEXH@Z @ 123 NONAME ; void TPhoneCmdParamAudioAvailability::SetBTAccAvailable(int) + ?IsTelephonyFeatureSupported@CPhoneCenRepProxy@@QAEHH@Z @ 124 NONAME ; int CPhoneCenRepProxy::IsTelephonyFeatureSupported(int) + ?CallImageThemeFilePath@CPhoneCallThemeMonitor@@QBE?AVTPtrC16@@XZ @ 125 NONAME ; class TPtrC16 CPhoneCallThemeMonitor::CallImageThemeFilePath(void) const + ?HasThumbnail@TPhoneCmdParamCallHeaderData@@QBEHXZ @ 126 NONAME ; int TPhoneCmdParamCallHeaderData::HasThumbnail(void) const + ?ClearBlackListNow@CPhoneClearBlacklist@@QAEXXZ @ 127 NONAME ; void CPhoneClearBlacklist::ClearBlackListNow(void) + ?SetCipheringIndicatorAllowed@TPhoneCmdParamEmergencyCallHeaderData@@QAEXH@Z @ 128 NONAME ; void TPhoneCmdParamEmergencyCallHeaderData::SetCipheringIndicatorAllowed(int) + ?SetCommandParamId@TPhoneCmdParamQuery@@QAEXW4TPhoneParamId@TPhoneCommandParam@@@Z @ 129 NONAME ; void TPhoneCmdParamQuery::SetCommandParamId(enum TPhoneCommandParam::TPhoneParamId) + ??0TPhoneCmdParamEmergencyCallHeaderData@@QAE@XZ @ 130 NONAME ; TPhoneCmdParamEmergencyCallHeaderData::TPhoneCmdParamEmergencyCallHeaderData(void) + ?After@CPhoneTimer@@QAEXVTTimeIntervalMicroSeconds32@@PAVMPhoneTimer@@@Z @ 131 NONAME ; void CPhoneTimer::After(class TTimeIntervalMicroSeconds32, class MPhoneTimer *) + ?NewL@CPhoneLibraryContainer@@SAPAV1@XZ @ 132 NONAME ; class CPhoneLibraryContainer * CPhoneLibraryContainer::NewL(void) + ?CreateL@CPhoneClearBlacklist@@SAPAV1@AAVRWsSession@@ABVRWindowBase@@@Z @ 133 NONAME ; class CPhoneClearBlacklist * CPhoneClearBlacklist::CreateL(class RWsSession &, class RWindowBase const &) + ??1CPhoneStorage@@UAE@XZ @ 134 NONAME ; CPhoneStorage::~CPhoneStorage(void) + ?SetVolume@TPhoneCmdParamRingTone@@QAEXH@Z @ 135 NONAME ; void TPhoneCmdParamRingTone::SetVolume(int) + ??0TPhoneCmdParamString@@QAE@XZ @ 136 NONAME ; TPhoneCmdParamString::TPhoneCmdParamString(void) + ?SetContactLink@TPhoneCmdParamCallHeaderData@@QAEXABVTDesC8@@@Z @ 137 NONAME ; void TPhoneCmdParamCallHeaderData::SetContactLink(class TDesC8 const &) + ??4TPhoneCmdParamQuery@@QAEAAV0@ABV0@@Z @ 138 NONAME ; class TPhoneCmdParamQuery & TPhoneCmdParamQuery::operator=(class TPhoneCmdParamQuery const &) + ??0TPhoneCmdParamAudioAvailability@@QAE@XZ @ 139 NONAME ; TPhoneCmdParamAudioAvailability::TPhoneCmdParamAudioAvailability(void) + ?GetBlockedKeyList@CPhoneStorage@@UBEABV?$RArray@H@@XZ @ 140 NONAME ; class RArray const & CPhoneStorage::GetBlockedKeyList(void) const + ?Timeout@TPhoneCmdParamGlobalNote@@QBEHXZ @ 141 NONAME ; int TPhoneCmdParamGlobalNote::Timeout(void) const ??0TPhoneCmdParamRingTone@@QAE@XZ @ 142 NONAME ; TPhoneCmdParamRingTone::TPhoneCmdParamRingTone(void) ?Observer@TPhoneCmdParamNumberEntryObserver@@QAE?AVTCallBack@@XZ @ 143 NONAME ; class TCallBack TPhoneCmdParamNumberEntryObserver::Observer(void) ?SetSoftkeys@TPhoneCmdParamGlobalNote@@QAEXH@Z @ 144 NONAME ; void TPhoneCmdParamGlobalNote::SetSoftkeys(int) @@ -157,162 +157,151 @@ ?IsDtmfTone@CPhoneKeys@@SAHABUTKeyEvent@@W4TEventCode@@@Z @ 156 NONAME ; int CPhoneKeys::IsDtmfTone(struct TKeyEvent const &, enum TEventCode) ?SetMode@TPhoneCmdParamIncallIndicatorData@@QAEXH@Z @ 157 NONAME ; void TPhoneCmdParamIncallIndicatorData::SetMode(int) ?NewL@CPhoneCallThemeMonitor@@SAPAV1@XZ @ 158 NONAME ; class CPhoneCallThemeMonitor * CPhoneCallThemeMonitor::NewL(void) - ?SetPhoneNumber@TPhoneCmdParamSpeedDial@@QAEXPAVTPtr16@@@Z @ 159 NONAME ; void TPhoneCmdParamSpeedDial::SetPhoneNumber(class TPtr16 *) - ?SendKeyEnabled@TPhoneCmdParamQuery@@QBEHXZ @ 160 NONAME ; int TPhoneCmdParamQuery::SendKeyEnabled(void) const - ?SetNeedToEnableKeylock@CPhoneStorage@@UAEXH@Z @ 161 NONAME ; void CPhoneStorage::SetNeedToEnableKeylock(int) - ?Find@CPhoneCenRepProxy@@QBEHABVTUid@@KKAAV?$RArray@K@@@Z @ 162 NONAME ; int CPhoneCenRepProxy::Find(class TUid const &, unsigned long, unsigned long, class RArray &) const - ?SetLabelText@TPhoneCmdParamCallHeaderData@@QAEXABVTDesC16@@@Z @ 163 NONAME ; void TPhoneCmdParamCallHeaderData::SetLabelText(class TDesC16 const &) - ?CNAPText@TPhoneCmdParamCallHeaderData@@QBEABVTDesC16@@XZ @ 164 NONAME ; class TDesC16 const & TPhoneCmdParamCallHeaderData::CNAPText(void) const - ?SetOwnPhoneNumberText@TPhoneCmdParamEmergencyCallHeaderData@@QAEXABVTDesC16@@@Z @ 165 NONAME ; void TPhoneCmdParamEmergencyCallHeaderData::SetOwnPhoneNumberText(class TDesC16 const &) - ?Emergency@TPhoneCmdParamIncallIndicatorData@@QBEHXZ @ 166 NONAME ; int TPhoneCmdParamIncallIndicatorData::Emergency(void) const - ?AppUid@TPhoneCmdParamAppInfo@@QBE?AVTUid@@XZ @ 167 NONAME ; class TUid TPhoneCmdParamAppInfo::AppUid(void) const - ?CustomMessage@TPhoneCmdParamAppInfo@@QBEABVTDesC8@@XZ @ 168 NONAME ; class TDesC8 const & TPhoneCmdParamAppInfo::CustomMessage(void) const - ?QueryResourceId@TPhoneCmdParamQuery@@QBEHXZ @ 169 NONAME ; int TPhoneCmdParamQuery::QueryResourceId(void) const + ?SendKeyEnabled@TPhoneCmdParamQuery@@QBEHXZ @ 159 NONAME ; int TPhoneCmdParamQuery::SendKeyEnabled(void) const + ?SetNeedToEnableKeylock@CPhoneStorage@@UAEXH@Z @ 160 NONAME ; void CPhoneStorage::SetNeedToEnableKeylock(int) + ?Find@CPhoneCenRepProxy@@QBEHABVTUid@@KKAAV?$RArray@K@@@Z @ 161 NONAME ; int CPhoneCenRepProxy::Find(class TUid const &, unsigned long, unsigned long, class RArray &) const + ?SetLabelText@TPhoneCmdParamCallHeaderData@@QAEXABVTDesC16@@@Z @ 162 NONAME ; void TPhoneCmdParamCallHeaderData::SetLabelText(class TDesC16 const &) + ?CNAPText@TPhoneCmdParamCallHeaderData@@QBEABVTDesC16@@XZ @ 163 NONAME ; class TDesC16 const & TPhoneCmdParamCallHeaderData::CNAPText(void) const + ?SetOwnPhoneNumberText@TPhoneCmdParamEmergencyCallHeaderData@@QAEXABVTDesC16@@@Z @ 164 NONAME ; void TPhoneCmdParamEmergencyCallHeaderData::SetOwnPhoneNumberText(class TDesC16 const &) + ?Emergency@TPhoneCmdParamIncallIndicatorData@@QBEHXZ @ 165 NONAME ; int TPhoneCmdParamIncallIndicatorData::Emergency(void) const + ?AppUid@TPhoneCmdParamAppInfo@@QBE?AVTUid@@XZ @ 166 NONAME ; class TUid TPhoneCmdParamAppInfo::AppUid(void) const + ?CustomMessage@TPhoneCmdParamAppInfo@@QBEABVTDesC8@@XZ @ 167 NONAME ; class TDesC8 const & TPhoneCmdParamAppInfo::CustomMessage(void) const + ?QueryResourceId@TPhoneCmdParamQuery@@QBEHXZ @ 168 NONAME ; int TPhoneCmdParamQuery::QueryResourceId(void) const + ?NotifyChangeL@CPhonePubSubProxy@@QAEXABVTUid@@IPAVMPhonePubSubObserver@@@Z @ 169 NONAME ; void CPhonePubSubProxy::NotifyChangeL(class TUid const &, unsigned int, class MPhonePubSubObserver *) ?SetRingTone@TPhoneCmdParamRingTone@@QAEXABVTDesC16@@@Z @ 170 NONAME ; void TPhoneCmdParamRingTone::SetRingTone(class TDesC16 const &) - ?NotifyChangeL@CPhonePubSubProxy@@QAEXABVTUid@@IPAVMPhonePubSubObserver@@@Z @ 171 NONAME ; void CPhonePubSubProxy::NotifyChangeL(class TUid const &, unsigned int, class MPhonePubSubObserver *) - ?AppendBlockedKeysListL@CPhoneStorage@@UAEXW4TStdScanCode@@@Z @ 172 NONAME ; void CPhoneStorage::AppendBlockedKeysListL(enum TStdScanCode) - ?SetEmergency@TPhoneCmdParamIncallIndicatorData@@QAEXH@Z @ 173 NONAME ; void TPhoneCmdParamIncallIndicatorData::SetEmergency(int) - ?SetDefaultCba@TPhoneCmdParamQuery@@QAEXH@Z @ 174 NONAME ; void TPhoneCmdParamQuery::SetDefaultCba(int) - ?Type@TPhoneCmdParamTransEffect@@QBE?AW4TPhoneTransEffectType@@XZ @ 175 NONAME ; enum TPhoneTransEffectType TPhoneCmdParamTransEffect::Type(void) const - ??0TPhoneCmdParamSfiData@@QAE@XZ @ 176 NONAME ; TPhoneCmdParamSfiData::TPhoneCmdParamSfiData(void) - ??0TPhoneCmdParamCallHeaderData@@QAE@XZ @ 177 NONAME ; TPhoneCmdParamCallHeaderData::TPhoneCmdParamCallHeaderData(void) - ??1CPhoneClearBlacklist@@UAE@XZ @ 178 NONAME ; CPhoneClearBlacklist::~CPhoneClearBlacklist(void) - ?SetMute@TPhoneCmdParamIncallIndicatorData@@QAEXH@Z @ 179 NONAME ; void TPhoneCmdParamIncallIndicatorData::SetMute(int) - ?KeyCode@TPhoneCmdParamKeyCapture@@QBE?AW4TKeyCode@@XZ @ 180 NONAME ; enum TKeyCode TPhoneCmdParamKeyCapture::KeyCode(void) const - ?IsNumberKey@CPhoneKeys@@SAHABUTKeyEvent@@W4TEventCode@@@Z @ 181 NONAME ; int CPhoneKeys::IsNumberKey(struct TKeyEvent const &, enum TEventCode) - ?TextResourceId@TPhoneCmdParamGlobalNote@@QBEHXZ @ 182 NONAME ; int TPhoneCmdParamGlobalNote::TextResourceId(void) const - ?SetCiphering@TPhoneCmdParamCallHeaderData@@QAEXH@Z @ 183 NONAME ; void TPhoneCmdParamCallHeaderData::SetCiphering(int) - ?EnablePreconditionL@CPhoneRecoverySystem@@QAEXXZ @ 184 NONAME ; void CPhoneRecoverySystem::EnablePreconditionL(void) - ?AddL@CPhoneRecoverySystem@@QAEHVTCallBack@@CW4TRecoveryState@CTeleRecoverySystem@@@Z @ 185 NONAME ; int CPhoneRecoverySystem::AddL(class TCallBack, signed char, enum CTeleRecoverySystem::TRecoveryState) - ?SetLine2@TPhoneCmdParamIncallIndicatorData@@QAEXH@Z @ 186 NONAME ; void TPhoneCmdParamIncallIndicatorData::SetLine2(int) - ?SetAudioOutput@TPhoneCmdParamAudioOutput@@QAEXW4TPEAudioOutput@@@Z @ 187 NONAME ; void TPhoneCmdParamAudioOutput::SetAudioOutput(enum TPEAudioOutput) - ?HeaderText@TPhoneCmdParamEmergencyCallHeaderData@@QBEABVTDesC16@@XZ @ 188 NONAME ; class TDesC16 const & TPhoneCmdParamEmergencyCallHeaderData::HeaderText(void) const - ?CallImageThemeSettings@CPhoneCallThemeMonitor@@QBEHXZ @ 189 NONAME ; int CPhoneCallThemeMonitor::CallImageThemeSettings(void) const - ?SetLocation@TPhoneCmdParamSpeedDial@@QAEXH@Z @ 190 NONAME ; void TPhoneCmdParamSpeedDial::SetLocation(int) - ??0TPhoneCmdParamTransEffect@@QAE@XZ @ 191 NONAME ; TPhoneCmdParamTransEffect::TPhoneCmdParamTransEffect(void) - ?Number@TPhoneCmdParamSfiData@@QBEABVTDesC16@@XZ @ 192 NONAME ; class TDesC16 const & TPhoneCmdParamSfiData::Number(void) const - ?OwnPhoneNumberText@TPhoneCmdParamEmergencyCallHeaderData@@QBEABVTDesC16@@XZ @ 193 NONAME ; class TDesC16 const & TPhoneCmdParamEmergencyCallHeaderData::OwnPhoneNumberText(void) const - ?QueryPrompt@TPhoneCmdParamQuery@@QBEABVTDesC16@@XZ @ 194 NONAME ; class TDesC16 const & TPhoneCmdParamQuery::QueryPrompt(void) const - ?NewL@CPhoneQwertyHandler@@SAPAV1@XZ @ 195 NONAME ; class CPhoneQwertyHandler * CPhoneQwertyHandler::NewL(void) - ?SetQueryPrompt@TPhoneCmdParamQuery@@QAEXABVTDesC16@@@Z @ 196 NONAME ; void TPhoneCmdParamQuery::SetQueryPrompt(class TDesC16 const &) - ?IsNumericKey@CPhoneKeys@@SAHABUTKeyEvent@@W4TEventCode@@@Z @ 197 NONAME ; int CPhoneKeys::IsNumericKey(struct TKeyEvent const &, enum TEventCode) - ?SetCaptureType@TPhoneCmdParamKeyCapture@@QAEXW4TPhoneCaptureType@@@Z @ 198 NONAME ; void TPhoneCmdParamKeyCapture::SetCaptureType(enum TPhoneCaptureType) - ?ViewUid@TPhoneCmdParamAppInfo@@QBE?AVTUid@@XZ @ 199 NONAME ; class TUid TPhoneCmdParamAppInfo::ViewUid(void) const - ?SetLabelText@TPhoneCmdParamEmergencyCallHeaderData@@QAEXABVTDesC16@@@Z @ 200 NONAME ; void TPhoneCmdParamEmergencyCallHeaderData::SetLabelText(class TDesC16 const &) - ??0TPhoneCmdParamSpeedDial@@QAE@XZ @ 201 NONAME ; TPhoneCmdParamSpeedDial::TPhoneCmdParamSpeedDial(void) - ?IsCallerText@TPhoneCmdParamRingTone@@QAEHXZ @ 202 NONAME ; int TPhoneCmdParamRingTone::IsCallerText(void) - ?SetBitmap@TPhoneCmdParamBitmap@@QAEXPAVCFbsBitmap@@@Z @ 203 NONAME ; void TPhoneCmdParamBitmap::SetBitmap(class CFbsBitmap *) - ?SetNumber@TPhoneCmdParamSfiData@@QAEXABVTDesC16@@@Z @ 204 NONAME ; void TPhoneCmdParamSfiData::SetNumber(class TDesC16 const &) - ?Location@TPhoneCmdParamSpeedDial@@QAEHXZ @ 205 NONAME ; int TPhoneCmdParamSpeedDial::Location(void) - ?CipheringIndicatorAllowed@TPhoneCmdParamCallHeaderData@@QBEHXZ @ 206 NONAME ; int TPhoneCmdParamCallHeaderData::CipheringIndicatorAllowed(void) const - ?Name@TPhoneCmdParamSfiData@@QBEABVTDesC16@@XZ @ 207 NONAME ; class TDesC16 const & TPhoneCmdParamSfiData::Name(void) const - ??0TPhoneCmdParamQuery@@QAE@ABV0@@Z @ 208 NONAME ; TPhoneCmdParamQuery::TPhoneCmdParamQuery(class TPhoneCmdParamQuery const &) - ?CallState@TPhoneCmdParamCallHeaderData@@QBEHXZ @ 209 NONAME ; int TPhoneCmdParamCallHeaderData::CallState(void) const - ??0TPhoneCmdParamIncallIndicatorData@@QAE@XZ @ 210 NONAME ; TPhoneCmdParamIncallIndicatorData::TPhoneCmdParamIncallIndicatorData(void) - ?Picture@TPhoneCmdParamCallHeaderData@@QBEABVTDesC16@@XZ @ 211 NONAME ; class TDesC16 const & TPhoneCmdParamCallHeaderData::Picture(void) const - ?SetCallThemeSettingsObserver@CPhoneCallThemeMonitor@@QAEXPAVMPhoneCallThemeSettingsObserver@@@Z @ 212 NONAME ; void CPhoneCallThemeMonitor::SetCallThemeSettingsObserver(class MPhoneCallThemeSettingsObserver *) - ?SetDiverted@TPhoneCmdParamCallHeaderData@@QAEXH@Z @ 213 NONAME ; void TPhoneCmdParamCallHeaderData::SetDiverted(int) - ?ServiceId@TPhoneCmdParamCallHeaderData@@QBEKXZ @ 214 NONAME ; unsigned long TPhoneCmdParamCallHeaderData::ServiceId(void) const - ?LabelText@TPhoneCmdParamCallHeaderData@@QBEABVTDesC16@@XZ @ 215 NONAME ; class TDesC16 const & TPhoneCmdParamCallHeaderData::LabelText(void) const - ?Overflow@CPhoneLogger@@EAEXAAVTDes16@@@Z @ 216 NONAME ; void CPhoneLogger::Overflow(class TDes16 &) - ?SetCNAPText@TPhoneCmdParamCallHeaderData@@QAEXABVTDesC16@@W4TPhoneTextClippingDirection@1@@Z @ 217 NONAME ; void TPhoneCmdParamCallHeaderData::SetCNAPText(class TDesC16 const &, enum TPhoneCmdParamCallHeaderData::TPhoneTextClippingDirection) - ?SetServiceId@TPhoneCmdParamSpeedDial@@QAEXI@Z @ 218 NONAME ; void TPhoneCmdParamSpeedDial::SetServiceId(unsigned int) - ?SetKeyEvent@TPhoneCmdParamKeyEvent@@QAEXABUTKeyEvent@@@Z @ 219 NONAME ; void TPhoneCmdParamKeyEvent::SetKeyEvent(struct TKeyEvent const &) - ?Instance@CPhonePubSubProxy@@SAPAV1@XZ @ 220 NONAME ; class CPhonePubSubProxy * CPhonePubSubProxy::Instance(void) - ?ResourceId@TPhoneCmdParamNote@@QBEHXZ @ 221 NONAME ; int TPhoneCmdParamNote::ResourceId(void) const - ?CipheringIndicatorAllowed@TPhoneCmdParamEmergencyCallHeaderData@@QBEHXZ @ 222 NONAME ; int TPhoneCmdParamEmergencyCallHeaderData::CipheringIndicatorAllowed(void) const - ?CancelAllNotifies@CPhoneCenRepProxy@@SAXPAVMPhoneCenRepObserver@@@Z @ 223 NONAME ; void CPhoneCenRepProxy::CancelAllNotifies(class MPhoneCenRepObserver *) - ??1CPhoneQwertyHandler@@UAE@XZ @ 224 NONAME ; CPhoneQwertyHandler::~CPhoneQwertyHandler(void) - ?TextResourceId@TPhoneCmdParamNote@@QBEHXZ @ 225 NONAME ; int TPhoneCmdParamNote::TextResourceId(void) const - ?SetRemotePhoneNumber@TPhoneCmdParamCallHeaderData@@QAEXABVTDesC16@@@Z @ 226 NONAME ; void TPhoneCmdParamCallHeaderData::SetRemotePhoneNumber(class TDesC16 const &) - ?CipheringIndicatorAllowed@TPhoneCmdParamIncallIndicatorData@@QBEHXZ @ 227 NONAME ; int TPhoneCmdParamIncallIndicatorData::CipheringIndicatorAllowed(void) const - ?SetScreenLocked@CPhoneStorage@@UAEXH@Z @ 228 NONAME ; void CPhoneStorage::SetScreenLocked(int) - ??0TPhoneCmdParamCallStateData@@QAE@XZ @ 229 NONAME ; TPhoneCmdParamCallStateData::TPhoneCmdParamCallStateData(void) - ?SetKeyCode@TPhoneCmdParamKeyCapture@@QAEXW4TKeyCode@@@Z @ 230 NONAME ; void TPhoneCmdParamKeyCapture::SetKeyCode(enum TKeyCode) - ?CustomMessageId@TPhoneCmdParamAppInfo@@QBE?AVTUid@@XZ @ 231 NONAME ; class TUid TPhoneCmdParamAppInfo::CustomMessageId(void) const - ?RemotePhoneNumber@TPhoneCmdParamCallHeaderData@@QBEABVTDesC16@@XZ @ 232 NONAME ; class TDesC16 const & TPhoneCmdParamCallHeaderData::RemotePhoneNumber(void) const - ?SetType@TPhoneCmdParamNote@@QAEXW4TPhoneNoteType@@@Z @ 233 NONAME ; void TPhoneCmdParamNote::SetType(enum TPhoneNoteType) - ?Instance@CPhoneClearBlacklist@@SAPAV1@XZ @ 234 NONAME ; class CPhoneClearBlacklist * CPhoneClearBlacklist::Instance(void) - ?TextToSay@TPhoneCmdParamRingTone@@QBEABVTDesC16@@XZ @ 235 NONAME ; class TDesC16 const & TPhoneCmdParamRingTone::TextToSay(void) const - ?Type@TPhoneCmdParamNote@@QBE?AW4TPhoneNoteType@@XZ @ 236 NONAME ; enum TPhoneNoteType TPhoneCmdParamNote::Type(void) const - ?SetPicture@TPhoneCmdParamCallHeaderData@@QAEXABVTDesC16@@@Z @ 237 NONAME ; void TPhoneCmdParamCallHeaderData::SetPicture(class TDesC16 const &) - ?Integer@TPhoneCmdParamInteger@@QBEHXZ @ 238 NONAME ; int TPhoneCmdParamInteger::Integer(void) const - ?Mode@TPhoneCmdParamIncallIndicatorData@@QBEHXZ @ 239 NONAME ; int TPhoneCmdParamIncallIndicatorData::Mode(void) const - ?SetText@TPhoneCmdParamNote@@QAEXABVTDesC16@@@Z @ 240 NONAME ; void TPhoneCmdParamNote::SetText(class TDesC16 const &) - ?SetCallerTextStatus@TPhoneCmdParamRingTone@@QAEXH@Z @ 241 NONAME ; void TPhoneCmdParamRingTone::SetCallerTextStatus(int) - ?IsWiredAccAvailable@TPhoneCmdParamAudioAvailability@@QBEHXZ @ 242 NONAME ; int TPhoneCmdParamAudioAvailability::IsWiredAccAvailable(void) const - ?SetWaitForReady@TPhoneCmdParamGlobalNote@@QAEXH@Z @ 243 NONAME ; void TPhoneCmdParamGlobalNote::SetWaitForReady(int) - ??0TPhoneCmdParamBoolean@@QAE@XZ @ 244 NONAME ; TPhoneCmdParamBoolean::TPhoneCmdParamBoolean(void) - ?QueryCommandObserver@TPhoneCmdParamQuery@@QAEPAVMPhoneQueryCommandObserver@@XZ @ 245 NONAME ; class MPhoneQueryCommandObserver * TPhoneCmdParamQuery::QueryCommandObserver(void) - ?DataText@TPhoneCmdParamQuery@@QBEPAVTDes16@@XZ @ 246 NONAME ; class TDes16 * TPhoneCmdParamQuery::DataText(void) const - ?SetReal@CPhoneCenRepProxy@@QAEHABVTUid@@IN@Z @ 247 NONAME ; int CPhoneCenRepProxy::SetReal(class TUid const &, unsigned int, double) - ??0TPhoneCmdParamCustomDialer@@QAE@XZ @ 248 NONAME ; TPhoneCmdParamCustomDialer::TPhoneCmdParamCustomDialer(void) - ??1CPhonePubSubProxy@@UAE@XZ @ 249 NONAME ; CPhonePubSubProxy::~CPhonePubSubProxy(void) - ?NumericKeyCode@CPhoneQwertyHandler@@QAEHABUTKeyEvent@@@Z @ 250 NONAME ; int CPhoneQwertyHandler::NumericKeyCode(struct TKeyEvent const &) - ??0TPhoneCmdParamNote@@QAE@XZ @ 251 NONAME ; TPhoneCmdParamNote::TPhoneCmdParamNote(void) - ?Volume@TPhoneCmdParamRingTone@@QBEHXZ @ 252 NONAME ; int TPhoneCmdParamRingTone::Volume(void) const - ?SetItemTextArrayForListQuery@TPhoneCmdParamQuery@@QAEXAAVMDesC16Array@@@Z @ 253 NONAME ; void TPhoneCmdParamQuery::SetItemTextArrayForListQuery(class MDesC16Array &) - ?Type@TPhoneCmdParamRingTone@@QBE?AW4TPhoneRingToneType@@XZ @ 254 NONAME ; enum TPhoneRingToneType TPhoneCmdParamRingTone::Type(void) const - ?Key@TPhoneCmdParamKeyCapture@@QBE?AW4TStdScanCode@@XZ @ 255 NONAME ; enum TStdScanCode TPhoneCmdParamKeyCapture::Key(void) const - ?LabelText@TPhoneCmdParamEmergencyCallHeaderData@@QBEABVTDesC16@@XZ @ 256 NONAME ; class TDesC16 const & TPhoneCmdParamEmergencyCallHeaderData::LabelText(void) const - ?Ciphering@TPhoneCmdParamIncallIndicatorData@@QBEHXZ @ 257 NONAME ; int TPhoneCmdParamIncallIndicatorData::Ciphering(void) const - ?SetQueryCommandObserver@TPhoneCmdParamQuery@@QAEXAAVMPhoneQueryCommandObserver@@@Z @ 258 NONAME ; void TPhoneCmdParamQuery::SetQueryCommandObserver(class MPhoneQueryCommandObserver &) - ?IsPhoneUIFeatureSupported@CPhoneCenRepProxy@@QAEHH@Z @ 259 NONAME ; int CPhoneCenRepProxy::IsPhoneUIFeatureSupported(int) - ?DefaultCba@TPhoneCmdParamQuery@@QBEHXZ @ 260 NONAME ; int TPhoneCmdParamQuery::DefaultCba(void) const - ?CallState@TPhoneCmdParamIncallIndicatorData@@QBEHXZ @ 261 NONAME ; int TPhoneCmdParamIncallIndicatorData::CallState(void) const - ??0TPhoneCmdParamNumberEntryObserver@@QAE@XZ @ 262 NONAME ; TPhoneCmdParamNumberEntryObserver::TPhoneCmdParamNumberEntryObserver(void) - ?SetLine2@TPhoneCmdParamCallHeaderData@@QAEXH@Z @ 263 NONAME ; void TPhoneCmdParamCallHeaderData::SetLine2(int) - ?FetchValuesFromCenRepL@CPhoneCenRepProxy@@QAEXAAVTPhoneCmdParamAppInfo@@W4TKeyCode@@PAVHBufC8@@AAH@Z @ 264 NONAME ; void CPhoneCenRepProxy::FetchValuesFromCenRepL(class TPhoneCmdParamAppInfo &, enum TKeyCode, class HBufC8 *, int &) - ?ParticipantCLI@TPhoneCmdParamCallHeaderData@@QBE?AW4TPhoneParticipantListCLI@1@XZ @ 265 NONAME ; enum TPhoneCmdParamCallHeaderData::TPhoneParticipantListCLI TPhoneCmdParamCallHeaderData::ParticipantCLI(void) const - ?Thumbnail@TPhoneCmdParamCallHeaderData@@QBEPAVCFbsBitmap@@XZ @ 266 NONAME ; class CFbsBitmap * TPhoneCmdParamCallHeaderData::Thumbnail(void) const - ?SetTimeOut@TPhoneCmdParamQuery@@QAEXH@Z @ 267 NONAME ; void TPhoneCmdParamQuery::SetTimeOut(int) - ?Boolean@TPhoneCmdParamBoolean@@QBEHXZ @ 268 NONAME ; int TPhoneCmdParamBoolean::Boolean(void) const - ?CLITextClippingDirection@TPhoneCmdParamCallHeaderData@@QBE?AW4TPhoneTextClippingDirection@1@XZ @ 269 NONAME ; enum TPhoneCmdParamCallHeaderData::TPhoneTextClippingDirection TPhoneCmdParamCallHeaderData::CLITextClippingDirection(void) const - ?LogMsgFromPhoneUIToPE@CPhoneLogger@@QAEXHH@Z @ 270 NONAME ; void CPhoneLogger::LogMsgFromPhoneUIToPE(int, int) - ?SetCustomMessageId@TPhoneCmdParamAppInfo@@QAEXABVTUid@@@Z @ 271 NONAME ; void TPhoneCmdParamAppInfo::SetCustomMessageId(class TUid const &) - ?ResolveResourceID@CPhoneResourceResolverBase@@UBEHABH@Z @ 272 NONAME ; int CPhoneResourceResolverBase::ResolveResourceID(int const &) const - ?SetName@TPhoneCmdParamSfiData@@QAEXABVTDesC16@@@Z @ 273 NONAME ; void TPhoneCmdParamSfiData::SetName(class TDesC16 const &) - ?SetType@TPhoneCmdParamGlobalNote@@QAEXW4TAknGlobalNoteType@@@Z @ 274 NONAME ; void TPhoneCmdParamGlobalNote::SetType(enum TAknGlobalNoteType) - ?SetLittleBubbleVisible@TPhoneCmdParamIncallIndicatorData@@QAEXH@Z @ 275 NONAME ; void TPhoneCmdParamIncallIndicatorData::SetLittleBubbleVisible(int) - ?Ciphering@TPhoneCmdParamCallHeaderData@@QBEHXZ @ 276 NONAME ; int TPhoneCmdParamCallHeaderData::Ciphering(void) const - ?SetType@TPhoneCmdParamRingTone@@QAEXW4TPhoneRingToneType@@@Z @ 277 NONAME ; void TPhoneCmdParamRingTone::SetType(enum TPhoneRingToneType) - ?ResourceId@TPhoneCmdParamDynMenu@@QBEHXZ @ 278 NONAME ; int TPhoneCmdParamDynMenu::ResourceId(void) const - ?SetCipheringIndicatorAllowed@TPhoneCmdParamCallHeaderData@@QAEXH@Z @ 279 NONAME ; void TPhoneCmdParamCallHeaderData::SetCipheringIndicatorAllowed(int) - ?SetWaitTime@TPhoneCmdParamProgressNote@@QAEXVTTimeIntervalMicroSeconds32@@@Z @ 280 NONAME ; void TPhoneCmdParamProgressNote::SetWaitTime(class TTimeIntervalMicroSeconds32) - ?Ciphering@TPhoneCmdParamEmergencyCallHeaderData@@QBEHXZ @ 281 NONAME ; int TPhoneCmdParamEmergencyCallHeaderData::Ciphering(void) const - ??1CPhoneCallThemeMonitor@@UAE@XZ @ 282 NONAME ; CPhoneCallThemeMonitor::~CPhoneCallThemeMonitor(void) - ?SetNumberType@TPhoneCmdParamCallHeaderData@@QAEXH@Z @ 283 NONAME ; void TPhoneCmdParamCallHeaderData::SetNumberType(int) - ?Mute@TPhoneCmdParamIncallIndicatorData@@QBEHXZ @ 284 NONAME ; int TPhoneCmdParamIncallIndicatorData::Mute(void) const - ?IsQwertyInput@CPhoneQwertyHandler@@QBEHXZ @ 285 NONAME ; int CPhoneQwertyHandler::IsQwertyInput(void) const - ?SetBoolean@TPhoneCmdParamBoolean@@QAEXH@Z @ 286 NONAME ; void TPhoneCmdParamBoolean::SetBoolean(int) - ?IsTelephonyFeatureSupported@CPhoneResourceResolverBase@@MBEHH@Z @ 287 NONAME ; int CPhoneResourceResolverBase::IsTelephonyFeatureSupported(int) const - ?Instance@CPhoneMainErrorMessagesHandler@@SAPAV1@XZ @ 288 NONAME ; class CPhoneMainErrorMessagesHandler * CPhoneMainErrorMessagesHandler::Instance(void) - ?SetViewUid@TPhoneCmdParamAppInfo@@QAEXABVTUid@@@Z @ 289 NONAME ; void TPhoneCmdParamAppInfo::SetViewUid(class TUid const &) - ?SetServiceId@TPhoneCmdParamCallHeaderData@@QAEXK@Z @ 290 NONAME ; void TPhoneCmdParamCallHeaderData::SetServiceId(unsigned long) - ?Instance@CPhoneCenRepProxy@@SAPAV1@XZ @ 291 NONAME ; class CPhoneCenRepProxy * CPhoneCenRepProxy::Instance(void) - ?SetQueryType@TPhoneCmdParamQuery@@QAEXW4TPhoneQueryType@@@Z @ 292 NONAME ; void TPhoneCmdParamQuery::SetQueryType(enum TPhoneQueryType) - ?Value@CPhonePubSubProxy@@QAEHABVTUid@@I@Z @ 293 NONAME ; int CPhonePubSubProxy::Value(class TUid const &, unsigned int) - ?SetWiredAccAvailable@TPhoneCmdParamAudioAvailability@@QAEXH@Z @ 294 NONAME ; void TPhoneCmdParamAudioAvailability::SetWiredAccAvailable(int) - ??0TPhoneCmdParamAudioOutput@@QAE@XZ @ 295 NONAME ; TPhoneCmdParamAudioOutput::TPhoneCmdParamAudioOutput(void) - ?IsCallerImage@TPhoneCmdParamRingTone@@QAEHXZ @ 296 NONAME ; int TPhoneCmdParamRingTone::IsCallerImage(void) - ??0TPhoneCmdParamQuery@@QAE@XZ @ 297 NONAME ; TPhoneCmdParamQuery::TPhoneCmdParamQuery(void) - ?Instance@CPhoneMainResourceResolver@@SAPAV1@XZ @ 298 NONAME ; class CPhoneMainResourceResolver * CPhoneMainResourceResolver::Instance(void) - ?ServiceId@TPhoneCmdParamSpeedDial@@QBEIXZ @ 299 NONAME ; unsigned int TPhoneCmdParamSpeedDial::ServiceId(void) const - ??1CPhoneLibraryContainer@@UAE@XZ @ 300 NONAME ; CPhoneLibraryContainer::~CPhoneLibraryContainer(void) - ?ClearBlackListOnNextKey@CPhoneClearBlacklist@@QAEXXZ @ 301 NONAME ; void CPhoneClearBlacklist::ClearBlackListOnNextKey(void) - ?Tone@TPhoneCmdParamQuery@@QBEHXZ @ 302 NONAME ; int TPhoneCmdParamQuery::Tone(void) const - ?SetNumberType@TPhoneCmdParamSpeedDial@@QAEXW4TPhoneNumberType@@@Z @ 303 NONAME ; void TPhoneCmdParamSpeedDial::SetNumberType(enum TPhoneNumberType) - ?SetRingingType@TPhoneCmdParamRingTone@@QAEXH@Z @ 304 NONAME ; void TPhoneCmdParamRingTone::SetRingingType(int) - ?SetCiphering@TPhoneCmdParamIncallIndicatorData@@QAEXH@Z @ 305 NONAME ; void TPhoneCmdParamIncallIndicatorData::SetCiphering(int) - ?SetCipheringIndicatorAllowed@TPhoneCmdParamIncallIndicatorData@@QAEXH@Z @ 306 NONAME ; void TPhoneCmdParamIncallIndicatorData::SetCipheringIndicatorAllowed(int) - ?NeedToEnableKeylock@CPhoneStorage@@UAEHXZ @ 307 NONAME ; int CPhoneStorage::NeedToEnableKeylock(void) - ?AudioOutput@TPhoneCmdParamAudioOutput@@QBE?AW4TPEAudioOutput@@XZ @ 308 NONAME ; enum TPEAudioOutput TPhoneCmdParamAudioOutput::AudioOutput(void) const - ?SetResourceId@TPhoneCmdParamProgressNote@@QAEXH@Z @ 309 NONAME ; void TPhoneCmdParamProgressNote::SetResourceId(int) - ??0TPhoneCmdParamInteger@@QAE@XZ @ 310 NONAME ; TPhoneCmdParamInteger::TPhoneCmdParamInteger(void) - ?SetType@TPhoneCmdParamTransEffect@@QAEXW4TPhoneTransEffectType@@@Z @ 311 NONAME ; void TPhoneCmdParamTransEffect::SetType(enum TPhoneTransEffectType) - ?Bitmap@TPhoneCmdParamBitmap@@QBEPAVCFbsBitmap@@XZ @ 312 NONAME ; class CFbsBitmap * TPhoneCmdParamBitmap::Bitmap(void) const - ?SetTone@TPhoneCmdParamGlobalNote@@QAEXH@Z @ 313 NONAME ; void TPhoneCmdParamGlobalNote::SetTone(int) - ?After@CPhoneTimer@@QAEXVTTimeIntervalMicroSeconds32@@VTCallBack@@@Z @ 314 NONAME ; void CPhoneTimer::After(class TTimeIntervalMicroSeconds32, class TCallBack) - ?SetTimeout@TPhoneCmdParamGlobalNote@@QAEXH@Z @ 315 NONAME ; void TPhoneCmdParamGlobalNote::SetTimeout(int) - ?Timeout@TPhoneCmdParamGlobalNote@@QBEHXZ @ 316 NONAME ; int TPhoneCmdParamGlobalNote::Timeout(void) const + ?AppendBlockedKeysListL@CPhoneStorage@@UAEXW4TStdScanCode@@@Z @ 171 NONAME ; void CPhoneStorage::AppendBlockedKeysListL(enum TStdScanCode) + ?SetEmergency@TPhoneCmdParamIncallIndicatorData@@QAEXH@Z @ 172 NONAME ; void TPhoneCmdParamIncallIndicatorData::SetEmergency(int) + ?SetDefaultCba@TPhoneCmdParamQuery@@QAEXH@Z @ 173 NONAME ; void TPhoneCmdParamQuery::SetDefaultCba(int) + ?Type@TPhoneCmdParamTransEffect@@QBE?AW4TPhoneTransEffectType@@XZ @ 174 NONAME ; enum TPhoneTransEffectType TPhoneCmdParamTransEffect::Type(void) const + ??0TPhoneCmdParamSfiData@@QAE@XZ @ 175 NONAME ; TPhoneCmdParamSfiData::TPhoneCmdParamSfiData(void) + ??0TPhoneCmdParamCallHeaderData@@QAE@XZ @ 176 NONAME ; TPhoneCmdParamCallHeaderData::TPhoneCmdParamCallHeaderData(void) + ??1CPhoneClearBlacklist@@UAE@XZ @ 177 NONAME ; CPhoneClearBlacklist::~CPhoneClearBlacklist(void) + ?SetMute@TPhoneCmdParamIncallIndicatorData@@QAEXH@Z @ 178 NONAME ; void TPhoneCmdParamIncallIndicatorData::SetMute(int) + ?KeyCode@TPhoneCmdParamKeyCapture@@QBE?AW4TKeyCode@@XZ @ 179 NONAME ; enum TKeyCode TPhoneCmdParamKeyCapture::KeyCode(void) const + ?IsNumberKey@CPhoneKeys@@SAHABUTKeyEvent@@W4TEventCode@@@Z @ 180 NONAME ; int CPhoneKeys::IsNumberKey(struct TKeyEvent const &, enum TEventCode) + ?TextResourceId@TPhoneCmdParamGlobalNote@@QBEHXZ @ 181 NONAME ; int TPhoneCmdParamGlobalNote::TextResourceId(void) const + ?SetCiphering@TPhoneCmdParamCallHeaderData@@QAEXH@Z @ 182 NONAME ; void TPhoneCmdParamCallHeaderData::SetCiphering(int) + ?EnablePreconditionL@CPhoneRecoverySystem@@QAEXXZ @ 183 NONAME ; void CPhoneRecoverySystem::EnablePreconditionL(void) + ?AddL@CPhoneRecoverySystem@@QAEHVTCallBack@@CW4TRecoveryState@CTeleRecoverySystem@@@Z @ 184 NONAME ; int CPhoneRecoverySystem::AddL(class TCallBack, signed char, enum CTeleRecoverySystem::TRecoveryState) + ?SetLine2@TPhoneCmdParamIncallIndicatorData@@QAEXH@Z @ 185 NONAME ; void TPhoneCmdParamIncallIndicatorData::SetLine2(int) + ?SetAudioOutput@TPhoneCmdParamAudioOutput@@QAEXW4TPEAudioOutput@@@Z @ 186 NONAME ; void TPhoneCmdParamAudioOutput::SetAudioOutput(enum TPEAudioOutput) + ?HeaderText@TPhoneCmdParamEmergencyCallHeaderData@@QBEABVTDesC16@@XZ @ 187 NONAME ; class TDesC16 const & TPhoneCmdParamEmergencyCallHeaderData::HeaderText(void) const + ?CallImageThemeSettings@CPhoneCallThemeMonitor@@QBEHXZ @ 188 NONAME ; int CPhoneCallThemeMonitor::CallImageThemeSettings(void) const + ??0TPhoneCmdParamTransEffect@@QAE@XZ @ 189 NONAME ; TPhoneCmdParamTransEffect::TPhoneCmdParamTransEffect(void) + ?Number@TPhoneCmdParamSfiData@@QBEABVTDesC16@@XZ @ 190 NONAME ; class TDesC16 const & TPhoneCmdParamSfiData::Number(void) const + ?OwnPhoneNumberText@TPhoneCmdParamEmergencyCallHeaderData@@QBEABVTDesC16@@XZ @ 191 NONAME ; class TDesC16 const & TPhoneCmdParamEmergencyCallHeaderData::OwnPhoneNumberText(void) const + ?QueryPrompt@TPhoneCmdParamQuery@@QBEABVTDesC16@@XZ @ 192 NONAME ; class TDesC16 const & TPhoneCmdParamQuery::QueryPrompt(void) const + ?SetQueryPrompt@TPhoneCmdParamQuery@@QAEXABVTDesC16@@@Z @ 193 NONAME ; void TPhoneCmdParamQuery::SetQueryPrompt(class TDesC16 const &) + ?IsNumericKey@CPhoneKeys@@SAHABUTKeyEvent@@W4TEventCode@@@Z @ 194 NONAME ; int CPhoneKeys::IsNumericKey(struct TKeyEvent const &, enum TEventCode) + ?SetCaptureType@TPhoneCmdParamKeyCapture@@QAEXW4TPhoneCaptureType@@@Z @ 195 NONAME ; void TPhoneCmdParamKeyCapture::SetCaptureType(enum TPhoneCaptureType) + ?ViewUid@TPhoneCmdParamAppInfo@@QBE?AVTUid@@XZ @ 196 NONAME ; class TUid TPhoneCmdParamAppInfo::ViewUid(void) const + ?SetLabelText@TPhoneCmdParamEmergencyCallHeaderData@@QAEXABVTDesC16@@@Z @ 197 NONAME ; void TPhoneCmdParamEmergencyCallHeaderData::SetLabelText(class TDesC16 const &) + ?IsCallerText@TPhoneCmdParamRingTone@@QAEHXZ @ 198 NONAME ; int TPhoneCmdParamRingTone::IsCallerText(void) + ?SetBitmap@TPhoneCmdParamBitmap@@QAEXPAVCFbsBitmap@@@Z @ 199 NONAME ; void TPhoneCmdParamBitmap::SetBitmap(class CFbsBitmap *) + ?SetNumber@TPhoneCmdParamSfiData@@QAEXABVTDesC16@@@Z @ 200 NONAME ; void TPhoneCmdParamSfiData::SetNumber(class TDesC16 const &) + ?CipheringIndicatorAllowed@TPhoneCmdParamCallHeaderData@@QBEHXZ @ 201 NONAME ; int TPhoneCmdParamCallHeaderData::CipheringIndicatorAllowed(void) const + ?Name@TPhoneCmdParamSfiData@@QBEABVTDesC16@@XZ @ 202 NONAME ; class TDesC16 const & TPhoneCmdParamSfiData::Name(void) const + ??0TPhoneCmdParamQuery@@QAE@ABV0@@Z @ 203 NONAME ; TPhoneCmdParamQuery::TPhoneCmdParamQuery(class TPhoneCmdParamQuery const &) + ?CallState@TPhoneCmdParamCallHeaderData@@QBEHXZ @ 204 NONAME ; int TPhoneCmdParamCallHeaderData::CallState(void) const + ??0TPhoneCmdParamIncallIndicatorData@@QAE@XZ @ 205 NONAME ; TPhoneCmdParamIncallIndicatorData::TPhoneCmdParamIncallIndicatorData(void) + ?Picture@TPhoneCmdParamCallHeaderData@@QBEABVTDesC16@@XZ @ 206 NONAME ; class TDesC16 const & TPhoneCmdParamCallHeaderData::Picture(void) const + ?SetCallThemeSettingsObserver@CPhoneCallThemeMonitor@@QAEXPAVMPhoneCallThemeSettingsObserver@@@Z @ 207 NONAME ; void CPhoneCallThemeMonitor::SetCallThemeSettingsObserver(class MPhoneCallThemeSettingsObserver *) + ?SetDiverted@TPhoneCmdParamCallHeaderData@@QAEXH@Z @ 208 NONAME ; void TPhoneCmdParamCallHeaderData::SetDiverted(int) + ?ServiceId@TPhoneCmdParamCallHeaderData@@QBEKXZ @ 209 NONAME ; unsigned long TPhoneCmdParamCallHeaderData::ServiceId(void) const + ?LabelText@TPhoneCmdParamCallHeaderData@@QBEABVTDesC16@@XZ @ 210 NONAME ; class TDesC16 const & TPhoneCmdParamCallHeaderData::LabelText(void) const + ?Overflow@CPhoneLogger@@EAEXAAVTDes16@@@Z @ 211 NONAME ; void CPhoneLogger::Overflow(class TDes16 &) + ?SetCNAPText@TPhoneCmdParamCallHeaderData@@QAEXABVTDesC16@@W4TPhoneTextClippingDirection@1@@Z @ 212 NONAME ; void TPhoneCmdParamCallHeaderData::SetCNAPText(class TDesC16 const &, enum TPhoneCmdParamCallHeaderData::TPhoneTextClippingDirection) + ?SetKeyEvent@TPhoneCmdParamKeyEvent@@QAEXABUTKeyEvent@@@Z @ 213 NONAME ; void TPhoneCmdParamKeyEvent::SetKeyEvent(struct TKeyEvent const &) + ?Instance@CPhonePubSubProxy@@SAPAV1@XZ @ 214 NONAME ; class CPhonePubSubProxy * CPhonePubSubProxy::Instance(void) + ?ResourceId@TPhoneCmdParamNote@@QBEHXZ @ 215 NONAME ; int TPhoneCmdParamNote::ResourceId(void) const + ?CipheringIndicatorAllowed@TPhoneCmdParamEmergencyCallHeaderData@@QBEHXZ @ 216 NONAME ; int TPhoneCmdParamEmergencyCallHeaderData::CipheringIndicatorAllowed(void) const + ?CancelAllNotifies@CPhoneCenRepProxy@@SAXPAVMPhoneCenRepObserver@@@Z @ 217 NONAME ; void CPhoneCenRepProxy::CancelAllNotifies(class MPhoneCenRepObserver *) + ?TextResourceId@TPhoneCmdParamNote@@QBEHXZ @ 218 NONAME ; int TPhoneCmdParamNote::TextResourceId(void) const + ?SetRemotePhoneNumber@TPhoneCmdParamCallHeaderData@@QAEXABVTDesC16@@@Z @ 219 NONAME ; void TPhoneCmdParamCallHeaderData::SetRemotePhoneNumber(class TDesC16 const &) + ?CipheringIndicatorAllowed@TPhoneCmdParamIncallIndicatorData@@QBEHXZ @ 220 NONAME ; int TPhoneCmdParamIncallIndicatorData::CipheringIndicatorAllowed(void) const + ??0TPhoneCmdParamCallStateData@@QAE@XZ @ 221 NONAME ; TPhoneCmdParamCallStateData::TPhoneCmdParamCallStateData(void) + ?SetKeyCode@TPhoneCmdParamKeyCapture@@QAEXW4TKeyCode@@@Z @ 222 NONAME ; void TPhoneCmdParamKeyCapture::SetKeyCode(enum TKeyCode) + ?SetScreenLocked@CPhoneStorage@@UAEXH@Z @ 223 NONAME ; void CPhoneStorage::SetScreenLocked(int) + ?CustomMessageId@TPhoneCmdParamAppInfo@@QBE?AVTUid@@XZ @ 224 NONAME ; class TUid TPhoneCmdParamAppInfo::CustomMessageId(void) const + ?RemotePhoneNumber@TPhoneCmdParamCallHeaderData@@QBEABVTDesC16@@XZ @ 225 NONAME ; class TDesC16 const & TPhoneCmdParamCallHeaderData::RemotePhoneNumber(void) const + ?SetType@TPhoneCmdParamNote@@QAEXW4TPhoneNoteType@@@Z @ 226 NONAME ; void TPhoneCmdParamNote::SetType(enum TPhoneNoteType) + ?Instance@CPhoneClearBlacklist@@SAPAV1@XZ @ 227 NONAME ; class CPhoneClearBlacklist * CPhoneClearBlacklist::Instance(void) + ?TextToSay@TPhoneCmdParamRingTone@@QBEABVTDesC16@@XZ @ 228 NONAME ; class TDesC16 const & TPhoneCmdParamRingTone::TextToSay(void) const + ?Type@TPhoneCmdParamNote@@QBE?AW4TPhoneNoteType@@XZ @ 229 NONAME ; enum TPhoneNoteType TPhoneCmdParamNote::Type(void) const + ?SetPicture@TPhoneCmdParamCallHeaderData@@QAEXABVTDesC16@@@Z @ 230 NONAME ; void TPhoneCmdParamCallHeaderData::SetPicture(class TDesC16 const &) + ?Integer@TPhoneCmdParamInteger@@QBEHXZ @ 231 NONAME ; int TPhoneCmdParamInteger::Integer(void) const + ?Mode@TPhoneCmdParamIncallIndicatorData@@QBEHXZ @ 232 NONAME ; int TPhoneCmdParamIncallIndicatorData::Mode(void) const + ?SetCallerTextStatus@TPhoneCmdParamRingTone@@QAEXH@Z @ 233 NONAME ; void TPhoneCmdParamRingTone::SetCallerTextStatus(int) + ?SetText@TPhoneCmdParamNote@@QAEXABVTDesC16@@@Z @ 234 NONAME ; void TPhoneCmdParamNote::SetText(class TDesC16 const &) + ?IsWiredAccAvailable@TPhoneCmdParamAudioAvailability@@QBEHXZ @ 235 NONAME ; int TPhoneCmdParamAudioAvailability::IsWiredAccAvailable(void) const + ?SetWaitForReady@TPhoneCmdParamGlobalNote@@QAEXH@Z @ 236 NONAME ; void TPhoneCmdParamGlobalNote::SetWaitForReady(int) + ??0TPhoneCmdParamBoolean@@QAE@XZ @ 237 NONAME ; TPhoneCmdParamBoolean::TPhoneCmdParamBoolean(void) + ?QueryCommandObserver@TPhoneCmdParamQuery@@QAEPAVMPhoneQueryCommandObserver@@XZ @ 238 NONAME ; class MPhoneQueryCommandObserver * TPhoneCmdParamQuery::QueryCommandObserver(void) + ?DataText@TPhoneCmdParamQuery@@QBEPAVTDes16@@XZ @ 239 NONAME ; class TDes16 * TPhoneCmdParamQuery::DataText(void) const + ?SetReal@CPhoneCenRepProxy@@QAEHABVTUid@@IN@Z @ 240 NONAME ; int CPhoneCenRepProxy::SetReal(class TUid const &, unsigned int, double) + ??0TPhoneCmdParamCustomDialer@@QAE@XZ @ 241 NONAME ; TPhoneCmdParamCustomDialer::TPhoneCmdParamCustomDialer(void) + ??1CPhonePubSubProxy@@UAE@XZ @ 242 NONAME ; CPhonePubSubProxy::~CPhonePubSubProxy(void) + ??0TPhoneCmdParamNote@@QAE@XZ @ 243 NONAME ; TPhoneCmdParamNote::TPhoneCmdParamNote(void) + ?Volume@TPhoneCmdParamRingTone@@QBEHXZ @ 244 NONAME ; int TPhoneCmdParamRingTone::Volume(void) const + ?SetItemTextArrayForListQuery@TPhoneCmdParamQuery@@QAEXAAVMDesC16Array@@@Z @ 245 NONAME ; void TPhoneCmdParamQuery::SetItemTextArrayForListQuery(class MDesC16Array &) + ?Type@TPhoneCmdParamRingTone@@QBE?AW4TPhoneRingToneType@@XZ @ 246 NONAME ; enum TPhoneRingToneType TPhoneCmdParamRingTone::Type(void) const + ?Key@TPhoneCmdParamKeyCapture@@QBE?AW4TStdScanCode@@XZ @ 247 NONAME ; enum TStdScanCode TPhoneCmdParamKeyCapture::Key(void) const + ?LabelText@TPhoneCmdParamEmergencyCallHeaderData@@QBEABVTDesC16@@XZ @ 248 NONAME ; class TDesC16 const & TPhoneCmdParamEmergencyCallHeaderData::LabelText(void) const + ?Ciphering@TPhoneCmdParamIncallIndicatorData@@QBEHXZ @ 249 NONAME ; int TPhoneCmdParamIncallIndicatorData::Ciphering(void) const + ?SetQueryCommandObserver@TPhoneCmdParamQuery@@QAEXAAVMPhoneQueryCommandObserver@@@Z @ 250 NONAME ; void TPhoneCmdParamQuery::SetQueryCommandObserver(class MPhoneQueryCommandObserver &) + ?IsPhoneUIFeatureSupported@CPhoneCenRepProxy@@QAEHH@Z @ 251 NONAME ; int CPhoneCenRepProxy::IsPhoneUIFeatureSupported(int) + ?DefaultCba@TPhoneCmdParamQuery@@QBEHXZ @ 252 NONAME ; int TPhoneCmdParamQuery::DefaultCba(void) const + ?CallState@TPhoneCmdParamIncallIndicatorData@@QBEHXZ @ 253 NONAME ; int TPhoneCmdParamIncallIndicatorData::CallState(void) const + ??0TPhoneCmdParamNumberEntryObserver@@QAE@XZ @ 254 NONAME ; TPhoneCmdParamNumberEntryObserver::TPhoneCmdParamNumberEntryObserver(void) + ?SetLine2@TPhoneCmdParamCallHeaderData@@QAEXH@Z @ 255 NONAME ; void TPhoneCmdParamCallHeaderData::SetLine2(int) + ?FetchValuesFromCenRepL@CPhoneCenRepProxy@@QAEXAAVTPhoneCmdParamAppInfo@@W4TKeyCode@@PAVHBufC8@@AAH@Z @ 256 NONAME ; void CPhoneCenRepProxy::FetchValuesFromCenRepL(class TPhoneCmdParamAppInfo &, enum TKeyCode, class HBufC8 *, int &) + ?ParticipantCLI@TPhoneCmdParamCallHeaderData@@QBE?AW4TPhoneParticipantListCLI@1@XZ @ 257 NONAME ; enum TPhoneCmdParamCallHeaderData::TPhoneParticipantListCLI TPhoneCmdParamCallHeaderData::ParticipantCLI(void) const + ?Thumbnail@TPhoneCmdParamCallHeaderData@@QBEPAVCFbsBitmap@@XZ @ 258 NONAME ; class CFbsBitmap * TPhoneCmdParamCallHeaderData::Thumbnail(void) const + ?SetTimeOut@TPhoneCmdParamQuery@@QAEXH@Z @ 259 NONAME ; void TPhoneCmdParamQuery::SetTimeOut(int) + ?Boolean@TPhoneCmdParamBoolean@@QBEHXZ @ 260 NONAME ; int TPhoneCmdParamBoolean::Boolean(void) const + ?CLITextClippingDirection@TPhoneCmdParamCallHeaderData@@QBE?AW4TPhoneTextClippingDirection@1@XZ @ 261 NONAME ; enum TPhoneCmdParamCallHeaderData::TPhoneTextClippingDirection TPhoneCmdParamCallHeaderData::CLITextClippingDirection(void) const + ?LogMsgFromPhoneUIToPE@CPhoneLogger@@QAEXHH@Z @ 262 NONAME ; void CPhoneLogger::LogMsgFromPhoneUIToPE(int, int) + ?SetCustomMessageId@TPhoneCmdParamAppInfo@@QAEXABVTUid@@@Z @ 263 NONAME ; void TPhoneCmdParamAppInfo::SetCustomMessageId(class TUid const &) + ?ResolveResourceID@CPhoneResourceResolverBase@@UBEHABH@Z @ 264 NONAME ; int CPhoneResourceResolverBase::ResolveResourceID(int const &) const + ?SetName@TPhoneCmdParamSfiData@@QAEXABVTDesC16@@@Z @ 265 NONAME ; void TPhoneCmdParamSfiData::SetName(class TDesC16 const &) + ?SetType@TPhoneCmdParamGlobalNote@@QAEXW4TAknGlobalNoteType@@@Z @ 266 NONAME ; void TPhoneCmdParamGlobalNote::SetType(enum TAknGlobalNoteType) + ?SetLittleBubbleVisible@TPhoneCmdParamIncallIndicatorData@@QAEXH@Z @ 267 NONAME ; void TPhoneCmdParamIncallIndicatorData::SetLittleBubbleVisible(int) + ?Ciphering@TPhoneCmdParamCallHeaderData@@QBEHXZ @ 268 NONAME ; int TPhoneCmdParamCallHeaderData::Ciphering(void) const + ?SetType@TPhoneCmdParamRingTone@@QAEXW4TPhoneRingToneType@@@Z @ 269 NONAME ; void TPhoneCmdParamRingTone::SetType(enum TPhoneRingToneType) + ?ResourceId@TPhoneCmdParamDynMenu@@QBEHXZ @ 270 NONAME ; int TPhoneCmdParamDynMenu::ResourceId(void) const + ?SetCipheringIndicatorAllowed@TPhoneCmdParamCallHeaderData@@QAEXH@Z @ 271 NONAME ; void TPhoneCmdParamCallHeaderData::SetCipheringIndicatorAllowed(int) + ?SetWaitTime@TPhoneCmdParamProgressNote@@QAEXVTTimeIntervalMicroSeconds32@@@Z @ 272 NONAME ; void TPhoneCmdParamProgressNote::SetWaitTime(class TTimeIntervalMicroSeconds32) + ?Ciphering@TPhoneCmdParamEmergencyCallHeaderData@@QBEHXZ @ 273 NONAME ; int TPhoneCmdParamEmergencyCallHeaderData::Ciphering(void) const + ??1CPhoneCallThemeMonitor@@UAE@XZ @ 274 NONAME ; CPhoneCallThemeMonitor::~CPhoneCallThemeMonitor(void) + ?SetNumberType@TPhoneCmdParamCallHeaderData@@QAEXH@Z @ 275 NONAME ; void TPhoneCmdParamCallHeaderData::SetNumberType(int) + ?Mute@TPhoneCmdParamIncallIndicatorData@@QBEHXZ @ 276 NONAME ; int TPhoneCmdParamIncallIndicatorData::Mute(void) const + ?SetBoolean@TPhoneCmdParamBoolean@@QAEXH@Z @ 277 NONAME ; void TPhoneCmdParamBoolean::SetBoolean(int) + ?IsTelephonyFeatureSupported@CPhoneResourceResolverBase@@MBEHH@Z @ 278 NONAME ; int CPhoneResourceResolverBase::IsTelephonyFeatureSupported(int) const + ?Instance@CPhoneMainErrorMessagesHandler@@SAPAV1@XZ @ 279 NONAME ; class CPhoneMainErrorMessagesHandler * CPhoneMainErrorMessagesHandler::Instance(void) + ?SetViewUid@TPhoneCmdParamAppInfo@@QAEXABVTUid@@@Z @ 280 NONAME ; void TPhoneCmdParamAppInfo::SetViewUid(class TUid const &) + ?SetServiceId@TPhoneCmdParamCallHeaderData@@QAEXK@Z @ 281 NONAME ; void TPhoneCmdParamCallHeaderData::SetServiceId(unsigned long) + ?Instance@CPhoneCenRepProxy@@SAPAV1@XZ @ 282 NONAME ; class CPhoneCenRepProxy * CPhoneCenRepProxy::Instance(void) + ?SetQueryType@TPhoneCmdParamQuery@@QAEXW4TPhoneQueryType@@@Z @ 283 NONAME ; void TPhoneCmdParamQuery::SetQueryType(enum TPhoneQueryType) + ?Value@CPhonePubSubProxy@@QAEHABVTUid@@I@Z @ 284 NONAME ; int CPhonePubSubProxy::Value(class TUid const &, unsigned int) + ?SetWiredAccAvailable@TPhoneCmdParamAudioAvailability@@QAEXH@Z @ 285 NONAME ; void TPhoneCmdParamAudioAvailability::SetWiredAccAvailable(int) + ??0TPhoneCmdParamAudioOutput@@QAE@XZ @ 286 NONAME ; TPhoneCmdParamAudioOutput::TPhoneCmdParamAudioOutput(void) + ?IsCallerImage@TPhoneCmdParamRingTone@@QAEHXZ @ 287 NONAME ; int TPhoneCmdParamRingTone::IsCallerImage(void) + ??0TPhoneCmdParamQuery@@QAE@XZ @ 288 NONAME ; TPhoneCmdParamQuery::TPhoneCmdParamQuery(void) + ?Instance@CPhoneMainResourceResolver@@SAPAV1@XZ @ 289 NONAME ; class CPhoneMainResourceResolver * CPhoneMainResourceResolver::Instance(void) + ??1CPhoneLibraryContainer@@UAE@XZ @ 290 NONAME ; CPhoneLibraryContainer::~CPhoneLibraryContainer(void) + ?ClearBlackListOnNextKey@CPhoneClearBlacklist@@QAEXXZ @ 291 NONAME ; void CPhoneClearBlacklist::ClearBlackListOnNextKey(void) + ?Tone@TPhoneCmdParamQuery@@QBEHXZ @ 292 NONAME ; int TPhoneCmdParamQuery::Tone(void) const + ?SetCiphering@TPhoneCmdParamIncallIndicatorData@@QAEXH@Z @ 293 NONAME ; void TPhoneCmdParamIncallIndicatorData::SetCiphering(int) + ?SetRingingType@TPhoneCmdParamRingTone@@QAEXH@Z @ 294 NONAME ; void TPhoneCmdParamRingTone::SetRingingType(int) + ?SetCipheringIndicatorAllowed@TPhoneCmdParamIncallIndicatorData@@QAEXH@Z @ 295 NONAME ; void TPhoneCmdParamIncallIndicatorData::SetCipheringIndicatorAllowed(int) + ?NeedToEnableKeylock@CPhoneStorage@@UAEHXZ @ 296 NONAME ; int CPhoneStorage::NeedToEnableKeylock(void) + ?AudioOutput@TPhoneCmdParamAudioOutput@@QBE?AW4TPEAudioOutput@@XZ @ 297 NONAME ; enum TPEAudioOutput TPhoneCmdParamAudioOutput::AudioOutput(void) const + ?SetResourceId@TPhoneCmdParamProgressNote@@QAEXH@Z @ 298 NONAME ; void TPhoneCmdParamProgressNote::SetResourceId(int) + ??0TPhoneCmdParamInteger@@QAE@XZ @ 299 NONAME ; TPhoneCmdParamInteger::TPhoneCmdParamInteger(void) + ?SetType@TPhoneCmdParamTransEffect@@QAEXW4TPhoneTransEffectType@@@Z @ 300 NONAME ; void TPhoneCmdParamTransEffect::SetType(enum TPhoneTransEffectType) + ?Bitmap@TPhoneCmdParamBitmap@@QBEPAVCFbsBitmap@@XZ @ 301 NONAME ; class CFbsBitmap * TPhoneCmdParamBitmap::Bitmap(void) const + ?SetTone@TPhoneCmdParamGlobalNote@@QAEXH@Z @ 302 NONAME ; void TPhoneCmdParamGlobalNote::SetTone(int) + ?After@CPhoneTimer@@QAEXVTTimeIntervalMicroSeconds32@@VTCallBack@@@Z @ 303 NONAME ; void CPhoneTimer::After(class TTimeIntervalMicroSeconds32, class TCallBack) + ?SetNotificationDialog@TPhoneCmdParamGlobalNote@@QAEXH@Z @ 304 NONAME ; void TPhoneCmdParamGlobalNote::SetNotificationDialog(int) + ?NotificationDialog@TPhoneCmdParamGlobalNote@@QBEHXZ @ 305 NONAME ; int TPhoneCmdParamGlobalNote::NotificationDialog(void) const diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiutils/eabi/phoneuiutilsu.def --- a/phoneapp/phoneuiutils/eabi/phoneuiutilsu.def Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiutils/eabi/phoneuiutilsu.def Wed Jun 23 18:12:20 2010 +0300 @@ -73,349 +73,329 @@ _ZN18TPhoneCmdParamNoteC2Ev @ 72 NONAME _ZN18TPhoneCommandParamC1Ev @ 73 NONAME _ZN18TPhoneCommandParamC2Ev @ 74 NONAME - _ZN19CPhoneQwertyHandler14NumericKeyCodeERK9TKeyEvent @ 75 NONAME - _ZN19CPhoneQwertyHandler4NewLEv @ 76 NONAME - _ZN19CPhoneQwertyHandlerD0Ev @ 77 NONAME - _ZN19CPhoneQwertyHandlerD1Ev @ 78 NONAME - _ZN19CPhoneQwertyHandlerD2Ev @ 79 NONAME - _ZN19TPhoneCmdParamQuery10SetTimeOutEi @ 80 NONAME - _ZN19TPhoneCmdParamQuery11SetDataTextEP6TDes16 @ 81 NONAME - _ZN19TPhoneCmdParamQuery12SetQueryTypeE15TPhoneQueryType @ 82 NONAME - _ZN19TPhoneCmdParamQuery13SetContentCbaEi @ 83 NONAME - _ZN19TPhoneCmdParamQuery13SetDefaultCbaEi @ 84 NONAME - _ZN19TPhoneCmdParamQuery14SetQueryPromptERK7TDesC16 @ 85 NONAME - _ZN19TPhoneCmdParamQuery17SetCommandParamIdEN18TPhoneCommandParam13TPhoneParamIdE @ 86 NONAME - _ZN19TPhoneCmdParamQuery17SetSendKeyEnabledEi @ 87 NONAME - _ZN19TPhoneCmdParamQuery18SetQueryResourceIdEi @ 88 NONAME - _ZN19TPhoneCmdParamQuery20QueryCommandObserverEv @ 89 NONAME - _ZN19TPhoneCmdParamQuery20SetCbaCommandMappingEii @ 90 NONAME - _ZN19TPhoneCmdParamQuery23SetQueryCommandObserverER26MPhoneQueryCommandObserver @ 91 NONAME - _ZN19TPhoneCmdParamQuery26SetCustomCommandForTimeOutEi @ 92 NONAME - _ZN19TPhoneCmdParamQuery28SetItemTextArrayForListQueryER12MDesC16Array @ 93 NONAME - _ZN19TPhoneCmdParamQuery7SetToneEi @ 94 NONAME - _ZN19TPhoneCmdParamQueryC1ERKS_ @ 95 NONAME - _ZN19TPhoneCmdParamQueryC1Ev @ 96 NONAME - _ZN19TPhoneCmdParamQueryC2ERKS_ @ 97 NONAME - _ZN19TPhoneCmdParamQueryC2Ev @ 98 NONAME - _ZN19TPhoneCmdParamQueryaSERKS_ @ 99 NONAME - _ZN20CPhoneClearBlacklist17ClearBlackListNowEv @ 100 NONAME - _ZN20CPhoneClearBlacklist23ClearBlackListOnNextKeyEv @ 101 NONAME - _ZN20CPhoneClearBlacklist7CreateLER10RWsSessionRK11RWindowBase @ 102 NONAME - _ZN20CPhoneClearBlacklist8InstanceEv @ 103 NONAME - _ZN20CPhoneClearBlacklistD0Ev @ 104 NONAME - _ZN20CPhoneClearBlacklistD1Ev @ 105 NONAME - _ZN20CPhoneClearBlacklistD2Ev @ 106 NONAME - _ZN20CPhoneRecoverySystem10RecoverNowEiai @ 107 NONAME - _ZN20CPhoneRecoverySystem19EnablePreconditionLEv @ 108 NONAME - _ZN20CPhoneRecoverySystem4AddLE9TCallBackaN19CTeleRecoverySystem14TRecoveryStateE @ 109 NONAME - _ZN20CPhoneRecoverySystem6RemoveEi @ 110 NONAME - _ZN20CPhoneRecoverySystem8InstanceEv @ 111 NONAME - _ZN20TPhoneCmdParamBitmap13SetMaskBitmapEP10CFbsBitmap @ 112 NONAME - _ZN20TPhoneCmdParamBitmap9SetBitmapEP10CFbsBitmap @ 113 NONAME - _ZN20TPhoneCmdParamBitmapC1Ev @ 114 NONAME - _ZN20TPhoneCmdParamBitmapC2Ev @ 115 NONAME - _ZN20TPhoneCmdParamString6StringEv @ 116 NONAME - _ZN20TPhoneCmdParamString9SetStringEP6TPtr16 @ 117 NONAME - _ZN20TPhoneCmdParamStringC1Ev @ 118 NONAME - _ZN20TPhoneCmdParamStringC2Ev @ 119 NONAME - _ZN21TPhoneCmdParamAppInfo10SetViewUidERK4TUid @ 120 NONAME - _ZN21TPhoneCmdParamAppInfo16SetCustomMessageERK6TDesC8 @ 121 NONAME - _ZN21TPhoneCmdParamAppInfo18SetCustomMessageIdERK4TUid @ 122 NONAME - _ZN21TPhoneCmdParamAppInfo20SetMultipleInstancesEi @ 123 NONAME - _ZN21TPhoneCmdParamAppInfo8SetParamERK6TDesC8 @ 124 NONAME - _ZN21TPhoneCmdParamAppInfo9SetAppUidERK4TUid @ 125 NONAME - _ZN21TPhoneCmdParamAppInfoC1Ev @ 126 NONAME - _ZN21TPhoneCmdParamAppInfoC2Ev @ 127 NONAME - _ZN21TPhoneCmdParamBoolean10SetBooleanEi @ 128 NONAME - _ZN21TPhoneCmdParamBooleanC1Ev @ 129 NONAME - _ZN21TPhoneCmdParamBooleanC2Ev @ 130 NONAME - _ZN21TPhoneCmdParamDynMenu10SetDynMenuEPv @ 131 NONAME - _ZN21TPhoneCmdParamDynMenu13SetResourceIdEi @ 132 NONAME - _ZN21TPhoneCmdParamDynMenu7DynMenuEv @ 133 NONAME - _ZN21TPhoneCmdParamDynMenuC1Ev @ 134 NONAME - _ZN21TPhoneCmdParamDynMenuC2Ev @ 135 NONAME - _ZN21TPhoneCmdParamInteger10SetIntegerEi @ 136 NONAME - _ZN21TPhoneCmdParamIntegerC1Ev @ 137 NONAME - _ZN21TPhoneCmdParamIntegerC2Ev @ 138 NONAME - _ZN21TPhoneCmdParamPointer10SetPointerEPv @ 139 NONAME - _ZN21TPhoneCmdParamPointerC1Ev @ 140 NONAME - _ZN21TPhoneCmdParamPointerC2Ev @ 141 NONAME - _ZN21TPhoneCmdParamSfiData7SetNameERK7TDesC16 @ 142 NONAME - _ZN21TPhoneCmdParamSfiData9SetNumberERK7TDesC16 @ 143 NONAME - _ZN21TPhoneCmdParamSfiDataC1Ev @ 144 NONAME - _ZN21TPhoneCmdParamSfiDataC2Ev @ 145 NONAME - _ZN22CPhoneCallThemeMonitor28SetCallThemeSettingsObserverEP31MPhoneCallThemeSettingsObserver @ 146 NONAME - _ZN22CPhoneCallThemeMonitor4NewLEv @ 147 NONAME - _ZN22CPhoneCallThemeMonitorD0Ev @ 148 NONAME - _ZN22CPhoneCallThemeMonitorD1Ev @ 149 NONAME - _ZN22CPhoneCallThemeMonitorD2Ev @ 150 NONAME - _ZN22CPhoneLibraryContainer11AddLibraryLERK8RLibrary @ 151 NONAME - _ZN22CPhoneLibraryContainer4NewLEv @ 152 NONAME - _ZN22CPhoneLibraryContainerD0Ev @ 153 NONAME - _ZN22CPhoneLibraryContainerD1Ev @ 154 NONAME - _ZN22CPhoneLibraryContainerD2Ev @ 155 NONAME - _ZN22TPhoneCmdParamKeyEvent11SetKeyEventERK9TKeyEvent @ 156 NONAME - _ZN22TPhoneCmdParamKeyEvent12SetEventCodeE10TEventCode @ 157 NONAME - _ZN22TPhoneCmdParamKeyEventC1Ev @ 158 NONAME - _ZN22TPhoneCmdParamKeyEventC2Ev @ 159 NONAME - _ZN22TPhoneCmdParamRingTone11SetRingToneERK7TDesC16 @ 160 NONAME - _ZN22TPhoneCmdParamRingTone12IsCallerTextEv @ 161 NONAME - _ZN22TPhoneCmdParamRingTone12SetTextToSayERK7TDesC16 @ 162 NONAME - _ZN22TPhoneCmdParamRingTone13IsCallerImageEv @ 163 NONAME - _ZN22TPhoneCmdParamRingTone14SetRingingTypeEi @ 164 NONAME - _ZN22TPhoneCmdParamRingTone19SetCallerTextStatusEi @ 165 NONAME - _ZN22TPhoneCmdParamRingTone20SetCallerImageStatusEi @ 166 NONAME - _ZN22TPhoneCmdParamRingTone7SetTypeE18TPhoneRingToneType @ 167 NONAME - _ZN22TPhoneCmdParamRingTone9SetVolumeEi @ 168 NONAME - _ZN22TPhoneCmdParamRingToneC1Ev @ 169 NONAME - _ZN22TPhoneCmdParamRingToneC2Ev @ 170 NONAME - _ZN23TPhoneCmdParamSpeedDial10NumberTypeEv @ 171 NONAME - _ZN23TPhoneCmdParamSpeedDial11PhoneNumberEv @ 172 NONAME - _ZN23TPhoneCmdParamSpeedDial11SetLocationEi @ 173 NONAME - _ZN23TPhoneCmdParamSpeedDial12SetServiceIdEj @ 174 NONAME - _ZN23TPhoneCmdParamSpeedDial13SetNumberTypeE16TPhoneNumberType @ 175 NONAME - _ZN23TPhoneCmdParamSpeedDial14SetPhoneNumberEP6TPtr16 @ 176 NONAME - _ZN23TPhoneCmdParamSpeedDial8LocationEv @ 177 NONAME - _ZN23TPhoneCmdParamSpeedDialC1Ev @ 178 NONAME - _ZN23TPhoneCmdParamSpeedDialC2Ev @ 179 NONAME - _ZN24TPhoneCmdParamGlobalNote11SetSoftkeysEi @ 180 NONAME - _ZN24TPhoneCmdParamGlobalNote15SetWaitForReadyEi @ 181 NONAME - _ZN24TPhoneCmdParamGlobalNote17SetTextResourceIdEi @ 182 NONAME - _ZN24TPhoneCmdParamGlobalNote7SetTextERK7TDesC16 @ 183 NONAME - _ZN24TPhoneCmdParamGlobalNote7SetToneEi @ 184 NONAME - _ZN24TPhoneCmdParamGlobalNote7SetTypeE18TAknGlobalNoteType @ 185 NONAME - _ZN24TPhoneCmdParamGlobalNoteC1Ev @ 186 NONAME - _ZN24TPhoneCmdParamGlobalNoteC2Ev @ 187 NONAME - _ZN24TPhoneCmdParamKeyCapture10SetKeyCodeE8TKeyCode @ 188 NONAME - _ZN24TPhoneCmdParamKeyCapture14SetCaptureTypeE17TPhoneCaptureType @ 189 NONAME - _ZN24TPhoneCmdParamKeyCapture6SetKeyE12TStdScanCode @ 190 NONAME - _ZN24TPhoneCmdParamKeyCaptureC1Ev @ 191 NONAME - _ZN24TPhoneCmdParamKeyCaptureC2Ev @ 192 NONAME - _ZN25TPhoneCmdParamAudioOutput14SetAudioOutputE14TPEAudioOutput @ 193 NONAME - _ZN25TPhoneCmdParamAudioOutputC1Ev @ 194 NONAME - _ZN25TPhoneCmdParamAudioOutputC2Ev @ 195 NONAME - _ZN25TPhoneCmdParamTransEffect7SetTypeE21TPhoneTransEffectType @ 196 NONAME - _ZN25TPhoneCmdParamTransEffectC1Ev @ 197 NONAME - _ZN25TPhoneCmdParamTransEffectC2Ev @ 198 NONAME - _ZN26CPhoneMainResourceResolver8InstanceEv @ 199 NONAME - _ZN26CPhoneResourceResolverBase14BaseConstructLEv @ 200 NONAME - _ZN26CPhoneResourceResolverBaseC1Ev @ 201 NONAME - _ZN26CPhoneResourceResolverBaseC2Ev @ 202 NONAME - _ZN26CPhoneResourceResolverBaseD0Ev @ 203 NONAME - _ZN26CPhoneResourceResolverBaseD1Ev @ 204 NONAME - _ZN26CPhoneResourceResolverBaseD2Ev @ 205 NONAME - _ZN26TPhoneCmdParamCustomDialer16DialerControllerEv @ 206 NONAME - _ZN26TPhoneCmdParamCustomDialer19SetDialerControllerEP22MPhoneDialerController @ 207 NONAME - _ZN26TPhoneCmdParamCustomDialerC1Ev @ 208 NONAME - _ZN26TPhoneCmdParamCustomDialerC2Ev @ 209 NONAME - _ZN26TPhoneCmdParamProgressNote11SetWaitTimeE27TTimeIntervalMicroSeconds32 @ 210 NONAME - _ZN26TPhoneCmdParamProgressNote13SetResourceIdEi @ 211 NONAME - _ZN26TPhoneCmdParamProgressNoteC1Ev @ 212 NONAME - _ZN26TPhoneCmdParamProgressNoteC2Ev @ 213 NONAME - _ZN27TPhoneCmdParamCallStateData12SetCallStateEi @ 214 NONAME - _ZN27TPhoneCmdParamCallStateData9SetCallIdEi @ 215 NONAME - _ZN27TPhoneCmdParamCallStateDataC1Ev @ 216 NONAME - _ZN27TPhoneCmdParamCallStateDataC2Ev @ 217 NONAME - _ZN28TPhoneCmdParamCallHeaderData10SetCLITextERK7TDesC16NS_27TPhoneTextClippingDirectionE @ 218 NONAME - _ZN28TPhoneCmdParamCallHeaderData10SetPictureERK7TDesC16 @ 219 NONAME - _ZN28TPhoneCmdParamCallHeaderData11SetCNAPTextERK7TDesC16NS_27TPhoneTextClippingDirectionE @ 220 NONAME - _ZN28TPhoneCmdParamCallHeaderData11SetCallTypeEi @ 221 NONAME - _ZN28TPhoneCmdParamCallHeaderData11SetDivertedEi @ 222 NONAME - _ZN28TPhoneCmdParamCallHeaderData12SetCallStateEi @ 223 NONAME - _ZN28TPhoneCmdParamCallHeaderData12SetCipheringEi @ 224 NONAME - _ZN28TPhoneCmdParamCallHeaderData12SetLabelTextERK7TDesC16 @ 225 NONAME - _ZN28TPhoneCmdParamCallHeaderData12SetServiceIdEm @ 226 NONAME - _ZN28TPhoneCmdParamCallHeaderData12SetThumbnailEP10CFbsBitmap @ 227 NONAME - _ZN28TPhoneCmdParamCallHeaderData13SetCallerTextERK7TDesC16 @ 228 NONAME - _ZN28TPhoneCmdParamCallHeaderData13SetNumberTypeEi @ 229 NONAME - _ZN28TPhoneCmdParamCallHeaderData14SetContactLinkERK6TDesC8 @ 230 NONAME - _ZN28TPhoneCmdParamCallHeaderData15SetHasThumbnailEi @ 231 NONAME - _ZN28TPhoneCmdParamCallHeaderData17SetShortLabelTextERK7TDesC16 @ 232 NONAME - _ZN28TPhoneCmdParamCallHeaderData20SetRemotePhoneNumberERK7TDesC16 @ 233 NONAME - _ZN28TPhoneCmdParamCallHeaderData21SetParticipantListCLIENS_24TPhoneParticipantListCLIE @ 234 NONAME - _ZN28TPhoneCmdParamCallHeaderData28SetCipheringIndicatorAllowedEi @ 235 NONAME - _ZN28TPhoneCmdParamCallHeaderData8SetLine2Ei @ 236 NONAME - _ZN28TPhoneCmdParamCallHeaderDataC1Ev @ 237 NONAME - _ZN28TPhoneCmdParamCallHeaderDataC2Ev @ 238 NONAME - _ZN30CPhoneMainErrorMessagesHandler8InstanceEv @ 239 NONAME - _ZN31TPhoneCmdParamAudioAvailability17SetBTAccAvailableEi @ 240 NONAME - _ZN31TPhoneCmdParamAudioAvailability20SetWiredAccAvailableEi @ 241 NONAME - _ZN31TPhoneCmdParamAudioAvailabilityC1Ev @ 242 NONAME - _ZN31TPhoneCmdParamAudioAvailabilityC2Ev @ 243 NONAME - _ZN33TPhoneCmdParamIncallIndicatorData12SetCallStateEi @ 244 NONAME - _ZN33TPhoneCmdParamIncallIndicatorData12SetCipheringEi @ 245 NONAME - _ZN33TPhoneCmdParamIncallIndicatorData12SetEmergencyEi @ 246 NONAME - _ZN33TPhoneCmdParamIncallIndicatorData22SetLittleBubbleVisibleEi @ 247 NONAME - _ZN33TPhoneCmdParamIncallIndicatorData28SetCipheringIndicatorAllowedEi @ 248 NONAME - _ZN33TPhoneCmdParamIncallIndicatorData7SetModeEi @ 249 NONAME - _ZN33TPhoneCmdParamIncallIndicatorData7SetMuteEi @ 250 NONAME - _ZN33TPhoneCmdParamIncallIndicatorData8SetLine2Ei @ 251 NONAME - _ZN33TPhoneCmdParamIncallIndicatorDataC1Ev @ 252 NONAME - _ZN33TPhoneCmdParamIncallIndicatorDataC2Ev @ 253 NONAME - _ZN33TPhoneCmdParamNumberEntryObserver11SetObserverE9TCallBack @ 254 NONAME - _ZN33TPhoneCmdParamNumberEntryObserver8ObserverEv @ 255 NONAME - _ZN33TPhoneCmdParamNumberEntryObserverC1Ev @ 256 NONAME - _ZN33TPhoneCmdParamNumberEntryObserverC2Ev @ 257 NONAME - _ZN37TPhoneCmdParamEmergencyCallHeaderData12SetCipheringEi @ 258 NONAME - _ZN37TPhoneCmdParamEmergencyCallHeaderData12SetLabelTextERK7TDesC16 @ 259 NONAME - _ZN37TPhoneCmdParamEmergencyCallHeaderData13SetHeaderTextERK7TDesC16 @ 260 NONAME - _ZN37TPhoneCmdParamEmergencyCallHeaderData21SetOwnPhoneNumberTextERK7TDesC16 @ 261 NONAME - _ZN37TPhoneCmdParamEmergencyCallHeaderData28SetCipheringIndicatorAllowedEi @ 262 NONAME - _ZN37TPhoneCmdParamEmergencyCallHeaderDataC1Ev @ 263 NONAME - _ZN37TPhoneCmdParamEmergencyCallHeaderDataC2Ev @ 264 NONAME - _ZNK13CPhoneStorage17GetBlockedKeyListEv @ 265 NONAME - _ZNK17CPhoneCenRepProxy4FindERK4TUidmmR6RArrayImE @ 266 NONAME - _ZNK17CPhoneCenRepProxy6GetIntERK4TUidjRi @ 267 NONAME - _ZNK17CPhoneCenRepProxy7GetRealERK4TUidjRd @ 268 NONAME - _ZNK17CPhoneCenRepProxy9GetStringERK4TUidjR6TDes16 @ 269 NONAME - _ZNK18TPhoneCmdParamNote10ResourceIdEv @ 270 NONAME - _ZNK18TPhoneCmdParamNote14TextResourceIdEv @ 271 NONAME - _ZNK18TPhoneCmdParamNote4TextEv @ 272 NONAME - _ZNK18TPhoneCmdParamNote4ToneEv @ 273 NONAME - _ZNK18TPhoneCmdParamNote4TypeEv @ 274 NONAME - _ZNK18TPhoneCmdParamNote7TimeoutEv @ 275 NONAME - _ZNK18TPhoneCommandParam7ParamIdEv @ 276 NONAME - _ZNK19CPhoneQwertyHandler13IsQwertyInputEv @ 277 NONAME - _ZNK19TPhoneCmdParamQuery10ContentCbaEv @ 278 NONAME - _ZNK19TPhoneCmdParamQuery10DefaultCbaEv @ 279 NONAME - _ZNK19TPhoneCmdParamQuery11QueryPromptEv @ 280 NONAME - _ZNK19TPhoneCmdParamQuery14SendKeyEnabledEv @ 281 NONAME - _ZNK19TPhoneCmdParamQuery15QueryResourceIdEv @ 282 NONAME - _ZNK19TPhoneCmdParamQuery17CbaCommandMappingEi @ 283 NONAME - _ZNK19TPhoneCmdParamQuery25ItemTextArrayForListQueryEv @ 284 NONAME - _ZNK19TPhoneCmdParamQuery26GetCustomCommandForTimeOutERi @ 285 NONAME - _ZNK19TPhoneCmdParamQuery4ToneEv @ 286 NONAME - _ZNK19TPhoneCmdParamQuery7TimeOutEv @ 287 NONAME - _ZNK19TPhoneCmdParamQuery8DataTextEv @ 288 NONAME - _ZNK19TPhoneCmdParamQuery9QueryTypeEv @ 289 NONAME - _ZNK20TPhoneCmdParamBitmap10MaskBitmapEv @ 290 NONAME - _ZNK20TPhoneCmdParamBitmap6BitmapEv @ 291 NONAME - _ZNK21TPhoneCmdParamAppInfo13CustomMessageEv @ 292 NONAME - _ZNK21TPhoneCmdParamAppInfo15CustomMessageIdEv @ 293 NONAME - _ZNK21TPhoneCmdParamAppInfo17MultipleInstancesEv @ 294 NONAME - _ZNK21TPhoneCmdParamAppInfo5ParamEv @ 295 NONAME - _ZNK21TPhoneCmdParamAppInfo6AppUidEv @ 296 NONAME - _ZNK21TPhoneCmdParamAppInfo7ViewUidEv @ 297 NONAME - _ZNK21TPhoneCmdParamBoolean7BooleanEv @ 298 NONAME - _ZNK21TPhoneCmdParamDynMenu10ResourceIdEv @ 299 NONAME - _ZNK21TPhoneCmdParamInteger7IntegerEv @ 300 NONAME - _ZNK21TPhoneCmdParamPointer7PointerEv @ 301 NONAME - _ZNK21TPhoneCmdParamSfiData4NameEv @ 302 NONAME - _ZNK21TPhoneCmdParamSfiData6NumberEv @ 303 NONAME - _ZNK22CPhoneCallThemeMonitor22CallImageThemeFilePathEv @ 304 NONAME - _ZNK22CPhoneCallThemeMonitor22CallImageThemeSettingsEv @ 305 NONAME - _ZNK22TPhoneCmdParamKeyEvent8KeyEventEv @ 306 NONAME - _ZNK22TPhoneCmdParamKeyEvent9EventCodeEv @ 307 NONAME - _ZNK22TPhoneCmdParamRingTone11RingingTypeEv @ 308 NONAME - _ZNK22TPhoneCmdParamRingTone4TypeEv @ 309 NONAME - _ZNK22TPhoneCmdParamRingTone6VolumeEv @ 310 NONAME - _ZNK22TPhoneCmdParamRingTone8RingToneEv @ 311 NONAME - _ZNK22TPhoneCmdParamRingTone9TextToSayEv @ 312 NONAME - _ZNK23TPhoneCmdParamSpeedDial9ServiceIdEv @ 313 NONAME - _ZNK24TPhoneCmdParamGlobalNote12WaitForReadyEv @ 314 NONAME - _ZNK24TPhoneCmdParamGlobalNote14TextResourceIdEv @ 315 NONAME - _ZNK24TPhoneCmdParamGlobalNote4TextEv @ 316 NONAME - _ZNK24TPhoneCmdParamGlobalNote4ToneEv @ 317 NONAME - _ZNK24TPhoneCmdParamGlobalNote4TypeEv @ 318 NONAME - _ZNK24TPhoneCmdParamGlobalNote8SoftkeysEv @ 319 NONAME - _ZNK24TPhoneCmdParamKeyCapture11CaptureTypeEv @ 320 NONAME - _ZNK24TPhoneCmdParamKeyCapture3KeyEv @ 321 NONAME - _ZNK24TPhoneCmdParamKeyCapture7KeyCodeEv @ 322 NONAME - _ZNK25TPhoneCmdParamAudioOutput11AudioOutputEv @ 323 NONAME - _ZNK25TPhoneCmdParamTransEffect4TypeEv @ 324 NONAME - _ZNK26CPhoneResourceResolverBase17ResolveResourceIDERKi @ 325 NONAME - _ZNK26CPhoneResourceResolverBase27IsTelephonyFeatureSupportedEi @ 326 NONAME - _ZNK26TPhoneCmdParamProgressNote10ResourceIdEv @ 327 NONAME - _ZNK26TPhoneCmdParamProgressNote8WaitTimeEv @ 328 NONAME - _ZNK27TPhoneCmdParamCallStateData6CallIdEv @ 329 NONAME - _ZNK27TPhoneCmdParamCallStateData9CallStateEv @ 330 NONAME - _ZNK28TPhoneCmdParamCallHeaderData10CallerTextEv @ 331 NONAME - _ZNK28TPhoneCmdParamCallHeaderData10NumberTypeEv @ 332 NONAME - _ZNK28TPhoneCmdParamCallHeaderData11ContactLinkEv @ 333 NONAME - _ZNK28TPhoneCmdParamCallHeaderData12HasThumbnailEv @ 334 NONAME - _ZNK28TPhoneCmdParamCallHeaderData14ParticipantCLIEv @ 335 NONAME - _ZNK28TPhoneCmdParamCallHeaderData14ShortLabelTextEv @ 336 NONAME - _ZNK28TPhoneCmdParamCallHeaderData17RemotePhoneNumberEv @ 337 NONAME - _ZNK28TPhoneCmdParamCallHeaderData24CLITextClippingDirectionEv @ 338 NONAME - _ZNK28TPhoneCmdParamCallHeaderData25CNAPTextClippingDirectionEv @ 339 NONAME - _ZNK28TPhoneCmdParamCallHeaderData25CipheringIndicatorAllowedEv @ 340 NONAME - _ZNK28TPhoneCmdParamCallHeaderData5Line2Ev @ 341 NONAME - _ZNK28TPhoneCmdParamCallHeaderData7CLITextEv @ 342 NONAME - _ZNK28TPhoneCmdParamCallHeaderData7PictureEv @ 343 NONAME - _ZNK28TPhoneCmdParamCallHeaderData8CNAPTextEv @ 344 NONAME - _ZNK28TPhoneCmdParamCallHeaderData8CallTypeEv @ 345 NONAME - _ZNK28TPhoneCmdParamCallHeaderData8DivertedEv @ 346 NONAME - _ZNK28TPhoneCmdParamCallHeaderData9CallStateEv @ 347 NONAME - _ZNK28TPhoneCmdParamCallHeaderData9CipheringEv @ 348 NONAME - _ZNK28TPhoneCmdParamCallHeaderData9LabelTextEv @ 349 NONAME - _ZNK28TPhoneCmdParamCallHeaderData9ServiceIdEv @ 350 NONAME - _ZNK28TPhoneCmdParamCallHeaderData9ThumbnailEv @ 351 NONAME - _ZNK31TPhoneCmdParamAudioAvailability16IsBTAccAvailableEv @ 352 NONAME - _ZNK31TPhoneCmdParamAudioAvailability19IsWiredAccAvailableEv @ 353 NONAME - _ZNK33TPhoneCmdParamIncallIndicatorData19LittleBubbleVisibleEv @ 354 NONAME - _ZNK33TPhoneCmdParamIncallIndicatorData25CipheringIndicatorAllowedEv @ 355 NONAME - _ZNK33TPhoneCmdParamIncallIndicatorData4ModeEv @ 356 NONAME - _ZNK33TPhoneCmdParamIncallIndicatorData4MuteEv @ 357 NONAME - _ZNK33TPhoneCmdParamIncallIndicatorData5Line2Ev @ 358 NONAME - _ZNK33TPhoneCmdParamIncallIndicatorData9CallStateEv @ 359 NONAME - _ZNK33TPhoneCmdParamIncallIndicatorData9CipheringEv @ 360 NONAME - _ZNK33TPhoneCmdParamIncallIndicatorData9EmergencyEv @ 361 NONAME - _ZNK37TPhoneCmdParamEmergencyCallHeaderData10HeaderTextEv @ 362 NONAME - _ZNK37TPhoneCmdParamEmergencyCallHeaderData18OwnPhoneNumberTextEv @ 363 NONAME - _ZNK37TPhoneCmdParamEmergencyCallHeaderData25CipheringIndicatorAllowedEv @ 364 NONAME - _ZNK37TPhoneCmdParamEmergencyCallHeaderData9CipheringEv @ 365 NONAME - _ZNK37TPhoneCmdParamEmergencyCallHeaderData9LabelTextEv @ 366 NONAME - _ZTI11CPhoneTimer @ 367 NONAME - _ZTI12CPhoneLogger @ 368 NONAME - _ZTI13CPhoneStorage @ 369 NONAME - _ZTI17CPhoneCenRepProxy @ 370 NONAME - _ZTI17CPhonePubSubProxy @ 371 NONAME - _ZTI18CPhoneMethodLogger @ 372 NONAME - _ZTI19CPhoneQwertyHandler @ 373 NONAME - _ZTI20CPhoneClearBlacklist @ 374 NONAME - _ZTI20CPhoneRecoverySystem @ 375 NONAME - _ZTI22CPhoneCallThemeMonitor @ 376 NONAME - _ZTI22CPhoneLibraryContainer @ 377 NONAME - _ZTI23CPhoneQwertyModeMonitor @ 378 NONAME - _ZTI24CPhoneCenRepEventHandler @ 379 NONAME - _ZTI24CPhoneLangSettingMonitor @ 380 NONAME - _ZTI25CPhonePublishSubscriberAO @ 381 NONAME - _ZTI26CPhoneMainResourceResolver @ 382 NONAME - _ZTI26CPhoneResourceResolverBase @ 383 NONAME - _ZTI30CPhoneMainErrorMessagesHandler @ 384 NONAME - _ZTV11CPhoneTimer @ 385 NONAME - _ZTV12CPhoneLogger @ 386 NONAME - _ZTV13CPhoneStorage @ 387 NONAME - _ZTV17CPhoneCenRepProxy @ 388 NONAME - _ZTV17CPhonePubSubProxy @ 389 NONAME - _ZTV18CPhoneMethodLogger @ 390 NONAME - _ZTV19CPhoneQwertyHandler @ 391 NONAME - _ZTV20CPhoneClearBlacklist @ 392 NONAME - _ZTV20CPhoneRecoverySystem @ 393 NONAME - _ZTV22CPhoneCallThemeMonitor @ 394 NONAME - _ZTV22CPhoneLibraryContainer @ 395 NONAME - _ZTV23CPhoneQwertyModeMonitor @ 396 NONAME - _ZTV24CPhoneCenRepEventHandler @ 397 NONAME - _ZTV24CPhoneLangSettingMonitor @ 398 NONAME - _ZTV25CPhonePublishSubscriberAO @ 399 NONAME - _ZTV26CPhoneMainResourceResolver @ 400 NONAME - _ZTV26CPhoneResourceResolverBase @ 401 NONAME - _ZTV30CPhoneMainErrorMessagesHandler @ 402 NONAME - _ZThn4_N12CPhoneLoggerD0Ev @ 403 NONAME - _ZThn4_N12CPhoneLoggerD1Ev @ 404 NONAME - _ZThn4_N13CPhoneStorage14IsScreenLockedEv @ 405 NONAME - _ZThn4_N13CPhoneStorage15SetScreenLockedEi @ 406 NONAME - _ZThn4_N13CPhoneStorage19NeedToEnableKeylockEv @ 407 NONAME - _ZThn4_N13CPhoneStorage20ResetBlockedKeysListEv @ 408 NONAME - _ZThn4_N13CPhoneStorage22AppendBlockedKeysListLE12TStdScanCode @ 409 NONAME - _ZThn4_N13CPhoneStorage22IsBlockedKeysListEmptyEv @ 410 NONAME - _ZThn4_N13CPhoneStorage22SetNeedToEnableKeylockEi @ 411 NONAME - _ZThn4_N13CPhoneStorageD0Ev @ 412 NONAME - _ZThn4_N13CPhoneStorageD1Ev @ 413 NONAME - _ZThn4_N26CPhoneResourceResolverBaseD0Ev @ 414 NONAME - _ZThn4_N26CPhoneResourceResolverBaseD1Ev @ 415 NONAME - _ZThn4_NK13CPhoneStorage17GetBlockedKeyListEv @ 416 NONAME - _ZThn4_NK26CPhoneResourceResolverBase17ResolveResourceIDERKi @ 417 NONAME - _ZN24TPhoneCmdParamGlobalNote10SetTimeoutEi @ 418 NONAME - _ZNK24TPhoneCmdParamGlobalNote7TimeoutEv @ 419 NONAME + _ZN19TPhoneCmdParamQuery10SetTimeOutEi @ 75 NONAME + _ZN19TPhoneCmdParamQuery11SetDataTextEP6TDes16 @ 76 NONAME + _ZN19TPhoneCmdParamQuery12SetQueryTypeE15TPhoneQueryType @ 77 NONAME + _ZN19TPhoneCmdParamQuery13SetContentCbaEi @ 78 NONAME + _ZN19TPhoneCmdParamQuery13SetDefaultCbaEi @ 79 NONAME + _ZN19TPhoneCmdParamQuery14SetQueryPromptERK7TDesC16 @ 80 NONAME + _ZN19TPhoneCmdParamQuery17SetCommandParamIdEN18TPhoneCommandParam13TPhoneParamIdE @ 81 NONAME + _ZN19TPhoneCmdParamQuery17SetSendKeyEnabledEi @ 82 NONAME + _ZN19TPhoneCmdParamQuery18SetQueryResourceIdEi @ 83 NONAME + _ZN19TPhoneCmdParamQuery20QueryCommandObserverEv @ 84 NONAME + _ZN19TPhoneCmdParamQuery20SetCbaCommandMappingEii @ 85 NONAME + _ZN19TPhoneCmdParamQuery23SetQueryCommandObserverER26MPhoneQueryCommandObserver @ 86 NONAME + _ZN19TPhoneCmdParamQuery26SetCustomCommandForTimeOutEi @ 87 NONAME + _ZN19TPhoneCmdParamQuery28SetItemTextArrayForListQueryER12MDesC16Array @ 88 NONAME + _ZN19TPhoneCmdParamQuery7SetToneEi @ 89 NONAME + _ZN19TPhoneCmdParamQueryC1ERKS_ @ 90 NONAME + _ZN19TPhoneCmdParamQueryC1Ev @ 91 NONAME + _ZN19TPhoneCmdParamQueryC2ERKS_ @ 92 NONAME + _ZN19TPhoneCmdParamQueryC2Ev @ 93 NONAME + _ZN19TPhoneCmdParamQueryaSERKS_ @ 94 NONAME + _ZN20CPhoneClearBlacklist17ClearBlackListNowEv @ 95 NONAME + _ZN20CPhoneClearBlacklist23ClearBlackListOnNextKeyEv @ 96 NONAME + _ZN20CPhoneClearBlacklist7CreateLER10RWsSessionRK11RWindowBase @ 97 NONAME + _ZN20CPhoneClearBlacklist8InstanceEv @ 98 NONAME + _ZN20CPhoneClearBlacklistD0Ev @ 99 NONAME + _ZN20CPhoneClearBlacklistD1Ev @ 100 NONAME + _ZN20CPhoneClearBlacklistD2Ev @ 101 NONAME + _ZN20CPhoneRecoverySystem10RecoverNowEiai @ 102 NONAME + _ZN20CPhoneRecoverySystem19EnablePreconditionLEv @ 103 NONAME + _ZN20CPhoneRecoverySystem4AddLE9TCallBackaN19CTeleRecoverySystem14TRecoveryStateE @ 104 NONAME + _ZN20CPhoneRecoverySystem6RemoveEi @ 105 NONAME + _ZN20CPhoneRecoverySystem8InstanceEv @ 106 NONAME + _ZN20TPhoneCmdParamBitmap13SetMaskBitmapEP10CFbsBitmap @ 107 NONAME + _ZN20TPhoneCmdParamBitmap9SetBitmapEP10CFbsBitmap @ 108 NONAME + _ZN20TPhoneCmdParamBitmapC1Ev @ 109 NONAME + _ZN20TPhoneCmdParamBitmapC2Ev @ 110 NONAME + _ZN20TPhoneCmdParamString6StringEv @ 111 NONAME + _ZN20TPhoneCmdParamString9SetStringEP6TPtr16 @ 112 NONAME + _ZN20TPhoneCmdParamStringC1Ev @ 113 NONAME + _ZN20TPhoneCmdParamStringC2Ev @ 114 NONAME + _ZN21TPhoneCmdParamAppInfo10SetViewUidERK4TUid @ 115 NONAME + _ZN21TPhoneCmdParamAppInfo16SetCustomMessageERK6TDesC8 @ 116 NONAME + _ZN21TPhoneCmdParamAppInfo18SetCustomMessageIdERK4TUid @ 117 NONAME + _ZN21TPhoneCmdParamAppInfo20SetMultipleInstancesEi @ 118 NONAME + _ZN21TPhoneCmdParamAppInfo8SetParamERK6TDesC8 @ 119 NONAME + _ZN21TPhoneCmdParamAppInfo9SetAppUidERK4TUid @ 120 NONAME + _ZN21TPhoneCmdParamAppInfoC1Ev @ 121 NONAME + _ZN21TPhoneCmdParamAppInfoC2Ev @ 122 NONAME + _ZN21TPhoneCmdParamBoolean10SetBooleanEi @ 123 NONAME + _ZN21TPhoneCmdParamBooleanC1Ev @ 124 NONAME + _ZN21TPhoneCmdParamBooleanC2Ev @ 125 NONAME + _ZN21TPhoneCmdParamDynMenu10SetDynMenuEPv @ 126 NONAME + _ZN21TPhoneCmdParamDynMenu13SetResourceIdEi @ 127 NONAME + _ZN21TPhoneCmdParamDynMenu7DynMenuEv @ 128 NONAME + _ZN21TPhoneCmdParamDynMenuC1Ev @ 129 NONAME + _ZN21TPhoneCmdParamDynMenuC2Ev @ 130 NONAME + _ZN21TPhoneCmdParamInteger10SetIntegerEi @ 131 NONAME + _ZN21TPhoneCmdParamIntegerC1Ev @ 132 NONAME + _ZN21TPhoneCmdParamIntegerC2Ev @ 133 NONAME + _ZN21TPhoneCmdParamPointer10SetPointerEPv @ 134 NONAME + _ZN21TPhoneCmdParamPointerC1Ev @ 135 NONAME + _ZN21TPhoneCmdParamPointerC2Ev @ 136 NONAME + _ZN21TPhoneCmdParamSfiData7SetNameERK7TDesC16 @ 137 NONAME + _ZN21TPhoneCmdParamSfiData9SetNumberERK7TDesC16 @ 138 NONAME + _ZN21TPhoneCmdParamSfiDataC1Ev @ 139 NONAME + _ZN21TPhoneCmdParamSfiDataC2Ev @ 140 NONAME + _ZN22CPhoneCallThemeMonitor28SetCallThemeSettingsObserverEP31MPhoneCallThemeSettingsObserver @ 141 NONAME + _ZN22CPhoneCallThemeMonitor4NewLEv @ 142 NONAME + _ZN22CPhoneCallThemeMonitorD0Ev @ 143 NONAME + _ZN22CPhoneCallThemeMonitorD1Ev @ 144 NONAME + _ZN22CPhoneCallThemeMonitorD2Ev @ 145 NONAME + _ZN22CPhoneLibraryContainer11AddLibraryLERK8RLibrary @ 146 NONAME + _ZN22CPhoneLibraryContainer4NewLEv @ 147 NONAME + _ZN22CPhoneLibraryContainerD0Ev @ 148 NONAME + _ZN22CPhoneLibraryContainerD1Ev @ 149 NONAME + _ZN22CPhoneLibraryContainerD2Ev @ 150 NONAME + _ZN22TPhoneCmdParamKeyEvent11SetKeyEventERK9TKeyEvent @ 151 NONAME + _ZN22TPhoneCmdParamKeyEvent12SetEventCodeE10TEventCode @ 152 NONAME + _ZN22TPhoneCmdParamKeyEventC1Ev @ 153 NONAME + _ZN22TPhoneCmdParamKeyEventC2Ev @ 154 NONAME + _ZN22TPhoneCmdParamRingTone11SetRingToneERK7TDesC16 @ 155 NONAME + _ZN22TPhoneCmdParamRingTone12IsCallerTextEv @ 156 NONAME + _ZN22TPhoneCmdParamRingTone12SetTextToSayERK7TDesC16 @ 157 NONAME + _ZN22TPhoneCmdParamRingTone13IsCallerImageEv @ 158 NONAME + _ZN22TPhoneCmdParamRingTone14SetRingingTypeEi @ 159 NONAME + _ZN22TPhoneCmdParamRingTone19SetCallerTextStatusEi @ 160 NONAME + _ZN22TPhoneCmdParamRingTone20SetCallerImageStatusEi @ 161 NONAME + _ZN22TPhoneCmdParamRingTone7SetTypeE18TPhoneRingToneType @ 162 NONAME + _ZN22TPhoneCmdParamRingTone9SetVolumeEi @ 163 NONAME + _ZN22TPhoneCmdParamRingToneC1Ev @ 164 NONAME + _ZN22TPhoneCmdParamRingToneC2Ev @ 165 NONAME + _ZN24TPhoneCmdParamGlobalNote10SetTimeoutEi @ 166 NONAME + _ZN24TPhoneCmdParamGlobalNote11SetSoftkeysEi @ 167 NONAME + _ZN24TPhoneCmdParamGlobalNote15SetWaitForReadyEi @ 168 NONAME + _ZN24TPhoneCmdParamGlobalNote17SetTextResourceIdEi @ 169 NONAME + _ZN24TPhoneCmdParamGlobalNote21SetNotificationDialogEi @ 170 NONAME + _ZN24TPhoneCmdParamGlobalNote7SetTextERK7TDesC16 @ 171 NONAME + _ZN24TPhoneCmdParamGlobalNote7SetToneEi @ 172 NONAME + _ZN24TPhoneCmdParamGlobalNote7SetTypeE18TAknGlobalNoteType @ 173 NONAME + _ZN24TPhoneCmdParamGlobalNoteC1Ev @ 174 NONAME + _ZN24TPhoneCmdParamGlobalNoteC2Ev @ 175 NONAME + _ZN24TPhoneCmdParamKeyCapture10SetKeyCodeE8TKeyCode @ 176 NONAME + _ZN24TPhoneCmdParamKeyCapture14SetCaptureTypeE17TPhoneCaptureType @ 177 NONAME + _ZN24TPhoneCmdParamKeyCapture6SetKeyE12TStdScanCode @ 178 NONAME + _ZN24TPhoneCmdParamKeyCaptureC1Ev @ 179 NONAME + _ZN24TPhoneCmdParamKeyCaptureC2Ev @ 180 NONAME + _ZN25TPhoneCmdParamAudioOutput14SetAudioOutputE14TPEAudioOutput @ 181 NONAME + _ZN25TPhoneCmdParamAudioOutputC1Ev @ 182 NONAME + _ZN25TPhoneCmdParamAudioOutputC2Ev @ 183 NONAME + _ZN25TPhoneCmdParamTransEffect7SetTypeE21TPhoneTransEffectType @ 184 NONAME + _ZN25TPhoneCmdParamTransEffectC1Ev @ 185 NONAME + _ZN25TPhoneCmdParamTransEffectC2Ev @ 186 NONAME + _ZN26CPhoneMainResourceResolver8InstanceEv @ 187 NONAME + _ZN26CPhoneResourceResolverBase14BaseConstructLEv @ 188 NONAME + _ZN26CPhoneResourceResolverBaseC1Ev @ 189 NONAME + _ZN26CPhoneResourceResolverBaseC2Ev @ 190 NONAME + _ZN26CPhoneResourceResolverBaseD0Ev @ 191 NONAME + _ZN26CPhoneResourceResolverBaseD1Ev @ 192 NONAME + _ZN26CPhoneResourceResolverBaseD2Ev @ 193 NONAME + _ZN26TPhoneCmdParamCustomDialer16DialerControllerEv @ 194 NONAME + _ZN26TPhoneCmdParamCustomDialer19SetDialerControllerEP22MPhoneDialerController @ 195 NONAME + _ZN26TPhoneCmdParamCustomDialerC1Ev @ 196 NONAME + _ZN26TPhoneCmdParamCustomDialerC2Ev @ 197 NONAME + _ZN26TPhoneCmdParamProgressNote11SetWaitTimeE27TTimeIntervalMicroSeconds32 @ 198 NONAME + _ZN26TPhoneCmdParamProgressNote13SetResourceIdEi @ 199 NONAME + _ZN26TPhoneCmdParamProgressNoteC1Ev @ 200 NONAME + _ZN26TPhoneCmdParamProgressNoteC2Ev @ 201 NONAME + _ZN27TPhoneCmdParamCallStateData12SetCallStateEi @ 202 NONAME + _ZN27TPhoneCmdParamCallStateData9SetCallIdEi @ 203 NONAME + _ZN27TPhoneCmdParamCallStateDataC1Ev @ 204 NONAME + _ZN27TPhoneCmdParamCallStateDataC2Ev @ 205 NONAME + _ZN28TPhoneCmdParamCallHeaderData10SetCLITextERK7TDesC16NS_27TPhoneTextClippingDirectionE @ 206 NONAME + _ZN28TPhoneCmdParamCallHeaderData10SetPictureERK7TDesC16 @ 207 NONAME + _ZN28TPhoneCmdParamCallHeaderData11SetCNAPTextERK7TDesC16NS_27TPhoneTextClippingDirectionE @ 208 NONAME + _ZN28TPhoneCmdParamCallHeaderData11SetCallTypeEi @ 209 NONAME + _ZN28TPhoneCmdParamCallHeaderData11SetDivertedEi @ 210 NONAME + _ZN28TPhoneCmdParamCallHeaderData12SetCallStateEi @ 211 NONAME + _ZN28TPhoneCmdParamCallHeaderData12SetCipheringEi @ 212 NONAME + _ZN28TPhoneCmdParamCallHeaderData12SetLabelTextERK7TDesC16 @ 213 NONAME + _ZN28TPhoneCmdParamCallHeaderData12SetServiceIdEm @ 214 NONAME + _ZN28TPhoneCmdParamCallHeaderData12SetThumbnailEP10CFbsBitmap @ 215 NONAME + _ZN28TPhoneCmdParamCallHeaderData13SetCallerTextERK7TDesC16 @ 216 NONAME + _ZN28TPhoneCmdParamCallHeaderData13SetNumberTypeEi @ 217 NONAME + _ZN28TPhoneCmdParamCallHeaderData14SetContactLinkERK6TDesC8 @ 218 NONAME + _ZN28TPhoneCmdParamCallHeaderData15SetHasThumbnailEi @ 219 NONAME + _ZN28TPhoneCmdParamCallHeaderData17SetShortLabelTextERK7TDesC16 @ 220 NONAME + _ZN28TPhoneCmdParamCallHeaderData20SetRemotePhoneNumberERK7TDesC16 @ 221 NONAME + _ZN28TPhoneCmdParamCallHeaderData21SetParticipantListCLIENS_24TPhoneParticipantListCLIE @ 222 NONAME + _ZN28TPhoneCmdParamCallHeaderData28SetCipheringIndicatorAllowedEi @ 223 NONAME + _ZN28TPhoneCmdParamCallHeaderData8SetLine2Ei @ 224 NONAME + _ZN28TPhoneCmdParamCallHeaderDataC1Ev @ 225 NONAME + _ZN28TPhoneCmdParamCallHeaderDataC2Ev @ 226 NONAME + _ZN30CPhoneMainErrorMessagesHandler8InstanceEv @ 227 NONAME + _ZN31TPhoneCmdParamAudioAvailability17SetBTAccAvailableEi @ 228 NONAME + _ZN31TPhoneCmdParamAudioAvailability20SetWiredAccAvailableEi @ 229 NONAME + _ZN31TPhoneCmdParamAudioAvailabilityC1Ev @ 230 NONAME + _ZN31TPhoneCmdParamAudioAvailabilityC2Ev @ 231 NONAME + _ZN33TPhoneCmdParamIncallIndicatorData12SetCallStateEi @ 232 NONAME + _ZN33TPhoneCmdParamIncallIndicatorData12SetCipheringEi @ 233 NONAME + _ZN33TPhoneCmdParamIncallIndicatorData12SetEmergencyEi @ 234 NONAME + _ZN33TPhoneCmdParamIncallIndicatorData22SetLittleBubbleVisibleEi @ 235 NONAME + _ZN33TPhoneCmdParamIncallIndicatorData28SetCipheringIndicatorAllowedEi @ 236 NONAME + _ZN33TPhoneCmdParamIncallIndicatorData7SetModeEi @ 237 NONAME + _ZN33TPhoneCmdParamIncallIndicatorData7SetMuteEi @ 238 NONAME + _ZN33TPhoneCmdParamIncallIndicatorData8SetLine2Ei @ 239 NONAME + _ZN33TPhoneCmdParamIncallIndicatorDataC1Ev @ 240 NONAME + _ZN33TPhoneCmdParamIncallIndicatorDataC2Ev @ 241 NONAME + _ZN33TPhoneCmdParamNumberEntryObserver11SetObserverE9TCallBack @ 242 NONAME + _ZN33TPhoneCmdParamNumberEntryObserver8ObserverEv @ 243 NONAME + _ZN33TPhoneCmdParamNumberEntryObserverC1Ev @ 244 NONAME + _ZN33TPhoneCmdParamNumberEntryObserverC2Ev @ 245 NONAME + _ZN37TPhoneCmdParamEmergencyCallHeaderData12SetCipheringEi @ 246 NONAME + _ZN37TPhoneCmdParamEmergencyCallHeaderData12SetLabelTextERK7TDesC16 @ 247 NONAME + _ZN37TPhoneCmdParamEmergencyCallHeaderData13SetHeaderTextERK7TDesC16 @ 248 NONAME + _ZN37TPhoneCmdParamEmergencyCallHeaderData21SetOwnPhoneNumberTextERK7TDesC16 @ 249 NONAME + _ZN37TPhoneCmdParamEmergencyCallHeaderData28SetCipheringIndicatorAllowedEi @ 250 NONAME + _ZN37TPhoneCmdParamEmergencyCallHeaderDataC1Ev @ 251 NONAME + _ZN37TPhoneCmdParamEmergencyCallHeaderDataC2Ev @ 252 NONAME + _ZNK13CPhoneStorage17GetBlockedKeyListEv @ 253 NONAME + _ZNK17CPhoneCenRepProxy4FindERK4TUidmmR6RArrayImE @ 254 NONAME + _ZNK17CPhoneCenRepProxy6GetIntERK4TUidjRi @ 255 NONAME + _ZNK17CPhoneCenRepProxy7GetRealERK4TUidjRd @ 256 NONAME + _ZNK17CPhoneCenRepProxy9GetStringERK4TUidjR6TDes16 @ 257 NONAME + _ZNK18TPhoneCmdParamNote10ResourceIdEv @ 258 NONAME + _ZNK18TPhoneCmdParamNote14TextResourceIdEv @ 259 NONAME + _ZNK18TPhoneCmdParamNote4TextEv @ 260 NONAME + _ZNK18TPhoneCmdParamNote4ToneEv @ 261 NONAME + _ZNK18TPhoneCmdParamNote4TypeEv @ 262 NONAME + _ZNK18TPhoneCmdParamNote7TimeoutEv @ 263 NONAME + _ZNK18TPhoneCommandParam7ParamIdEv @ 264 NONAME + _ZNK19TPhoneCmdParamQuery10ContentCbaEv @ 265 NONAME + _ZNK19TPhoneCmdParamQuery10DefaultCbaEv @ 266 NONAME + _ZNK19TPhoneCmdParamQuery11QueryPromptEv @ 267 NONAME + _ZNK19TPhoneCmdParamQuery14SendKeyEnabledEv @ 268 NONAME + _ZNK19TPhoneCmdParamQuery15QueryResourceIdEv @ 269 NONAME + _ZNK19TPhoneCmdParamQuery17CbaCommandMappingEi @ 270 NONAME + _ZNK19TPhoneCmdParamQuery25ItemTextArrayForListQueryEv @ 271 NONAME + _ZNK19TPhoneCmdParamQuery26GetCustomCommandForTimeOutERi @ 272 NONAME + _ZNK19TPhoneCmdParamQuery4ToneEv @ 273 NONAME + _ZNK19TPhoneCmdParamQuery7TimeOutEv @ 274 NONAME + _ZNK19TPhoneCmdParamQuery8DataTextEv @ 275 NONAME + _ZNK19TPhoneCmdParamQuery9QueryTypeEv @ 276 NONAME + _ZNK20TPhoneCmdParamBitmap10MaskBitmapEv @ 277 NONAME + _ZNK20TPhoneCmdParamBitmap6BitmapEv @ 278 NONAME + _ZNK21TPhoneCmdParamAppInfo13CustomMessageEv @ 279 NONAME + _ZNK21TPhoneCmdParamAppInfo15CustomMessageIdEv @ 280 NONAME + _ZNK21TPhoneCmdParamAppInfo17MultipleInstancesEv @ 281 NONAME + _ZNK21TPhoneCmdParamAppInfo5ParamEv @ 282 NONAME + _ZNK21TPhoneCmdParamAppInfo6AppUidEv @ 283 NONAME + _ZNK21TPhoneCmdParamAppInfo7ViewUidEv @ 284 NONAME + _ZNK21TPhoneCmdParamBoolean7BooleanEv @ 285 NONAME + _ZNK21TPhoneCmdParamDynMenu10ResourceIdEv @ 286 NONAME + _ZNK21TPhoneCmdParamInteger7IntegerEv @ 287 NONAME + _ZNK21TPhoneCmdParamPointer7PointerEv @ 288 NONAME + _ZNK21TPhoneCmdParamSfiData4NameEv @ 289 NONAME + _ZNK21TPhoneCmdParamSfiData6NumberEv @ 290 NONAME + _ZNK22CPhoneCallThemeMonitor22CallImageThemeFilePathEv @ 291 NONAME + _ZNK22CPhoneCallThemeMonitor22CallImageThemeSettingsEv @ 292 NONAME + _ZNK22TPhoneCmdParamKeyEvent8KeyEventEv @ 293 NONAME + _ZNK22TPhoneCmdParamKeyEvent9EventCodeEv @ 294 NONAME + _ZNK22TPhoneCmdParamRingTone11RingingTypeEv @ 295 NONAME + _ZNK22TPhoneCmdParamRingTone4TypeEv @ 296 NONAME + _ZNK22TPhoneCmdParamRingTone6VolumeEv @ 297 NONAME + _ZNK22TPhoneCmdParamRingTone8RingToneEv @ 298 NONAME + _ZNK22TPhoneCmdParamRingTone9TextToSayEv @ 299 NONAME + _ZNK24TPhoneCmdParamGlobalNote12WaitForReadyEv @ 300 NONAME + _ZNK24TPhoneCmdParamGlobalNote14TextResourceIdEv @ 301 NONAME + _ZNK24TPhoneCmdParamGlobalNote18NotificationDialogEv @ 302 NONAME + _ZNK24TPhoneCmdParamGlobalNote4TextEv @ 303 NONAME + _ZNK24TPhoneCmdParamGlobalNote4ToneEv @ 304 NONAME + _ZNK24TPhoneCmdParamGlobalNote4TypeEv @ 305 NONAME + _ZNK24TPhoneCmdParamGlobalNote7TimeoutEv @ 306 NONAME + _ZNK24TPhoneCmdParamGlobalNote8SoftkeysEv @ 307 NONAME + _ZNK24TPhoneCmdParamKeyCapture11CaptureTypeEv @ 308 NONAME + _ZNK24TPhoneCmdParamKeyCapture3KeyEv @ 309 NONAME + _ZNK24TPhoneCmdParamKeyCapture7KeyCodeEv @ 310 NONAME + _ZNK25TPhoneCmdParamAudioOutput11AudioOutputEv @ 311 NONAME + _ZNK25TPhoneCmdParamTransEffect4TypeEv @ 312 NONAME + _ZNK26CPhoneResourceResolverBase17ResolveResourceIDERKi @ 313 NONAME + _ZNK26CPhoneResourceResolverBase27IsTelephonyFeatureSupportedEi @ 314 NONAME + _ZNK26TPhoneCmdParamProgressNote10ResourceIdEv @ 315 NONAME + _ZNK26TPhoneCmdParamProgressNote8WaitTimeEv @ 316 NONAME + _ZNK27TPhoneCmdParamCallStateData6CallIdEv @ 317 NONAME + _ZNK27TPhoneCmdParamCallStateData9CallStateEv @ 318 NONAME + _ZNK28TPhoneCmdParamCallHeaderData10CallerTextEv @ 319 NONAME + _ZNK28TPhoneCmdParamCallHeaderData10NumberTypeEv @ 320 NONAME + _ZNK28TPhoneCmdParamCallHeaderData11ContactLinkEv @ 321 NONAME + _ZNK28TPhoneCmdParamCallHeaderData12HasThumbnailEv @ 322 NONAME + _ZNK28TPhoneCmdParamCallHeaderData14ParticipantCLIEv @ 323 NONAME + _ZNK28TPhoneCmdParamCallHeaderData14ShortLabelTextEv @ 324 NONAME + _ZNK28TPhoneCmdParamCallHeaderData17RemotePhoneNumberEv @ 325 NONAME + _ZNK28TPhoneCmdParamCallHeaderData24CLITextClippingDirectionEv @ 326 NONAME + _ZNK28TPhoneCmdParamCallHeaderData25CNAPTextClippingDirectionEv @ 327 NONAME + _ZNK28TPhoneCmdParamCallHeaderData25CipheringIndicatorAllowedEv @ 328 NONAME + _ZNK28TPhoneCmdParamCallHeaderData5Line2Ev @ 329 NONAME + _ZNK28TPhoneCmdParamCallHeaderData7CLITextEv @ 330 NONAME + _ZNK28TPhoneCmdParamCallHeaderData7PictureEv @ 331 NONAME + _ZNK28TPhoneCmdParamCallHeaderData8CNAPTextEv @ 332 NONAME + _ZNK28TPhoneCmdParamCallHeaderData8CallTypeEv @ 333 NONAME + _ZNK28TPhoneCmdParamCallHeaderData8DivertedEv @ 334 NONAME + _ZNK28TPhoneCmdParamCallHeaderData9CallStateEv @ 335 NONAME + _ZNK28TPhoneCmdParamCallHeaderData9CipheringEv @ 336 NONAME + _ZNK28TPhoneCmdParamCallHeaderData9LabelTextEv @ 337 NONAME + _ZNK28TPhoneCmdParamCallHeaderData9ServiceIdEv @ 338 NONAME + _ZNK28TPhoneCmdParamCallHeaderData9ThumbnailEv @ 339 NONAME + _ZNK31TPhoneCmdParamAudioAvailability16IsBTAccAvailableEv @ 340 NONAME + _ZNK31TPhoneCmdParamAudioAvailability19IsWiredAccAvailableEv @ 341 NONAME + _ZNK33TPhoneCmdParamIncallIndicatorData19LittleBubbleVisibleEv @ 342 NONAME + _ZNK33TPhoneCmdParamIncallIndicatorData25CipheringIndicatorAllowedEv @ 343 NONAME + _ZNK33TPhoneCmdParamIncallIndicatorData4ModeEv @ 344 NONAME + _ZNK33TPhoneCmdParamIncallIndicatorData4MuteEv @ 345 NONAME + _ZNK33TPhoneCmdParamIncallIndicatorData5Line2Ev @ 346 NONAME + _ZNK33TPhoneCmdParamIncallIndicatorData9CallStateEv @ 347 NONAME + _ZNK33TPhoneCmdParamIncallIndicatorData9CipheringEv @ 348 NONAME + _ZNK33TPhoneCmdParamIncallIndicatorData9EmergencyEv @ 349 NONAME + _ZNK37TPhoneCmdParamEmergencyCallHeaderData10HeaderTextEv @ 350 NONAME + _ZNK37TPhoneCmdParamEmergencyCallHeaderData18OwnPhoneNumberTextEv @ 351 NONAME + _ZNK37TPhoneCmdParamEmergencyCallHeaderData25CipheringIndicatorAllowedEv @ 352 NONAME + _ZNK37TPhoneCmdParamEmergencyCallHeaderData9CipheringEv @ 353 NONAME + _ZNK37TPhoneCmdParamEmergencyCallHeaderData9LabelTextEv @ 354 NONAME + _ZTI11CPhoneTimer @ 355 NONAME + _ZTI12CPhoneLogger @ 356 NONAME + _ZTI13CPhoneStorage @ 357 NONAME + _ZTI17CPhoneCenRepProxy @ 358 NONAME + _ZTI17CPhonePubSubProxy @ 359 NONAME + _ZTI18CPhoneMethodLogger @ 360 NONAME + _ZTI20CPhoneClearBlacklist @ 361 NONAME + _ZTI20CPhoneRecoverySystem @ 362 NONAME + _ZTI22CPhoneCallThemeMonitor @ 363 NONAME + _ZTI22CPhoneLibraryContainer @ 364 NONAME + _ZTI24CPhoneCenRepEventHandler @ 365 NONAME + _ZTI25CPhonePublishSubscriberAO @ 366 NONAME + _ZTI26CPhoneMainResourceResolver @ 367 NONAME + _ZTI26CPhoneResourceResolverBase @ 368 NONAME + _ZTI30CPhoneMainErrorMessagesHandler @ 369 NONAME + _ZTV11CPhoneTimer @ 370 NONAME + _ZTV12CPhoneLogger @ 371 NONAME + _ZTV13CPhoneStorage @ 372 NONAME + _ZTV17CPhoneCenRepProxy @ 373 NONAME + _ZTV17CPhonePubSubProxy @ 374 NONAME + _ZTV18CPhoneMethodLogger @ 375 NONAME + _ZTV20CPhoneClearBlacklist @ 376 NONAME + _ZTV20CPhoneRecoverySystem @ 377 NONAME + _ZTV22CPhoneCallThemeMonitor @ 378 NONAME + _ZTV22CPhoneLibraryContainer @ 379 NONAME + _ZTV24CPhoneCenRepEventHandler @ 380 NONAME + _ZTV25CPhonePublishSubscriberAO @ 381 NONAME + _ZTV26CPhoneMainResourceResolver @ 382 NONAME + _ZTV26CPhoneResourceResolverBase @ 383 NONAME + _ZTV30CPhoneMainErrorMessagesHandler @ 384 NONAME + _ZThn4_N12CPhoneLoggerD0Ev @ 385 NONAME + _ZThn4_N12CPhoneLoggerD1Ev @ 386 NONAME + _ZThn4_N13CPhoneStorage14IsScreenLockedEv @ 387 NONAME + _ZThn4_N13CPhoneStorage15SetScreenLockedEi @ 388 NONAME + _ZThn4_N13CPhoneStorage19NeedToEnableKeylockEv @ 389 NONAME + _ZThn4_N13CPhoneStorage20ResetBlockedKeysListEv @ 390 NONAME + _ZThn4_N13CPhoneStorage22AppendBlockedKeysListLE12TStdScanCode @ 391 NONAME + _ZThn4_N13CPhoneStorage22IsBlockedKeysListEmptyEv @ 392 NONAME + _ZThn4_N13CPhoneStorage22SetNeedToEnableKeylockEi @ 393 NONAME + _ZThn4_N13CPhoneStorageD0Ev @ 394 NONAME + _ZThn4_N13CPhoneStorageD1Ev @ 395 NONAME + _ZThn4_N26CPhoneResourceResolverBaseD0Ev @ 396 NONAME + _ZThn4_N26CPhoneResourceResolverBaseD1Ev @ 397 NONAME + _ZThn4_NK13CPhoneStorage17GetBlockedKeyListEv @ 398 NONAME + _ZThn4_NK26CPhoneResourceResolverBase17ResolveResourceIDERKi @ 399 NONAME diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiutils/group/phoneuiutils.mmp --- a/phoneapp/phoneuiutils/group/phoneuiutils.mmp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiutils/group/phoneuiutils.mmp Wed Jun 23 18:12:20 2010 +0300 @@ -39,15 +39,12 @@ SOURCE cphonecenrepproxy.cpp SOURCE cphoneclearblacklist.cpp SOURCE cphonekeys.cpp -SOURCE cphonelangsettingmonitor.cpp SOURCE cphonelibrarycontainer.cpp SOURCE cphonelogger.cpp SOURCE cphonemainresourceresolver.cpp SOURCE cphonemainerrormessageshandler.cpp SOURCE cphonepublishsubscriberao.cpp SOURCE cphonepubsubproxy.cpp -SOURCE cphoneqwertyhandler.cpp -SOURCE cphoneqwertymodemonitor.cpp SOURCE cphonerecoverysystem.cpp SOURCE cphoneresourceresolverbase.cpp SOURCE cphonetimer.cpp @@ -86,7 +83,6 @@ // <-- QT PHONE START --> //SOURCE tphonecmdparamsingleitemfetch.cpp // <-- QT PHONE END --> -SOURCE tphonecmdparamspeeddial.cpp SOURCE tphonecmdparamstring.cpp SOURCE tphonecommandparam.cpp SOURCE tphonecmdparamtranseffect.cpp diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiutils/inc/cphonelangsettingmonitor.h --- a/phoneapp/phoneuiutils/inc/cphonelangsettingmonitor.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,102 +0,0 @@ -/* -* 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: Monitor for input language setting -* -*/ - -#ifndef CPHONELANGSETTINGMONITOR_H -#define CPHONELANGSETTINGMONITOR_H - -// INCLUDES -#include -#include "mphonecenrepobserver.h" - -// CLASS DECLARATION -// FORWARD DECLARATIONS -class MPhoneLangSettingObserver; - -/** -* Monitor for call theme settings. -* -*/ -class CPhoneLangSettingMonitor : public CBase, private MPhoneCenRepObserver - { - public: - - /** - * Two-phased constructor. - */ - static CPhoneLangSettingMonitor* NewL(); - - /** - * Destructor. - */ - virtual ~CPhoneLangSettingMonitor(); - - public: // New functions - - /** - * Get input language id. - * @since Series 60 3.1 - * @return Language id. - */ - TInt InputLanguage() const; - - /** - * Add observer. - * @since Series 60 3.1 - * @param aObserver Observer. - */ - void AddObserverL( MPhoneLangSettingObserver& aObserver ); - - /** - * Remove observer. - * @since Series 60 3.1 - * @param aObserver Observer. - */ - void RemoveObserver( MPhoneLangSettingObserver& aObserver ); - - protected: // Functions from base classes - - /** - * Handle the change of the setting from Central Repository - * @param aUid identifing the central repository UID. - * @param aId central repository ID. - */ - virtual void HandleCenRepChangeL( - const TUid& aUid, - const TUint aId ); - - private: - - /** - * C++ default constructor. - */ - CPhoneLangSettingMonitor(); - - /** - * By default Symbian 2nd phase constructor is private. - */ - void ConstructL(); - - private: // Data - // AI Setting Change Observer array. - RPointerArray< MPhoneLangSettingObserver > iObserverArray; - // Language Setting. - TInt iInputLanguageSetting; - }; - -#endif // CPHONELANGSETTINGMONITOR_H - -// End of File diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiutils/inc/cphoneqwertyhandler.h --- a/phoneapp/phoneuiutils/inc/cphoneqwertyhandler.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,124 +0,0 @@ -/* -* 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: Input method related functionality. -* -*/ - - - -#ifndef CPHONEQWERTYHANDLER_H -#define CPHONEQWERTYHANDLER_H - -// INCLUDES -#include -#include "mphoneqwertymodeobserver.h" -#include "mphonelangsettingobserver.h" -#include -#include - -// CONSTANTS - -// FORWARD DECLARATIONS -class CPhoneLangSettingMonitor; -class CPhoneQwertyModeMonitor; - -// CLASS DECLARATION - -/** -* Input method related functionality. -* -*/ -class CPhoneQwertyHandler : public CBase, - private MPhoneLangSettingObserver, - private MPhoneQwertyModeObserver - { - friend class T_CPhoneQwertyHandlerUT; - - public: - - /** - * Two-phased constructor. - */ - IMPORT_C static CPhoneQwertyHandler* NewL(); - - /** - * Destructor. - */ - IMPORT_C virtual ~CPhoneQwertyHandler(); - - /** - * Checks if qwerty input is used. - * @return ETrue if in qwerty mode. - */ - IMPORT_C TBool IsQwertyInput() const; - - /** - * Gets keycode according to current keyboard mapping. - */ - IMPORT_C TInt NumericKeyCode( const TKeyEvent& aKeyEvent ); - - private: - - /** - * @see MIdleLangSettingObserver. - */ - void HandleInputLanguageSettingChange( TInt aLanguage ); - - /** - * @see MIdleQwertyModeObserver. - */ - void HandleQwertyModeChange( TInt aMode ); - - /** - * @see MIdleQwertyModeObserver. - */ - void HandleKeyboardLayoutChange(); - - /** - * C++ default constructor. - */ - CPhoneQwertyHandler(); - - /** - * By default Symbian 2nd phase constructor is private. - */ - void ConstructL(); - - /** - * LoadNumericKeyBindings - */ - void LoadNumericKeyBindings( TInt aLanguage, TInt aKeyboard ); - - - private: // Data - - // Input language - TInt iInputLanguageId; - - // Qwerty mode - TInt iQwertyMode; - - // Language setting monitor - CPhoneLangSettingMonitor* iLangSettingMonitor; - - // Qwerty mode monitor - CPhoneQwertyModeMonitor* iQwertyModeMonitor; - - // RArray - RArray iNumericKeys; - }; - -#endif // CPHONEQWERTYHANDLER_H - -// End of File diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiutils/inc/cphoneqwertymodemonitor.h --- a/phoneapp/phoneuiutils/inc/cphoneqwertymodemonitor.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,137 +0,0 @@ -/* -* 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: Qwerty Mode Monitor. -* -*/ - - -#ifndef CPHONEQWERTYMODEMONITOR_H -#define CPHONEQWERTYMODEMONITOR_H - -// INCLUDES -#include "mphonepubsubobserver.h" -#include "mphoneqwertymodeobserver.h" - - -// CLASS DECLARATION - -/** -* Qwerty Mode Monitor. -*/ -class CPhoneQwertyModeMonitor - : public CBase, - private MPhonePubSubObserver - { - friend class T_CPhoneQwertyModeMonitorUT; - - public: // Constructors and destructor - - /** - * Two-phased constructor. - * @return New instance - */ - static CPhoneQwertyModeMonitor* NewL(); - /** - * Destructor. - */ - virtual ~CPhoneQwertyModeMonitor(); - - protected: // Functions from base classes - - /** - * Handle the change of the setting from P&S key. - * @param aUid identifing the P&S gategory. - * @param aId P&S key. - * @param aValue Current value of the key. - */ - virtual void HandlePropertyChangedL( - const TUid& aCategory, - const TUint aKey, - const TInt aValue ); - - public: // New methods - - /** - * Gets current qwerty mode. - * @return Current qwerty mode. - */ - TInt QwertyMode() const; - - /** - * Gets current keyboard. - * @return Current keyboard. - */ - TInt Keyboard() const; - - /** - * Adds qwerty mdoe observer. - * @param aObserver Observer object. - */ - void AddObserverL( MPhoneQwertyModeObserver& aObserver ); - - /** - * Removes qwerty mode observer. - * @param aObserver Observer object. - */ - void RemoveObserver( MPhoneQwertyModeObserver& aObserver ); - - private: - - /** - * C++ default constructor. - */ - CPhoneQwertyModeMonitor(); - - /** - * By default Symbian OS constructor is private. - */ - void ConstructL(); - - /** - * Current qwerty mode. - */ - TInt GetQwertyMode() const; - - /** - * Current keyboard. - */ - TInt GetKeyboard() const; - - private: // Data - - // Call State Change Observer array. - RPointerArray< MPhoneQwertyModeObserver > iObserverArray; - - // Current qwerty mode. - TInt iQwertyMode; - - //Current keyboard. - TInt iKeyboard; - }; - -#endif // CPHONEQWERTYMODEMONITOR_H - -// End of File - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiutils/inc/phoneconstants.h --- a/phoneapp/phoneuiutils/inc/phoneconstants.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiutils/inc/phoneconstants.h Wed Jun 23 18:12:20 2010 +0300 @@ -46,9 +46,7 @@ const TUid KPhoneUidAppPhonebook = { 0x101F4CCE }; // PhoneBook const TUid KPhoneUidAppPhoneInfo = { 0x101fc0ef }; // Phone Info const TUid KPhoneUidAppFTD = { 0x100058F2 }; // Field Test Display -const TUid KDeviceManagerUid = {0x101F6DE5}; // Device manager application const TUid KUidStartupApplication = { 0x100058F4 }; // Startup application -const TUid KUidSpdia = { 0x1000590A }; // Speeddial application. const TUid KVtUiAppUidValue = { 0x101F8681 }; // Video Telephony application // Contants below define which view will be activated. @@ -163,12 +161,6 @@ // The character to be used as the 'soft pause' character, by DTMF code. const TUint KPhoneDtmfPauseCharacter = 'p'; -// The character to be used as the 'speed-dial' character, by DTMF code. -const TUint KPhoneDtmfSpeedDialCharacter = '+'; - -// The length of the speed dial prefix, used to prevent buffer overflow -const TUint KPhoneDtmfSpeedDialPrefixLength = 1; - // Following, are the standard DTMF characters... const TInt KPhoneDtmfHashCharacter = '#'; const TInt KPhoneDtmfStarCharacter = '*'; @@ -309,12 +301,6 @@ // Conference call id const TInt KConferenceCallId = 8; -// LifeTimer const -const TInt KPhoneLifeTimerHoursLength = 6; -const TInt KPhoneLifeTimerMinutesLength = 2; -const TInt KTimerTextLength = 64; -const TInt KTimerMinuteSeparator = 2; - //AudioVolume const // CONSTANTS const TInt KPhoneDefaultVolume = 4; diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiutils/inc/phoneloggerviewcommands.h --- a/phoneapp/phoneuiutils/inc/phoneloggerviewcommands.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiutils/inc/phoneloggerviewcommands.h Wed Jun 23 18:12:20 2010 +0300 @@ -161,12 +161,6 @@ EPhoneViewStopCapturingKey, /** EPhoneViewSetGlobalNotifiersDisabled */ EPhoneViewSetGlobalNotifiersDisabled, - /** EPhoneViewSetSpeedDialLocation */ - EPhoneViewSetSpeedDialLocation, - /** EPhoneViewGetNumberFromSpeedDialLocation */ - EPhoneViewGetNumberFromSpeedDialLocation, - /** EPhoneViewAssignSpeedDialLocation */ - EPhoneViewAssignSpeedDialLocation, /** EPhoneViewGetHoldFlag */ EPhoneViewGetHoldFlag, /** EPhoneViewSetHoldFlag */ diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiutils/inc/phoneresourceids.h --- a/phoneapp/phoneuiutils/inc/phoneresourceids.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiutils/inc/phoneresourceids.h Wed Jun 23 18:12:20 2010 +0300 @@ -192,7 +192,6 @@ R_PHONEUI_IDLE_APPS, R_PHONE_DISCONNECTING_NETWORK_WAIT_NOTE, R_PHONE_INCALL_MUTED_PANE, - R_PHONEUI_INCALL_CALL_NUMBER, R_PHONEUI_INCALL_CALL_DISCONNECTED, R_PHONE_ERROR_CALL_IN_PROGRESS, R_CONFERENCE_DROPPARTICIPANT_DIALOG, @@ -203,7 +202,6 @@ R_PHONE_ERROR_NOTE, R_PHONE_WARNING_NOTE, R_PHONE_CONFIRMATION_NOTE, - R_PHONE_IMEI_STRING, R_PHONE_SECURITY_INFORMATION_NOTE, R_PHONE_BT_DEV_ADDRESS, R_INCAL_INFO_HOLD_TEXT, @@ -226,7 +224,6 @@ R_PHONEUI_NOTE_TEXT_POST_CALL_SUMMARY, R_PHONEUI_NOTE_TEXT_POST_CALL_DURATION, R_PHONEUI_IDLE_TIME_FORMAT, - R_PHONEUI_LIFE_TIMER_STRING, R_PHONEUI_NOTE_TEXT_PHONE_ENGINE_FAILED_AT_STARTUP, R_PHONE_MTCAL_CLI_PAYPHONE, R_PHONE_ERROR_CALL_BARRED_IN_CUG, @@ -294,7 +291,7 @@ R_DIALER_ADD_TO_CONTACTS_SELECTION_LIST_QUERY, R_PHONEUI_DTMFDIALER_SOFTKEYS_OPTIONS_CANCEL, R_PHONEUI_DIALER_NUMBERENTRY_PROMPT_TEXT, - R_PHONEUI_MTCAL_CALL, + R_PHONEUI_MTCAL_CLI_UNKNOWN, R_NOTE_INCAL_QUERY_VCALL_FAILED, R_NOTE_TEXT_CLIR_CHANGE, R_NOTE_TEXT_CUG_IN_USE, diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiutils/inc/phonerssbase.h --- a/phoneapp/phoneuiutils/inc/phonerssbase.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiutils/inc/phonerssbase.h Wed Jun 23 18:12:20 2010 +0300 @@ -59,7 +59,6 @@ EPhoneInformationConfirmationNote, EPhoneSecurityInformationNote, EPhoneRequestingNote, - EPhonePhoneImeiString, EPhonePhoneBtDevAddress, EPhoneInformationRemoteCreateConferenceNote, EPhoneInformationRemotePutOnHoldNote, @@ -125,7 +124,6 @@ EPhoneCLIWithheld, EPhoneWaitingText, EPhoneIdleTimeFormat, - EPhoneLifeTimeFormat, EPhoneInCallDisconnected, EPhoneCallInProgress, EPhoneEmergencyCallsOnly, @@ -141,10 +139,8 @@ // "Muted" EPhoneInCallMutedText, - // "Call" - EPhoneCall, - // " Call %N" - EPhoneInCallNumberText, + // "Unknown call" + EPhoneCallCLIUnknown, /** "Transferring" -information note. */ EPhoneInCallWaitTransfer, EPhoneInCallTransferred, @@ -168,9 +164,6 @@ EPhoneDtmfWaitCharacterConfirmationQueryText, EPhoneDtmfFetchTitle, - EPhoneDtmfSpeedDialNumberQuery, - EPhoneDtmfSpeedDialNotAssigned, - EPhoneDtmfInvalidSpeedDial, // ALS EPhoneAlsLineChangeConfirmationQuery, @@ -304,7 +297,6 @@ // the user has typed something into the edit-box (with content) EPhoneSendDtmfNormalEditBoxCBA, - EPhoneDtmfSpeedDialNormalEditBoxCBA, EPhoneCallHandlingCallWaitingCBA, EPhoneCallHandlingNewCallFindCBA, diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiutils/inc/tphonecmdparamglobalnote.h --- a/phoneapp/phoneuiutils/inc/tphonecmdparamglobalnote.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiutils/inc/tphonecmdparamglobalnote.h Wed Jun 23 18:12:20 2010 +0300 @@ -89,6 +89,13 @@ IMPORT_C void SetTimeout( TInt aTimeout ); /** + * Sets notification dialog flag. + * @param aNotificationDialog True if notification dialog + * should be used. + */ + IMPORT_C void SetNotificationDialog( TBool aNotificationDialog ); + + /** * Returns the global note type * @return Returns the type */ @@ -129,6 +136,12 @@ * @return Timeout value. */ IMPORT_C TInt Timeout() const; + + /** + * Returns the notification dialog flag. + * @return Notification dialog flag. + */ + IMPORT_C TBool NotificationDialog() const; private: @@ -166,6 +179,12 @@ * Timeout for a note. */ TInt iTimeout; + + /** + * Notification Dialog flag. + */ + TBool iNotificationDialog; + }; #endif // __TPHONECMDPARAMGLOBALNOTE_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiutils/inc/tphonecommandparam.h --- a/phoneapp/phoneuiutils/inc/tphonecommandparam.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiutils/inc/tphonecommandparam.h Wed Jun 23 18:12:20 2010 +0300 @@ -68,7 +68,6 @@ EPAUIParamIdSoftkeyName, EPAUIParamIdGlobalIndicator, // for displaying global note EPAUIParamIdCallGuard, - EPAUIParamIdSpeedDial, // ----- USED TYPES --------- EPhoneParamIdInteger, @@ -93,7 +92,6 @@ EPhoneParamIdAudioOutput, EPhoneParamIdAudioAvailable, EPhoneParamIdRingTone, - EPhoneParamIdSpeedDial, EPhoneParamIdReconnectQuery, EPhoneParamIdVideoCallSetupFailedCreateVoiceCallToTheSameContactQuery, EPhoneParamRebootQuery, diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiutils/src/cphonecenrepproxy.cpp --- a/phoneapp/phoneuiutils/src/cphonecenrepproxy.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiutils/src/cphonecenrepproxy.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -28,7 +28,6 @@ #include #include #include -#include #include #include #include diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiutils/src/cphonekeys.cpp --- a/phoneapp/phoneuiutils/src/cphonekeys.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiutils/src/cphonekeys.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -86,7 +86,6 @@ case KPhoneDtmfHashCharacter: // Hash case KPhoneDtmfStarCharacter: // Asterisk // the following key can be got via taps of * - case KPhoneDtmfSpeedDialCharacter: // Plus case KPhoneDtmfPauseCharacter: // DTMF Soft-Pause character case KPhoneDtmfWaitCharacter: // DTMF Wait character result = ETrue; diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiutils/src/cphonelangsettingmonitor.cpp --- a/phoneapp/phoneuiutils/src/cphonelangsettingmonitor.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,160 +0,0 @@ -/* -* 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: Monitor for language settings. -* -*/ - - - -// INCLUDE FILES -#include -#include -#include "cphonelangsettingmonitor.h" -#include "mphonelangsettingobserver.h" -#include "phonelogger.h" -#include "cphonecenrepproxy.h" -#include "mphonecenrepobserver.h" - -// CONSTANTS - -// FORWARD DECLARATIONS - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// CPhoneLangSettingMonitor::CPhoneLangSettingMonitor -// C++ default constructor can NOT contain any code, that -// might leave. -// ----------------------------------------------------------------------------- -// -CPhoneLangSettingMonitor::CPhoneLangSettingMonitor() - { - } - -// ----------------------------------------------------------------------------- -// CPhoneLangSettingMonitor::ConstructL -// Symbian 2nd phase constructor can leave. -// ----------------------------------------------------------------------------- -// -void CPhoneLangSettingMonitor::ConstructL() - { - TInt language(1); // english - TInt err = KErrNone; - - if ( err == KErrNone ) - { - iInputLanguageSetting = language; - } - - // Start listen changes in setting and image path - CPhoneCenRepProxy::Instance()->NotifyChangeL( - KCRUidAknFep, - KAknFepInputTxtLang, - this ); - } - -// ----------------------------------------------------------------------------- -// CPhoneLangSettingMonitor::NewL -// Two-phased constructor. -// ----------------------------------------------------------------------------- -// -CPhoneLangSettingMonitor* CPhoneLangSettingMonitor::NewL() - { - CPhoneLangSettingMonitor* self = - new (ELeave) CPhoneLangSettingMonitor(); - - CleanupStack::PushL( self ); - self->ConstructL(); - CleanupStack::Pop( self ); - - return self; - } - -// Destructor -CPhoneLangSettingMonitor::~CPhoneLangSettingMonitor() - { - iObserverArray.ResetAndDestroy(); - } - -// ----------------------------------------------------------------------------- -// CPhoneLangSettingMonitor::AddObserverL -// ----------------------------------------------------------------------------- -// -void CPhoneLangSettingMonitor::AddObserverL( - MPhoneLangSettingObserver& aObserver ) - { - if ( iObserverArray.Find( &aObserver ) != KErrNone ) - { - User::LeaveIfError( iObserverArray.Append( &aObserver ) ); - } - } - -// ----------------------------------------------------------------------------- -// CPhoneLangSettingMonitor::RemoveObserver -// ----------------------------------------------------------------------------- -// -void CPhoneLangSettingMonitor::RemoveObserver( - MPhoneLangSettingObserver& aObserver ) - { - TInt index; - if ( iObserverArray.FindInAddressOrder( &aObserver, index ) == KErrNone ) - { - iObserverArray.Remove( index ); - } - } -// ----------------------------------------------------------------------------- -// CPhoneLangSettingMonitor::HandleCenRepChangeL -// ----------------------------------------------------------------------------- -// -void CPhoneLangSettingMonitor::HandleCenRepChangeL( - const TUid& aUid, - const TUint aId ) - { - __LOGMETHODSTARTEND(EPhoneControl, - "CPhoneLangSettingMonitor::HandleCenRepChangeL( )"); - - if ( aUid == KCRUidAknFep && aId == KAknFepInputTxtLang ) - { - TInt language(1); // english - TInt err( CPhoneCenRepProxy::Instance()->GetInt( - KCRUidAknFep, - KAknFepInputTxtLang, - language )); - - if ( err == KErrNone && iInputLanguageSetting != language ) - { - iInputLanguageSetting = language; - - // Notify change to the observers. - for ( TInt i = 0; i < iObserverArray.Count(); i++ ) - { - iObserverArray[i]->HandleInputLanguageSettingChange( - iInputLanguageSetting ); - } - } - } - } - -// ----------------------------------------------------------------------------- -// CPhoneLangSettingMonitor::Language -// ----------------------------------------------------------------------------- -// -TInt CPhoneLangSettingMonitor::InputLanguage() const - { - return iInputLanguageSetting; - } - - - -// End of File diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiutils/src/cphonepubsubproxy.cpp --- a/phoneapp/phoneuiutils/src/cphonepubsubproxy.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiutils/src/cphonepubsubproxy.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -305,7 +305,7 @@ // Remove this observers' subscriptions TInt pubSubCount = iPublishSubscriberArray->Count(); - for ( TInt j = pubSubCount - 1; j >= 0; j++ ) + for ( TInt j = 0; j < pubSubCount; j++ ) { CPhonePublishSubscriberAO* publishSubscriber = iPublishSubscriberArray->At( j ); diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiutils/src/cphoneqwertyhandler.cpp --- a/phoneapp/phoneuiutils/src/cphoneqwertyhandler.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,231 +0,0 @@ -/* -* 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: Implementation of CPhoneQwertyHandler class. -* -*/ - - -// INCLUDE FILES -#include "cphoneqwertyhandler.h" -#include "cphonelangsettingmonitor.h" -#include "cphoneqwertymodemonitor.h" -#include -#include - -// CONSTANTS - -// FORWARD DECLARATIONS - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// CPhoneQwertyHandler::CPhoneQwertyHandler -// C++ default constructor can NOT contain any code, that -// might leave. -// ----------------------------------------------------------------------------- -// -CPhoneQwertyHandler::CPhoneQwertyHandler() - { - } - -// ----------------------------------------------------------------------------- -// CPhoneQwertyHandler::ConstructL -// Symbian 2nd phase constructor can leave. -// ----------------------------------------------------------------------------- -// -void CPhoneQwertyHandler::ConstructL() - { - // Language setting monitor - iLangSettingMonitor = CPhoneLangSettingMonitor::NewL(); - iLangSettingMonitor->AddObserverL( *this ); - - // Qwerty mode - iQwertyModeMonitor = CPhoneQwertyModeMonitor::NewL(); - iQwertyModeMonitor->AddObserverL( *this ); - - // Read current values - iInputLanguageId = iLangSettingMonitor->InputLanguage(); - iQwertyMode = iQwertyModeMonitor->QwertyMode(); - - if ( iQwertyMode ) - { - LoadNumericKeyBindings( iInputLanguageId, iQwertyModeMonitor->Keyboard() ); - } - } - -// ----------------------------------------------------------------------------- -// CPhoneQwertyHandler::NewL -// Two-phased constructor. -// ----------------------------------------------------------------------------- -// -EXPORT_C CPhoneQwertyHandler* CPhoneQwertyHandler::NewL() - { - CPhoneQwertyHandler* self = - new (ELeave) CPhoneQwertyHandler(); - - CleanupStack::PushL( self ); - self->ConstructL(); - CleanupStack::Pop( self ); - - return self; - } - -// Destructor -EXPORT_C CPhoneQwertyHandler::~CPhoneQwertyHandler() - { - iLangSettingMonitor->RemoveObserver( *this ); - delete iLangSettingMonitor; - iLangSettingMonitor = NULL; - iQwertyModeMonitor->RemoveObserver( *this ); - delete iQwertyModeMonitor; - iQwertyModeMonitor = NULL; - iNumericKeys.Close(); - } - -// ----------------------------------------------------------------------------- -// CPhoneQwertyHandler::IsQwertyInput -// ----------------------------------------------------------------------------- -// -EXPORT_C TBool CPhoneQwertyHandler::IsQwertyInput() const - { - return iQwertyMode > 0 ? ETrue : EFalse; - } - -// ----------------------------------------------------------------------------- -// CPhoneQwertyHandler::HandleLanguageSettingChange -// ----------------------------------------------------------------------------- -// -void CPhoneQwertyHandler::HandleInputLanguageSettingChange( TInt aLanguage ) - { - iInputLanguageId = aLanguage; - if ( iQwertyMode ) - { - LoadNumericKeyBindings( iInputLanguageId, iQwertyModeMonitor->Keyboard() ); - } - } - -// ----------------------------------------------------------------------------- -// CPhoneQwertyHandler::HandleQwertyModeChange -// Loads keybinding with keyboard EPtiKeyboardNone if no keyboeard has been -// defined -// ----------------------------------------------------------------------------- -// -void CPhoneQwertyHandler::HandleQwertyModeChange( TInt aMode ) - { - iQwertyMode = aMode; -#ifndef RD_INTELLIGENT_TEXT_INPUT - if ( iQwertyMode && !iNumericKeys.Count() ) - { - LoadNumericKeyBindings( iInputLanguageId, iQwertyModeMonitor->Keyboard() ); - } -#endif - } - -// ----------------------------------------------------------------------------- -// CPhoneQwertyHandler::HandleKeyboardLayoutChange -// This event comes after HandleQwertyModeChange -// ----------------------------------------------------------------------------- -// -void CPhoneQwertyHandler::HandleKeyboardLayoutChange() - { - - LoadNumericKeyBindings( iInputLanguageId, iQwertyModeMonitor->Keyboard() ); - - } - -// ----------------------------------------------------------------------------- -// CPhoneQwertyHandler::LoadNumericKeyBindings -// ----------------------------------------------------------------------------- -// -void CPhoneQwertyHandler::LoadNumericKeyBindings( TInt aLanguage, TInt aKeyboard ) - { - iNumericKeys.Reset(); - -#ifdef RD_INTELLIGENT_TEXT_INPUT - TPtiKeyboardType keyboard = static_cast( aKeyboard ); - TRAPD( err, - { - CPtiEngine* ptiEngine = CPtiEngine::NewL(); - CleanupStack::PushL( ptiEngine ); - - ptiEngine->GetNumericModeKeysForQwertyL( aLanguage, - iNumericKeys, - keyboard ); - CleanupStack::PopAndDestroy( ptiEngine ); - } ); // TRAP -#else - TRAPD( err, - { - CPtiEngine* ptiEngine = CPtiEngine::NewL(); - CleanupStack::PushL( ptiEngine ); - ptiEngine->GetNumericModeKeysForQwertyL( aLanguage, - iNumericKeys ); - CleanupStack::PopAndDestroy( ptiEngine ); - } ); // TRAP -#endif - - if ( err ) - { - iNumericKeys.Reset(); - iQwertyMode = 0; // To default mode - } - else - { - // remove keys that are not remapped - TInt numericKeysCount = iNumericKeys.Count(); - while ( numericKeysCount-- ) - { - TPtiNumericKeyBinding numKeyBind = iNumericKeys[numericKeysCount]; - - // This is PTI bug? Should not be in numeric keys list. - if ( numKeyBind.iKey == EPtiKeyQwertySpace ) - { - iNumericKeys.Remove( numericKeysCount ); - } - } - } - } - -// ----------------------------------------------------------------------------- -// CPhoneQwertyHandler::NumericKeyCode -// ----------------------------------------------------------------------------- -// -EXPORT_C TInt CPhoneQwertyHandler::NumericKeyCode( const TKeyEvent& aKeyEvent ) - { - - // Check shift state - TBool shiftActive(EFalse); - shiftActive = aKeyEvent.iModifiers & EModifierLeftShift || - aKeyEvent.iModifiers & EModifierRightShift; //|| - - TInt numericKeysCount = iNumericKeys.Count(); - - while ( numericKeysCount-- ) - { - TPtiNumericKeyBinding numKeyBind = iNumericKeys[numericKeysCount]; - - TBool shiftRequired = ( numKeyBind.iCase ==EPtiCaseUpper ) || - ( numKeyBind.iCase ==EPtiCaseChrUpper ); - - if ( numKeyBind.iKey == aKeyEvent.iScanCode && - (shiftRequired == shiftActive ) ) - { - return numKeyBind.iChar; - } - } - - return EKeyNull; - } - -// End of File diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiutils/src/cphoneqwertymodemonitor.cpp --- a/phoneapp/phoneuiutils/src/cphoneqwertymodemonitor.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,179 +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: Qwerty Mode Monitor. -* -*/ - - -// INCLUDE FILES -#include -#include -#include -#include -#include - -#include "cphoneqwertymodemonitor.h" -#include "mphoneqwertymodeobserver.h" -#include "phonelogger.h" -#include "cphonepubsubproxy.h" - - -// ============================ MEMBER FUNCTIONS =============================== - -// C++ constructor can NOT contain any code, that -// might leave. -// -CPhoneQwertyModeMonitor::CPhoneQwertyModeMonitor() - { - } - -// --------------------------------------------------------- -// CPhoneQwertyModeMonitor::ConstructL -// --------------------------------------------------------- -// -void CPhoneQwertyModeMonitor::ConstructL() - { - iQwertyMode = GetQwertyMode(); - iKeyboard = GetKeyboard(); - } - -// ----------------------------------------------------------------------------- -// CPhoneQwertyModeMonitor::NewL -// ----------------------------------------------------------------------------- -// -CPhoneQwertyModeMonitor* CPhoneQwertyModeMonitor::NewL() - { - CPhoneQwertyModeMonitor* self = - new (ELeave) CPhoneQwertyModeMonitor(); - - CleanupStack::PushL( self ); - self->ConstructL(); - CleanupStack::Pop( self ); - - return self; - } - -// Destructor -CPhoneQwertyModeMonitor::~CPhoneQwertyModeMonitor() - { - iObserverArray.Reset(); - } - -// ----------------------------------------------------------------------------- -// CPhoneQwertyModeMonitor::AddObserverL -// ----------------------------------------------------------------------------- -// -void CPhoneQwertyModeMonitor::AddObserverL( - MPhoneQwertyModeObserver& aObserver ) - { - if ( iObserverArray.Find( &aObserver ) != KErrNone ) - { - User::LeaveIfError( iObserverArray.Append( &aObserver ) ); - } - } - -// ----------------------------------------------------------------------------- -// CPhoneQwertyModeMonitor::RemoveObserver -// ----------------------------------------------------------------------------- -// -void CPhoneQwertyModeMonitor::RemoveObserver( - MPhoneQwertyModeObserver& aObserver ) - { - TInt index; - if ( iObserverArray.FindInAddressOrder( &aObserver, index ) == KErrNone ) - { - iObserverArray.Remove( index ); - } - } - -// ----------------------------------------------------------- -// CPhoneQwertyModeMonitor::HandlePropertyChangedL -// ----------------------------------------------------------- -// -void CPhoneQwertyModeMonitor::HandlePropertyChangedL( - const TUid& aCategory, - const TUint aKey, - const TInt aValue ) - { - __LOGMETHODSTARTEND(EPhoneControl, "CPhoneQwertyModeMonitor::HandlePropertyChangedL( ) "); - if ( aCategory == KCRUidAvkon ) - { - if ( aKey == KAknQwertyInputModeActive ) - { - iQwertyMode = aValue; - - for ( TInt i = 0; i < iObserverArray.Count(); i++ ) - { - iObserverArray[ i ]->HandleQwertyModeChange( - iQwertyMode ); - } - } -#ifdef RD_INTELLIGENT_TEXT_INPUT - else if ( aKey == KAknKeyBoardLayout ) - { - for ( TInt i = 0; i < iObserverArray.Count(); i++ ) - { - iKeyboard = aValue; - iObserverArray[ i ]->HandleKeyboardLayoutChange(); - } - } -#endif - } - } - -// ----------------------------------------------------------------------------- -// CPhoneQwertyModeMonitor::QwertyMode -// ----------------------------------------------------------------------------- -// -TInt CPhoneQwertyModeMonitor::QwertyMode() const - { - return iQwertyMode; - } - -// ----------------------------------------------------------------------------- -// CPhoneQwertyModeMonitor::Keyboard -// ----------------------------------------------------------------------------- -// -TInt CPhoneQwertyModeMonitor::Keyboard() const - { - return iKeyboard; - } - -// ----------------------------------------------------------------------------- -// CPhoneQwertyModeMonitor::GetQwertyMode -// ----------------------------------------------------------------------------- -// -TInt CPhoneQwertyModeMonitor::GetQwertyMode() const - { - // Get call state. - /*TInt qwertyMode( CPhonePubSubProxy::Instance()->Value( - KCRUidAvkon, - KAknQwertyInputModeActive ) );*/ - TInt qwertyMode(0); - - return qwertyMode; - } - -// ----------------------------------------------------------------------------- -// CPhoneQwertyModeMonitor::GetQwertyMode -// ----------------------------------------------------------------------------- -// -TInt CPhoneQwertyModeMonitor::GetKeyboard() const - { - TInt keyboard(0); - return keyboard; - } - -// End of File - diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiutils/src/cphoneresourceresolverbase.cpp --- a/phoneapp/phoneuiutils/src/cphoneresourceresolverbase.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiutils/src/cphoneresourceresolverbase.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -551,10 +551,6 @@ retVal = R_PHONEUI_SEND_DTMF_NORMAL_EDIT_BOX_CBA; break; - case EPhoneDtmfSpeedDialNormalEditBoxCBA: - retVal = R_PHONEUI_DTMF_SPEED_DIAL_NORMAL_EDIT_BOX_CBA; - break; - case EPhoneNumberAcqCBA: if ( iVariationFlags & EOnscreenDialer ) { @@ -1004,18 +1000,6 @@ retVal = R_PHONEUI_TITLE_IN_DTMF_FETCH; break; - case EPhoneDtmfSpeedDialNumberQuery: - retVal = R_PHONEUI_DTMF_SPEED_DIAL_NUMBER_QUERY; - break; - - case EPhoneDtmfSpeedDialNotAssigned: - retVal = R_ERROR_NOTE_SPEED_DIAL_NOT_ASSIGNED; - break; - - case EPhoneDtmfInvalidSpeedDial: - retVal = R_ERROR_NOTE_INVALID_SPEED_DIAL; - break; - case EPhoneAlsLineChangeConfirmationQuery: retVal = R_PHONEUI_ALS_CONFIRMATION_QUERY; break; @@ -1072,10 +1056,6 @@ retVal = R_PHONE_INCALL_MUTED_PANE; break; - case EPhoneInCallNumberText: - retVal = R_PHONEUI_INCALL_CALL_NUMBER; - break; - case EPhoneInCallDisconnected: retVal = R_PHONEUI_INCALL_CALL_DISCONNECTED; break; @@ -1112,10 +1092,6 @@ retVal = R_PHONE_CONFIRMATION_NOTE; break; - case EPhonePhoneImeiString: - retVal = R_PHONE_IMEI_STRING; - break; - case EPhoneSecurityInformationNote: retVal = R_PHONE_SECURITY_INFORMATION_NOTE; break; @@ -1191,6 +1167,10 @@ retVal = R_PHONEUI_MTCAL_CLI_WITHHELD; break; + case EPhoneCallCLIUnknown: + retVal = R_PHONEUI_MTCAL_CLI_UNKNOWN; + break; + case EPhoneNoteTextCallSummary: retVal = R_PHONEUI_NOTE_TEXT_POST_CALL_SUMMARY; break; @@ -1203,10 +1183,6 @@ retVal = R_PHONEUI_IDLE_TIME_FORMAT; break; - case EPhoneLifeTimeFormat: - retVal = R_PHONEUI_LIFE_TIMER_STRING; - break; - case EPhoneNoteTextPEFailedAtStartup: retVal = R_PHONEUI_NOTE_TEXT_PHONE_ENGINE_FAILED_AT_STARTUP; break; @@ -1485,10 +1461,6 @@ retVal = R_PHONEUI_DIALER_NUMBERENTRY_PROMPT_TEXT; break; - case EPhoneCall: - retVal = R_PHONEUI_MTCAL_CALL; - break; - case EPhoneVideoCallSetupFailedCreateVoiceCallToTheSameContactText: retVal = R_NOTE_INCAL_QUERY_VCALL_FAILED; break; diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiutils/src/phoneloggerviewcommands.cpp --- a/phoneapp/phoneuiutils/src/phoneloggerviewcommands.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiutils/src/phoneloggerviewcommands.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -90,9 +90,6 @@ _STLIT8(K63, "EPhoneViewStartCapturingKey"); _STLIT8(K64, "EPhoneViewStopCapturingKey"); _STLIT8(K65, "EPhoneViewSetGlobalNotifiersDisabled"); -_STLIT8(K66, "EPhoneViewSetSpeedDialLocation"); -_STLIT8(K67, "EPhoneViewGetNumberFromSpeedDialLocation"); -_STLIT8(K68, "EPhoneViewAssignSpeedDialLocation"); _STLIT8(K69, "EPhoneViewGetHoldFlag"); _STLIT8(K70, "EPhoneViewSetHoldFlag"); _STLIT8(K71, "EPhoneViewSetSoftRejectFlag"); @@ -287,9 +284,6 @@ (const void*)&K63, (const void*)&K64, (const void*)&K65, - (const void*)&K66, - (const void*)&K67, - (const void*)&K68, (const void*)&K69, (const void*)&K70, (const void*)&K71, diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiutils/src/phoneloggerviewcommands.st --- a/phoneapp/phoneuiutils/src/phoneloggerviewcommands.st Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiutils/src/phoneloggerviewcommands.st Wed Jun 23 18:12:20 2010 +0300 @@ -65,9 +65,6 @@ EPhoneViewStartCapturingKey EPhoneViewStartCapturingKey EPhoneViewStopCapturingKey EPhoneViewStopCapturingKey EPhoneViewSetGlobalNotifiersDisabled EPhoneViewSetGlobalNotifiersDisabled -EPhoneViewSetSpeedDialLocation EPhoneViewSetSpeedDialLocation -EPhoneViewGetNumberFromSpeedDialLocation EPhoneViewGetNumberFromSpeedDialLocation -EPhoneViewAssignSpeedDialLocation EPhoneViewAssignSpeedDialLocation EPhoneViewGetHoldFlag EPhoneViewGetHoldFlag EPhoneViewSetHoldFlag EPhoneViewSetHoldFlag EPhoneViewSetSoftRejectFlag EPhoneViewSetSoftRejectFlag diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiutils/src/tphonecmdparamglobalnote.cpp --- a/phoneapp/phoneuiutils/src/tphonecmdparamglobalnote.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiutils/src/tphonecmdparamglobalnote.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -37,7 +37,8 @@ iTone( EAvkonSIDErrorTone ), iWaitforReady ( EFalse ), iSoftkeys( 0 ), - iTimeout( 0 ) + iTimeout( 0 ), + iNotificationDialog( EFalse ) { iParamId = EPhoneParamIdGlobalNote; } @@ -124,6 +125,18 @@ } // --------------------------------------------------------- +// TPhoneCmdParamGlobalNote::SetNotificationDialog +// Sets the notification dialog flag. +// (other items were commented in a header). +// --------------------------------------------------------- +// +EXPORT_C void TPhoneCmdParamGlobalNote::SetNotificationDialog( + TBool aNotificationDialog ) +{ + iNotificationDialog = aNotificationDialog; +} + +// --------------------------------------------------------- // TPhoneCmdParamGlobalNote::Type // Returns the global note type // (other items were commented in a header). @@ -199,4 +212,14 @@ return iTimeout; } +// --------------------------------------------------------- +// TPhoneCmdParamGlobalNote::NotificationDialog +// Returns the notification dialog flag. +// --------------------------------------------------------- +// +EXPORT_C TBool TPhoneCmdParamGlobalNote::NotificationDialog() const + { + return iNotificationDialog; + } + // End of File diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiview2/bwins/phoneuiqtviewu.def --- a/phoneapp/phoneuiview2/bwins/phoneuiqtviewu.def Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiview2/bwins/phoneuiqtviewu.def Wed Jun 23 18:12:20 2010 +0300 @@ -61,4 +61,7 @@ ?clearAndHideDialpad@PhoneUIQtView@@UAEXXZ @ 60 NONAME ; void PhoneUIQtView::clearAndHideDialpad(void) ?isDisabled@PhoneAction@@QBE_NXZ @ 61 NONAME ; bool PhoneAction::isDisabled(void) const ?networkNameChanged@PhoneUIQtView@@QAEXW4NetworkMode@QSystemNetworkInfo@QtMobility@@ABVQString@@@Z @ 62 NONAME ; void PhoneUIQtView::networkNameChanged(enum QtMobility::QSystemNetworkInfo::NetworkMode, class QString const &) + ?windowDeactivated@PhoneUIQtView@@IAEXXZ @ 63 NONAME ; void PhoneUIQtView::windowDeactivated(void) + ?windowActivated@PhoneUIQtView@@IAEXXZ @ 64 NONAME ; void PhoneUIQtView::windowActivated(void) + ?clearDialpad@PhoneUIQtView@@UAEXXZ @ 65 NONAME ; void PhoneUIQtView::clearDialpad(void) diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiview2/eabi/phoneuiqtviewu.def --- a/phoneapp/phoneuiview2/eabi/phoneuiqtviewu.def Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiview2/eabi/phoneuiqtviewu.def Wed Jun 23 18:12:20 2010 +0300 @@ -92,4 +92,6 @@ _ZN13PhoneUIQtView18networkNameChangedEN10QtMobility18QSystemNetworkInfo11NetworkModeERK7QString @ 91 NONAME _ZN13PhoneUIQtView15windowActivatedEv @ 92 NONAME _ZN13PhoneUIQtView17windowDeactivatedEv @ 93 NONAME + _ZN13PhoneUIQtView12clearDialpadEv @ 94 NONAME + _ZThn28_N13PhoneUIQtView12clearDialpadEv @ 95 NONAME diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiview2/inc/phoneaction.h --- a/phoneapp/phoneuiview2/inc/phoneaction.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiview2/inc/phoneaction.h Wed Jun 23 18:12:20 2010 +0300 @@ -31,6 +31,15 @@ public: + class ToolBarItem { + public: + ToolBarItem(int commandId, bool enabled) : + mCommandId(commandId),mEnabled(enabled) {} + + int mCommandId; + bool mEnabled; + }; + enum ActionType { LeftButton = 1, RightButton, diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiview2/inc/phoneuiqtview.h --- a/phoneapp/phoneuiview2/inc/phoneuiqtview.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiview2/inc/phoneuiqtview.h Wed Jun 23 18:12:20 2010 +0300 @@ -190,6 +190,13 @@ void clearAndHideDialpad(); /*! + \fn void PhoneUIQtView::clearDialpad() + + Clears text from dialpad. + */ + void clearDialpad(); + + /*! \fn void PhoneUIQtView::bringToForeground() Brings to foreground. diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiview2/inc/phoneuiqtviewif.h --- a/phoneapp/phoneuiview2/inc/phoneuiqtviewif.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiview2/inc/phoneuiqtviewif.h Wed Jun 23 18:12:20 2010 +0300 @@ -170,6 +170,13 @@ virtual void clearAndHideDialpad() = 0; /*! + \fn void PhoneUIQtView::clearDialpad() + + Clears text from dialpad. + */ + virtual void clearDialpad() = 0; + + /*! \fn void PhoneUIQtView::bringToForeground() Brings to foreground. diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiview2/src/phoneuiqtview.cpp --- a/phoneapp/phoneuiview2/src/phoneuiqtview.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiview2/src/phoneuiqtview.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -15,7 +15,7 @@ * */ #include -#include +#include #include #include #include @@ -27,6 +27,7 @@ #include #include #include +#include #include "phoneuiqtview.h" #include "phoneaction.h" @@ -44,7 +45,10 @@ { // Set network name m_networkInfo = new QSystemNetworkInfo(this); - QString networkName = m_networkInfo->networkName(QSystemNetworkInfo::GsmMode); + QString networkName = m_networkInfo->networkName(QSystemNetworkInfo::WcdmaMode); + if(networkName.isEmpty()) { + networkName = m_networkInfo->networkName(QSystemNetworkInfo::GsmMode); + } connect(m_networkInfo, SIGNAL (networkNameChanged(QSystemNetworkInfo::NetworkMode,QString)), this, SLOT(networkNameChanged(QSystemNetworkInfo::NetworkMode, QString))); setTitle(networkName); @@ -61,7 +65,9 @@ SLOT(onEditorContentChanged())); connect(m_dialpad,SIGNAL(aboutToClose()),this, SLOT(dialpadClosed())); - + // enable key sequence handling during a call + new DialpadKeyHandler(m_dialpad, DialpadKeyHandler::KeySequence, this); + // Call handling widget m_bubbleManager = new BubbleManager (this); setWidget(m_bubbleManager); @@ -89,10 +95,7 @@ PhoneUIQtView::~PhoneUIQtView () { - - foreach (HbAction *action, m_toolbarActions ) { - delete action; - } + qDeleteAll(m_toolbarActions); m_window.removeEventFilter(this); delete m_volumeSlider; delete m_dialpad; @@ -165,9 +168,8 @@ foreach (HbAction *action, m_participantListActions ) { m_participantListSignalMapper->removeMappings(action); - delete action; } - + qDeleteAll(m_participantListActions); m_participantListActions.clear(); delete m_participantListSignalMapper; m_participantListSignalMapper = 0; @@ -365,13 +367,17 @@ void PhoneUIQtView::clearAndHideDialpad() { m_dialpad->editor().setText(QString("")); - hideDialpad(); + m_dialpad->closeDialpad(); +} + +void PhoneUIQtView::clearDialpad() +{ + m_dialpad->editor().setText(QString("")); } void PhoneUIQtView::bringToForeground() { m_window.show(); - m_window.raise(); } void PhoneUIQtView::setMenuActions(const QList& actions) @@ -426,8 +432,9 @@ emit dialpadIsAboutToClose(); } -bool PhoneUIQtView::eventFilter(QObject * /*watched*/, QEvent * event) +bool PhoneUIQtView::eventFilter(QObject *watched, QEvent * event) { + Q_UNUSED(watched); PHONE_DEBUG2("PhoneUIQtView::eventFilter event type:", event->type()); if(event->type() == QEvent::KeyPress) { QKeyEvent *keyEvent = static_cast(event); @@ -459,10 +466,7 @@ void PhoneUIQtView::setDialpadPosition() { - // workaround to tsw error JMKN-83NAPU (fix coming in MCL wk14) - // QRectF screenRect(m_window.layoutRect()); - QRectF screenRect = (m_window.orientation() == Qt::Horizontal) ? - QRectF(0,0,640,360) : QRectF(0,0,360,640); + QRectF screenRect(m_window.layoutRect()); if (m_window.orientation() == Qt::Horizontal) { // dialpad takes half of the screen @@ -506,17 +510,13 @@ void PhoneUIQtView::setBackButtonVisible(bool visible) { - if (visible) { - setNavigationAction(m_backAction); - } - else { - setNavigationAction(0); - } + m_backAction->setEnabled(visible); } void PhoneUIQtView::networkNameChanged(QSystemNetworkInfo::NetworkMode mode, const QString &netName) { - if(mode == QSystemNetworkInfo::GsmMode) { + if((mode == QSystemNetworkInfo::GsmMode) || + (mode == QSystemNetworkInfo::WcdmaMode)) { setTitle(netName); } } diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiview2/tsrc/ut_phoneuiqtview/hbtoolbar.cpp --- a/phoneapp/phoneuiview2/tsrc/ut_phoneuiqtview/hbtoolbar.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,90 +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 "hbtoolbar.h" -#include - -bool m_clearCalled; -bool m_hideCalled; -bool m_showCalled; -bool m_clearActionsCalled; -bool m_setOrientationCalled; -bool m_toolBarUpdateCalled; -HbAction *m_action; -QList m_actions; - -HbToolBar::HbToolBar (QObject *parent) -{ - Q_UNUSED (parent); - reset (); -} - -void HbToolBar::reset () -{ - m_clearCalled = false; - m_hideCalled = false; - m_showCalled = false; - m_clearActionsCalled = false; - m_toolBarUpdateCalled = false; - m_action = 0; -} - -void HbToolBar::clear () -{ - m_clearCalled = true; -} - -void HbToolBar::hide () -{ - m_hideCalled = true; -} - -void HbToolBar::show () -{ - m_showCalled = true; -} - -void HbToolBar::addAction (HbAction *action) -{ - m_action = action; - m_actions.append(action); -} - -void HbToolBar::clearActions () -{ - m_clearActionsCalled = true; -} - -void HbToolBar::setOrientation(Qt::Orientation orientation) -{ - m_setOrientationCalled = true; -} - -void HbToolBar::removeAction(HbAction *action) -{ - m_actions.removeOne(action); -} - -QList HbToolBar::actions() const -{ - return m_actions; -} - -void HbToolBar::update() -{ - m_toolBarUpdateCalled = true; -} - diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiview2/tsrc/ut_phoneuiqtview/hbtoolbar_stub.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneapp/phoneuiview2/tsrc/ut_phoneuiqtview/hbtoolbar_stub.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,90 @@ +/* +* 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 "hbtoolbar.h" +#include + +bool m_clearCalled; +bool m_hideCalled; +bool m_showCalled; +bool m_clearActionsCalled; +bool m_setOrientationCalled; +bool m_toolBarUpdateCalled; +HbAction *m_action; +QList m_actions; + +HbToolBar::HbToolBar (QObject *parent) +{ + Q_UNUSED (parent); + reset (); +} + +void HbToolBar::reset () +{ + m_clearCalled = false; + m_hideCalled = false; + m_showCalled = false; + m_clearActionsCalled = false; + m_toolBarUpdateCalled = false; + m_action = 0; +} + +void HbToolBar::clear () +{ + m_clearCalled = true; +} + +void HbToolBar::hide () +{ + m_hideCalled = true; +} + +void HbToolBar::show () +{ + m_showCalled = true; +} + +void HbToolBar::addAction (HbAction *action) +{ + m_action = action; + m_actions.append(action); +} + +void HbToolBar::clearActions () +{ + m_clearActionsCalled = true; +} + +void HbToolBar::setOrientation(Qt::Orientation orientation) +{ + m_setOrientationCalled = true; +} + +void HbToolBar::removeAction(HbAction *action) +{ + m_actions.removeOne(action); +} + +QList HbToolBar::actions() const +{ + return m_actions; +} + +void HbToolBar::update() +{ + m_toolBarUpdateCalled = true; +} + diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiview2/tsrc/ut_phoneuiqtview/hbvolumesliderpopup.cpp --- a/phoneapp/phoneuiview2/tsrc/ut_phoneuiqtview/hbvolumesliderpopup.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,102 +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 "hbvolumesliderpopup.h" - -bool m_volumeSliderContructorCalled; -bool m_volumeSliderDesctructorCalled; -int m_sliderValue; -int m_sliderRangeMin; -int m_sliderRangeMax; -bool m_volumeSliderSetValueCalled; -bool m_volumeSliderValueCalled; -bool m_volumeSliderSetRangeCalled; -bool m_volumeSliderSetTimeoutCalled; -int m_sliderTimeout; -bool m_volumeSliderShowCalled; -bool m_isVisible; -bool m_volumeSliderHideCalled; - -HbVolumeSliderPopup::HbVolumeSliderPopup () -{ - m_volumeSliderContructorCalled = true; - m_volumeSliderDesctructorCalled = false; - m_sliderValue = -1; - m_sliderRangeMin = -1; - m_sliderRangeMax = -1; - m_volumeSliderSetValueCalled = false; - m_volumeSliderValueCalled = false; - m_volumeSliderSetRangeCalled = false; - m_volumeSliderSetTimeoutCalled = false; - m_sliderTimeout = -1; - m_volumeSliderShowCalled = false; -} - -HbVolumeSliderPopup::~HbVolumeSliderPopup () -{ - m_volumeSliderDesctructorCalled = true; - m_volumeSliderContructorCalled = false; - m_sliderValue = -1; - m_sliderRangeMin = -1; - m_sliderRangeMax = -1; - m_volumeSliderSetValueCalled = false; - m_volumeSliderValueCalled = false; - m_volumeSliderSetRangeCalled = false; - m_volumeSliderSetTimeoutCalled = false; - m_sliderTimeout = -1; - m_volumeSliderShowCalled = false; - - emit aboutToClose (); -} - -void HbVolumeSliderPopup::setValue (int value) -{ - m_volumeSliderSetValueCalled = true; - m_sliderValue = value; -} - -int HbVolumeSliderPopup::value () -{ - m_volumeSliderValueCalled = true; - return m_sliderValue; -} - -void HbVolumeSliderPopup::setRange (int min, int max) -{ - m_volumeSliderSetRangeCalled = true; - m_sliderRangeMin = min; - m_sliderRangeMax = max; -} - -void HbVolumeSliderPopup::setTimeout (int time) -{ - m_volumeSliderSetTimeoutCalled = true; - m_sliderTimeout = time; -} - -void HbVolumeSliderPopup::show () -{ - m_volumeSliderShowCalled = true; - m_isVisible = true; -} - -void HbVolumeSliderPopup::hide() -{ - m_volumeSliderHideCalled = true; - m_isVisible = false; -} - diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiview2/tsrc/ut_phoneuiqtview/hbvolumesliderpopup_stub.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneapp/phoneuiview2/tsrc/ut_phoneuiqtview/hbvolumesliderpopup_stub.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,102 @@ +/* +* 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 "hbvolumesliderpopup.h" + +bool m_volumeSliderContructorCalled; +bool m_volumeSliderDesctructorCalled; +int m_sliderValue; +int m_sliderRangeMin; +int m_sliderRangeMax; +bool m_volumeSliderSetValueCalled; +bool m_volumeSliderValueCalled; +bool m_volumeSliderSetRangeCalled; +bool m_volumeSliderSetTimeoutCalled; +int m_sliderTimeout; +bool m_volumeSliderShowCalled; +bool m_isVisible; +bool m_volumeSliderHideCalled; + +HbVolumeSliderPopup::HbVolumeSliderPopup () +{ + m_volumeSliderContructorCalled = true; + m_volumeSliderDesctructorCalled = false; + m_sliderValue = -1; + m_sliderRangeMin = -1; + m_sliderRangeMax = -1; + m_volumeSliderSetValueCalled = false; + m_volumeSliderValueCalled = false; + m_volumeSliderSetRangeCalled = false; + m_volumeSliderSetTimeoutCalled = false; + m_sliderTimeout = -1; + m_volumeSliderShowCalled = false; +} + +HbVolumeSliderPopup::~HbVolumeSliderPopup () +{ + m_volumeSliderDesctructorCalled = true; + m_volumeSliderContructorCalled = false; + m_sliderValue = -1; + m_sliderRangeMin = -1; + m_sliderRangeMax = -1; + m_volumeSliderSetValueCalled = false; + m_volumeSliderValueCalled = false; + m_volumeSliderSetRangeCalled = false; + m_volumeSliderSetTimeoutCalled = false; + m_sliderTimeout = -1; + m_volumeSliderShowCalled = false; + + emit aboutToClose (); +} + +void HbVolumeSliderPopup::setValue (int value) +{ + m_volumeSliderSetValueCalled = true; + m_sliderValue = value; +} + +int HbVolumeSliderPopup::value () +{ + m_volumeSliderValueCalled = true; + return m_sliderValue; +} + +void HbVolumeSliderPopup::setRange (int min, int max) +{ + m_volumeSliderSetRangeCalled = true; + m_sliderRangeMin = min; + m_sliderRangeMax = max; +} + +void HbVolumeSliderPopup::setTimeout (int time) +{ + m_volumeSliderSetTimeoutCalled = true; + m_sliderTimeout = time; +} + +void HbVolumeSliderPopup::show () +{ + m_volumeSliderShowCalled = true; + m_isVisible = true; +} + +void HbVolumeSliderPopup::hide() +{ + m_volumeSliderHideCalled = true; + m_isVisible = false; +} + diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiview2/tsrc/ut_phoneuiqtview/qsysteminfo.cpp --- a/phoneapp/phoneuiview2/tsrc/ut_phoneuiqtview/qsysteminfo.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /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: -* -*/ - -#include "qsysteminfo.h" - -QSystemNetworkInfo::QSystemNetworkInfo(QObject *parent) : QObject(parent) -{ - -} - -QString QSystemNetworkInfo::networkName(QSystemNetworkInfo::NetworkMode mode) -{ - QString networkName = "Unit test network"; - return networkName; -} diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiview2/tsrc/ut_phoneuiqtview/qsysteminfo_stub.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneapp/phoneuiview2/tsrc/ut_phoneuiqtview/qsysteminfo_stub.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,12 @@ +#include "qsysteminfo.h" + +QSystemNetworkInfo::QSystemNetworkInfo(QObject *parent) : QObject(parent) +{ + +} + +QString QSystemNetworkInfo::networkName(QSystemNetworkInfo::NetworkMode mode) +{ + QString networkName = "Unit test network"; + return networkName; +} diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiview2/tsrc/ut_phoneuiqtview/unit_tests.cpp --- a/phoneapp/phoneuiview2/tsrc/ut_phoneuiqtview/unit_tests.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiview2/tsrc/ut_phoneuiqtview/unit_tests.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -363,6 +363,7 @@ void TestPhoneUIQtView::testDialpadText() { m_view->showDialpad(); + m_view->clearDialpad(); QVERIFY(QString("") == m_view->dialpadText()); m_view->clearAndHideDialpad(); } @@ -405,13 +406,17 @@ void TestPhoneUIQtView::testNetworkNameChanged() { - // Title is changed only for GmsMode + // Title is changed for GmsMode m_view->networkNameChanged(QSystemNetworkInfo::GsmMode, QString("test")); QCOMPARE(m_networkName, QString("test")); + // Title is changed for WcdmaMode + m_view->networkNameChanged(QSystemNetworkInfo::WcdmaMode, QString("test2")); + QCOMPARE(m_networkName, QString("test2")); + // Other modes shouldn't affect the title m_view->networkNameChanged(QSystemNetworkInfo::CdmaMode, QString("another operator")); - QCOMPARE(m_networkName, QString("test")); + QCOMPARE(m_networkName, QString("test2")); } void HbView::setTitle (const QString &title) diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuiview2/tsrc/ut_phoneuiqtview/ut_phoneuiqtview.pro --- a/phoneapp/phoneuiview2/tsrc/ut_phoneuiqtview/ut_phoneuiqtview.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuiview2/tsrc/ut_phoneuiqtview/ut_phoneuiqtview.pro Wed Jun 23 18:12:20 2010 +0300 @@ -61,7 +61,7 @@ SOURCES += ../../src/phoneuiqtview.cpp \ ../../src/phoneaction.cpp \ unit_tests.cpp \ - hbtoolbar.cpp \ - hbvolumesliderpopup.cpp \ - qsysteminfo.cpp + hbtoolbar_stub.cpp \ + hbvolumesliderpopup_stub.cpp \ + qsysteminfo_stub.cpp diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneuivoipextension/src/cphonestateidlevoip.cpp --- a/phoneapp/phoneuivoipextension/src/cphonestateidlevoip.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneuivoipextension/src/cphonestateidlevoip.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -30,7 +30,6 @@ #include "cphonelogger.h" #include "phoneui.pan" #include "cphonecustomizationvoip.h" -#include "tphonecmdparamspeeddial.h" #include "cphonecenrepproxy.h" #include "cphonestateutilsvoip.h" #include "cphonestatemachinevoip.h" @@ -155,10 +154,6 @@ { CPhoneIdle::HandleSendCommandL(); } - else if ( IsSpeedDialNumber( *phoneNumber ) ) - { - SpeedDialL( (*phoneNumber)[0], EDialMethodSendCommand ); - } else { TUint serviceId( 0 ); diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/audiohandling/src/cpeaudiodtmftoneplayer.cpp --- a/phoneengine/audiohandling/src/cpeaudiodtmftoneplayer.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/audiohandling/src/cpeaudiodtmftoneplayer.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -32,7 +32,7 @@ // None // CONSTANTS -const TInt KDtmfPauseAfterTone = 100000; +const TInt KDtmfPauseAfterTone = 45000; const TInt KDtmfToneZero = 0; const TInt KBufSize = 10; _LIT( KPhoneTone_Asterisk, "*+w" ); diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/callhandling/bwins/callhandlingu.def --- a/phoneengine/callhandling/bwins/callhandlingu.def Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/callhandling/bwins/callhandlingu.def Wed Jun 23 18:12:20 2010 +0300 @@ -23,57 +23,55 @@ ?HoldCall@CPECallHandling@@UAEHXZ @ 22 NONAME ; int CPECallHandling::HoldCall(void) ?CLIEventOccurred@CPESupplementaryServicesMonitor@@UAEXW4TCCESsCLIEvent@MCCESsObserver@@@Z @ 23 NONAME ; void CPESupplementaryServicesMonitor::CLIEventOccurred(enum MCCESsObserver::TCCESsCLIEvent) ?ResumeCall@CPECallHandling@@UAEHXZ @ 24 NONAME ; int CPECallHandling::ResumeCall(void) - ?GetLifeTime@CPECallHandling@@UAEHAAVTDes8@@@Z @ 25 NONAME ; int CPECallHandling::GetLifeTime(class TDes8 &) - ?CallByCallId@CPECallArrayOwner@@UBEPAVMPECall@@H@Z @ 26 NONAME ; class MPECall * CPECallArrayOwner::CallByCallId(int) const - ?GetCallDuration@CPECallHandling@@UAEHAAVTTimeIntervalSeconds@@H@Z @ 27 NONAME ; int CPECallHandling::GetCallDuration(class TTimeIntervalSeconds &, int) - ?AnswerCall@CPECallHandling@@UAEHXZ @ 28 NONAME ; int CPECallHandling::AnswerCall(void) - ??1CPECall@@MAE@XZ @ 29 NONAME ; CPECall::~CPECall(void) - ?ActiveCallCount@CPECallArrayOwner@@UBEHXZ @ 30 NONAME ; int CPECallArrayOwner::ActiveCallCount(void) const - ?NewL@CPEConferenceCall@@SAPAV1@AAVMPEMessageSender@@AAVCCCE@@@Z @ 31 NONAME ; class CPEConferenceCall * CPEConferenceCall::NewL(class MPEMessageSender &, class CCCE &) - ?StartUp@CPECallHandling@@UAEXXZ @ 32 NONAME ; void CPECallHandling::StartUp(void) - ?NotifyCurrentActiveALSLine@CPESupplementaryServicesMonitor@@UAEXH@Z @ 33 NONAME ; void CPESupplementaryServicesMonitor::NotifyCurrentActiveALSLine(int) - ?GetCallTerminatedDiagnostics@CPECallHandling@@UBEHAAV?$TBuf@$0IA@@@@Z @ 34 NONAME ; int CPECallHandling::GetCallTerminatedDiagnostics(class TBuf<128> &) const - ?GetNumberOfCalls@CPECallHandling@@UAEHXZ @ 35 NONAME ; int CPECallHandling::GetNumberOfCalls(void) - ?CallCugEventOccurred@CPESupplementaryServicesMonitor@@UAEXW4TCCESsCugEvent@MCCESsObserver@@@Z @ 36 NONAME ; void CPESupplementaryServicesMonitor::CallCugEventOccurred(enum MCCESsObserver::TCCESsCugEvent) - ?ConnectedCalls@CPECallHandling@@QAEHXZ @ 37 NONAME ; int CPECallHandling::ConnectedCalls(void) - ?HandleDTMFEvent@CPEDtmfHandling@@UAEXW4TCCEDtmfEvent@MCCEDtmfObserver@@HVTChar@@@Z @ 38 NONAME ; void CPEDtmfHandling::HandleDTMFEvent(enum MCCEDtmfObserver::TCCEDtmfEvent, int, class TChar) - ?BuildConference@CPECallHandling@@UAEHXZ @ 39 NONAME ; int CPECallHandling::BuildConference(void) - ?VoiceCallDataByState@CPECallHandling@@QBEPAVCPESingleCall@@IAAH@Z @ 40 NONAME ; class CPESingleCall * CPECallHandling::VoiceCallDataByState(unsigned int, int &) const - ?CallStateChanged@CPEConferenceCall@@UAEXW4TCCEConferenceCallState@MCCEConferenceCallObserver@@@Z @ 41 NONAME ; void CPEConferenceCall::CallStateChanged(enum MCCEConferenceCallObserver::TCCEConferenceCallState) - ?IsCallInState@CPECallHandling@@UBEHI@Z @ 42 NONAME ; int CPECallHandling::IsCallInState(unsigned int) const - ??0CPEDtmfHandling@@IAE@AAVCPECallHandling@@AAVMCCEDtmfInterface@@@Z @ 43 NONAME ; CPEDtmfHandling::CPEDtmfHandling(class CPECallHandling &, class MCCEDtmfInterface &) - ?CallEventOccurred@CPESingleCallObserver@@UAEXW4TCCECallEvent@MCCECallObserver@@@Z @ 44 NONAME ; void CPESingleCallObserver::CallEventOccurred(enum MCCECallObserver::TCCECallEvent) - ?StopDtmfTone@CPECallHandling@@UAEHXZ @ 45 NONAME ; int CPECallHandling::StopDtmfTone(void) - ?GoOneToOne@CPECallHandling@@UAEHH@Z @ 46 NONAME ; int CPECallHandling::GoOneToOne(int) - ?UpdatePhoneIdentity@CPECallHandling@@UAEHW4TPEMessagesFromPhoneEngine@MEngineMonitor@@@Z @ 47 NONAME ; int CPECallHandling::UpdatePhoneIdentity(enum MEngineMonitor::TPEMessagesFromPhoneEngine) - ?CallStateChangedWithInband@CPESingleCallObserver@@UAEXW4TCallState@CCPCall@@@Z @ 48 NONAME ; void CPESingleCallObserver::CallStateChangedWithInband(enum CCPCall::TCallState) - ?GetMissedCall@CPECallHandling@@UAEHAAHH@Z @ 49 NONAME ; int CPECallHandling::GetMissedCall(int &, int) - ??1CPECallHandling@@UAE@XZ @ 50 NONAME ; CPECallHandling::~CPECallHandling(void) - ?ReleaseAll@CPECallHandling@@UAEHXZ @ 51 NONAME ; int CPECallHandling::ReleaseAll(void) - ?CancelDtmfPlay@CPECallHandling@@UAEXXZ @ 52 NONAME ; void CPECallHandling::CancelDtmfPlay(void) - ?CallStateChanged@CPESingleCallObserver@@UAEXW4TCallState@CCPCall@@@Z @ 53 NONAME ; void CPESingleCallObserver::CallStateChanged(enum CCPCall::TCallState) - ?StopDtmfSending@CPECallHandling@@UAEXXZ @ 54 NONAME ; void CPECallHandling::StopDtmfSending(void) - ?CallTerminatedError@CPECallHandling@@UAEHH@Z @ 55 NONAME ; int CPECallHandling::CallTerminatedError(int) - ?CallByName@CPECallArrayOwner@@UBEPAVMPECall@@ABV?$TBuf@$0IA@@@@Z @ 56 NONAME ; class MPECall * CPECallArrayOwner::CallByName(class TBuf<128> const &) const - ?CallEventOccurred@CPEConferenceCall@@UAEXW4TCCEConferenceCallEvent@MCCEConferenceCallObserver@@PAVMCCECall@@@Z @ 57 NONAME ; void CPEConferenceCall::CallEventOccurred(enum MCCEConferenceCallObserver::TCCEConferenceCallEvent, class MCCECall *) - ?ConstructL@CPEDtmfHandling@@MAEXXZ @ 58 NONAME ; void CPEDtmfHandling::ConstructL(void) - ?SendDtmf@CPECallHandling@@UAEHABV?$TBuf@$0GE@@@@Z @ 59 NONAME ; int CPECallHandling::SendDtmf(class TBuf<100> const &) - ?ContinueDtmfSending@CPECallHandling@@UAEXXZ @ 60 NONAME ; void CPECallHandling::ContinueDtmfSending(void) - ?CallOwner@CPECallHandling@@UBEAAVMPECallOwner@@XZ @ 61 NONAME ; class MPECallOwner & CPECallHandling::CallOwner(void) const - ?CallByState@CPECallArrayOwner@@UBEPAVMPECall@@I@Z @ 62 NONAME ; class MPECall * CPECallArrayOwner::CallByState(unsigned int) const - ?NewL@CPEConferenceCall@@SAPAV1@AAVMPEMessageSender@@AAVMCCEConferenceCall@@@Z @ 63 NONAME ; class CPEConferenceCall * CPEConferenceCall::NewL(class MPEMessageSender &, class MCCEConferenceCall &) - ?IsCallByState@CPECallArrayOwner@@UBEHI@Z @ 64 NONAME ; int CPECallArrayOwner::IsCallByState(unsigned int) const - ?AcceptUnattendedTransfer@CPECallHandling@@UAEHXZ @ 65 NONAME ; int CPECallHandling::AcceptUnattendedTransfer(void) - ?HandleTransfer@CPESingleCallObserver@@UAEXHABVTDesC16@@@Z @ 66 NONAME ; void CPESingleCallObserver::HandleTransfer(int, class TDesC16 const &) - ?ReplaceActive@CPECallHandling@@UAEHXZ @ 67 NONAME ; int CPECallHandling::ReplaceActive(void) - ?CallCapsChanged@CPESingleCallObserver@@UAEXW4TCCECallControlCaps@MCCECallObserver@@@Z @ 68 NONAME ; void CPESingleCallObserver::CallCapsChanged(enum MCCECallObserver::TCCECallControlCaps) - ?NewL@CPEDtmfHandling@@SAPAV1@AAVCPECallHandling@@AAVMCCEDtmfInterface@@@Z @ 69 NONAME ; class CPEDtmfHandling * CPEDtmfHandling::NewL(class CPECallHandling &, class MCCEDtmfInterface &) - ?StartDtmfTone@CPECallHandling@@UAEHABVTChar@@@Z @ 70 NONAME ; int CPECallHandling::StartDtmfTone(class TChar const &) - ?DialMultimedia@CPECallHandling@@UAEHABV?$TBuf@$0GE@@@AAH@Z @ 71 NONAME ; int CPECallHandling::DialMultimedia(class TBuf<100> const &, int &) - ?SetActiveLine@CPECallHandling@@UAEXXZ @ 72 NONAME ; void CPECallHandling::SetActiveLine(void) - ?BarringEventOccurred@CPESupplementaryServicesMonitor@@UAEXW4TCCESsBarringEvent@MCCESsObserver@@@Z @ 73 NONAME ; void CPESupplementaryServicesMonitor::BarringEventOccurred(enum MCCESsObserver::TCCESsBarringEvent) - ??0CPECall@@IAE@AAVMPEMessageSender@@@Z @ 74 NONAME ; CPECall::CPECall(class MPEMessageSender &) - ?ForwardCallToAddress@CPECallHandling@@UAEHH@Z @ 75 NONAME ; int CPECallHandling::ForwardCallToAddress(int) - ??1CPEDtmfHandling@@UAE@XZ @ 76 NONAME ; CPEDtmfHandling::~CPEDtmfHandling(void) - ?CallCapsChanged@CPEConferenceCall@@UAEXW4TCCEConferenceCallCaps@MCCEConferenceCallObserver@@@Z @ 77 NONAME ; void CPEConferenceCall::CallCapsChanged(enum MCCEConferenceCallObserver::TCCEConferenceCallCaps) + ?CallByCallId@CPECallArrayOwner@@UBEPAVMPECall@@H@Z @ 25 NONAME ; class MPECall * CPECallArrayOwner::CallByCallId(int) const + ?GetCallDuration@CPECallHandling@@UAEHAAVTTimeIntervalSeconds@@H@Z @ 26 NONAME ; int CPECallHandling::GetCallDuration(class TTimeIntervalSeconds &, int) + ?AnswerCall@CPECallHandling@@UAEHXZ @ 27 NONAME ; int CPECallHandling::AnswerCall(void) + ??1CPECall@@MAE@XZ @ 28 NONAME ; CPECall::~CPECall(void) + ?ActiveCallCount@CPECallArrayOwner@@UBEHXZ @ 29 NONAME ; int CPECallArrayOwner::ActiveCallCount(void) const + ?NewL@CPEConferenceCall@@SAPAV1@AAVMPEMessageSender@@AAVCCCE@@@Z @ 30 NONAME ; class CPEConferenceCall * CPEConferenceCall::NewL(class MPEMessageSender &, class CCCE &) + ?StartUp@CPECallHandling@@UAEXXZ @ 31 NONAME ; void CPECallHandling::StartUp(void) + ?NotifyCurrentActiveALSLine@CPESupplementaryServicesMonitor@@UAEXH@Z @ 32 NONAME ; void CPESupplementaryServicesMonitor::NotifyCurrentActiveALSLine(int) + ?GetCallTerminatedDiagnostics@CPECallHandling@@UBEHAAV?$TBuf@$0IA@@@@Z @ 33 NONAME ; int CPECallHandling::GetCallTerminatedDiagnostics(class TBuf<128> &) const + ?GetNumberOfCalls@CPECallHandling@@UAEHXZ @ 34 NONAME ; int CPECallHandling::GetNumberOfCalls(void) + ?CallCugEventOccurred@CPESupplementaryServicesMonitor@@UAEXW4TCCESsCugEvent@MCCESsObserver@@@Z @ 35 NONAME ; void CPESupplementaryServicesMonitor::CallCugEventOccurred(enum MCCESsObserver::TCCESsCugEvent) + ?ConnectedCalls@CPECallHandling@@QAEHXZ @ 36 NONAME ; int CPECallHandling::ConnectedCalls(void) + ?HandleDTMFEvent@CPEDtmfHandling@@UAEXW4TCCEDtmfEvent@MCCEDtmfObserver@@HVTChar@@@Z @ 37 NONAME ; void CPEDtmfHandling::HandleDTMFEvent(enum MCCEDtmfObserver::TCCEDtmfEvent, int, class TChar) + ?BuildConference@CPECallHandling@@UAEHXZ @ 38 NONAME ; int CPECallHandling::BuildConference(void) + ?VoiceCallDataByState@CPECallHandling@@QBEPAVCPESingleCall@@IAAH@Z @ 39 NONAME ; class CPESingleCall * CPECallHandling::VoiceCallDataByState(unsigned int, int &) const + ?CallStateChanged@CPEConferenceCall@@UAEXW4TCCEConferenceCallState@MCCEConferenceCallObserver@@@Z @ 40 NONAME ; void CPEConferenceCall::CallStateChanged(enum MCCEConferenceCallObserver::TCCEConferenceCallState) + ?IsCallInState@CPECallHandling@@UBEHI@Z @ 41 NONAME ; int CPECallHandling::IsCallInState(unsigned int) const + ??0CPEDtmfHandling@@IAE@AAVCPECallHandling@@AAVMCCEDtmfInterface@@@Z @ 42 NONAME ; CPEDtmfHandling::CPEDtmfHandling(class CPECallHandling &, class MCCEDtmfInterface &) + ?CallEventOccurred@CPESingleCallObserver@@UAEXW4TCCECallEvent@MCCECallObserver@@@Z @ 43 NONAME ; void CPESingleCallObserver::CallEventOccurred(enum MCCECallObserver::TCCECallEvent) + ?StopDtmfTone@CPECallHandling@@UAEHXZ @ 44 NONAME ; int CPECallHandling::StopDtmfTone(void) + ?GoOneToOne@CPECallHandling@@UAEHH@Z @ 45 NONAME ; int CPECallHandling::GoOneToOne(int) + ?CallStateChangedWithInband@CPESingleCallObserver@@UAEXW4TCallState@CCPCall@@@Z @ 46 NONAME ; void CPESingleCallObserver::CallStateChangedWithInband(enum CCPCall::TCallState) + ?GetMissedCall@CPECallHandling@@UAEHAAHH@Z @ 47 NONAME ; int CPECallHandling::GetMissedCall(int &, int) + ??1CPECallHandling@@UAE@XZ @ 48 NONAME ; CPECallHandling::~CPECallHandling(void) + ?ReleaseAll@CPECallHandling@@UAEHXZ @ 49 NONAME ; int CPECallHandling::ReleaseAll(void) + ?CancelDtmfPlay@CPECallHandling@@UAEXXZ @ 50 NONAME ; void CPECallHandling::CancelDtmfPlay(void) + ?CallStateChanged@CPESingleCallObserver@@UAEXW4TCallState@CCPCall@@@Z @ 51 NONAME ; void CPESingleCallObserver::CallStateChanged(enum CCPCall::TCallState) + ?StopDtmfSending@CPECallHandling@@UAEXXZ @ 52 NONAME ; void CPECallHandling::StopDtmfSending(void) + ?CallTerminatedError@CPECallHandling@@UAEHH@Z @ 53 NONAME ; int CPECallHandling::CallTerminatedError(int) + ?CallByName@CPECallArrayOwner@@UBEPAVMPECall@@ABV?$TBuf@$0IA@@@@Z @ 54 NONAME ; class MPECall * CPECallArrayOwner::CallByName(class TBuf<128> const &) const + ?CallEventOccurred@CPEConferenceCall@@UAEXW4TCCEConferenceCallEvent@MCCEConferenceCallObserver@@PAVMCCECall@@@Z @ 55 NONAME ; void CPEConferenceCall::CallEventOccurred(enum MCCEConferenceCallObserver::TCCEConferenceCallEvent, class MCCECall *) + ?ConstructL@CPEDtmfHandling@@MAEXXZ @ 56 NONAME ; void CPEDtmfHandling::ConstructL(void) + ?ContinueDtmfSending@CPECallHandling@@UAEXXZ @ 57 NONAME ; void CPECallHandling::ContinueDtmfSending(void) + ?SendDtmf@CPECallHandling@@UAEHABV?$TBuf@$0GE@@@@Z @ 58 NONAME ; int CPECallHandling::SendDtmf(class TBuf<100> const &) + ?CallOwner@CPECallHandling@@UBEAAVMPECallOwner@@XZ @ 59 NONAME ; class MPECallOwner & CPECallHandling::CallOwner(void) const + ?CallByState@CPECallArrayOwner@@UBEPAVMPECall@@I@Z @ 60 NONAME ; class MPECall * CPECallArrayOwner::CallByState(unsigned int) const + ?NewL@CPEConferenceCall@@SAPAV1@AAVMPEMessageSender@@AAVMCCEConferenceCall@@@Z @ 61 NONAME ; class CPEConferenceCall * CPEConferenceCall::NewL(class MPEMessageSender &, class MCCEConferenceCall &) + ?IsCallByState@CPECallArrayOwner@@UBEHI@Z @ 62 NONAME ; int CPECallArrayOwner::IsCallByState(unsigned int) const + ?AcceptUnattendedTransfer@CPECallHandling@@UAEHXZ @ 63 NONAME ; int CPECallHandling::AcceptUnattendedTransfer(void) + ?HandleTransfer@CPESingleCallObserver@@UAEXHABVTDesC16@@@Z @ 64 NONAME ; void CPESingleCallObserver::HandleTransfer(int, class TDesC16 const &) + ?ReplaceActive@CPECallHandling@@UAEHXZ @ 65 NONAME ; int CPECallHandling::ReplaceActive(void) + ?CallCapsChanged@CPESingleCallObserver@@UAEXW4TCCECallControlCaps@MCCECallObserver@@@Z @ 66 NONAME ; void CPESingleCallObserver::CallCapsChanged(enum MCCECallObserver::TCCECallControlCaps) + ?NewL@CPEDtmfHandling@@SAPAV1@AAVCPECallHandling@@AAVMCCEDtmfInterface@@@Z @ 67 NONAME ; class CPEDtmfHandling * CPEDtmfHandling::NewL(class CPECallHandling &, class MCCEDtmfInterface &) + ?StartDtmfTone@CPECallHandling@@UAEHABVTChar@@@Z @ 68 NONAME ; int CPECallHandling::StartDtmfTone(class TChar const &) + ?DialMultimedia@CPECallHandling@@UAEHABV?$TBuf@$0GE@@@AAH@Z @ 69 NONAME ; int CPECallHandling::DialMultimedia(class TBuf<100> const &, int &) + ?SetActiveLine@CPECallHandling@@UAEXXZ @ 70 NONAME ; void CPECallHandling::SetActiveLine(void) + ?BarringEventOccurred@CPESupplementaryServicesMonitor@@UAEXW4TCCESsBarringEvent@MCCESsObserver@@@Z @ 71 NONAME ; void CPESupplementaryServicesMonitor::BarringEventOccurred(enum MCCESsObserver::TCCESsBarringEvent) + ??0CPECall@@IAE@AAVMPEMessageSender@@@Z @ 72 NONAME ; CPECall::CPECall(class MPEMessageSender &) + ?ForwardCallToAddress@CPECallHandling@@UAEHH@Z @ 73 NONAME ; int CPECallHandling::ForwardCallToAddress(int) + ??1CPEDtmfHandling@@UAE@XZ @ 74 NONAME ; CPEDtmfHandling::~CPEDtmfHandling(void) + ?CallCapsChanged@CPEConferenceCall@@UAEXW4TCCEConferenceCallCaps@MCCEConferenceCallObserver@@@Z @ 75 NONAME ; void CPEConferenceCall::CallCapsChanged(enum MCCEConferenceCallObserver::TCCEConferenceCallCaps) diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/callhandling/eabi/callhandlingu.def --- a/phoneengine/callhandling/eabi/callhandlingu.def Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/callhandling/eabi/callhandlingu.def Wed Jun 23 18:12:20 2010 +0300 @@ -6,163 +6,159 @@ _ZN15CPECallHandling10ReleaseAllEv @ 5 NONAME _ZN15CPECallHandling10ResumeCallEv @ 6 NONAME _ZN15CPECallHandling11GetCallInfoERN11RMobileCall17TMobileCallInfoV3Ei @ 7 NONAME - _ZN15CPECallHandling11GetLifeTimeER5TDes8 @ 8 NONAME - _ZN15CPECallHandling12GetCallStateEi @ 9 NONAME - _ZN15CPECallHandling12StopDtmfToneEv @ 10 NONAME - _ZN15CPECallHandling13GetMissedCallERii @ 11 NONAME - _ZN15CPECallHandling13ReplaceActiveEv @ 12 NONAME - _ZN15CPECallHandling13SetActiveLineEv @ 13 NONAME - _ZN15CPECallHandling13StartDtmfToneERK5TChar @ 14 NONAME - _ZN15CPECallHandling13TransferCallsEv @ 15 NONAME - _ZN15CPECallHandling14CancelDtmfPlayEv @ 16 NONAME - _ZN15CPECallHandling14ConnectedCallsEv @ 17 NONAME - _ZN15CPECallHandling14DialMultimediaERK4TBufILi100EERi @ 18 NONAME - _ZN15CPECallHandling15BuildConferenceEv @ 19 NONAME - _ZN15CPECallHandling15GetCallDurationER20TTimeIntervalSecondsi @ 20 NONAME - _ZN15CPECallHandling15StopDtmfSendingEv @ 21 NONAME - _ZN15CPECallHandling16GetNumberOfCallsEv @ 22 NONAME - _ZN15CPECallHandling17DialEmergencyCallERK4TBufILi100EE @ 23 NONAME - _ZN15CPECallHandling19AddConferenceMemberEv @ 24 NONAME - _ZN15CPECallHandling19CallTerminatedErrorEi @ 25 NONAME - _ZN15CPECallHandling19ContinueDtmfSendingEv @ 26 NONAME - _ZN15CPECallHandling19UpdatePhoneIdentityEN14MEngineMonitor26TPEMessagesFromPhoneEngineE @ 27 NONAME - _ZN15CPECallHandling20DoUnattendedTransferERK7TDesC16 @ 28 NONAME - _ZN15CPECallHandling20ForwardCallToAddressEi @ 29 NONAME - _ZN15CPECallHandling23TerminateAllConnectionsEv @ 30 NONAME - _ZN15CPECallHandling24AcceptUnattendedTransferEv @ 31 NONAME - _ZN15CPECallHandling24RejectUnattendedTransferEv @ 32 NONAME - _ZN15CPECallHandling4NewLER21MPEPhoneModelInternalR4CCCER17MCCEDtmfInterface @ 33 NONAME - _ZN15CPECallHandling6HangUpEi16TPEHangUpOptions @ 34 NONAME - _ZN15CPECallHandling7StartUpEv @ 35 NONAME - _ZN15CPECallHandling8DialCallERK4TBufILi100EERi @ 36 NONAME - _ZN15CPECallHandling8HoldCallEv @ 37 NONAME - _ZN15CPECallHandling8SendDtmfERK4TBufILi100EE @ 38 NONAME - _ZN15CPECallHandling9SwapCallsEv @ 39 NONAME - _ZN15CPECallHandlingD0Ev @ 40 NONAME - _ZN15CPECallHandlingD1Ev @ 41 NONAME - _ZN15CPECallHandlingD2Ev @ 42 NONAME - _ZN15CPEDtmfHandling10ConstructLEv @ 43 NONAME - _ZN15CPEDtmfHandling15HandleDTMFEventEN16MCCEDtmfObserver13TCCEDtmfEventEi5TChar @ 44 NONAME - _ZN15CPEDtmfHandling4NewLER15CPECallHandlingR17MCCEDtmfInterface @ 45 NONAME - _ZN15CPEDtmfHandlingC1ER15CPECallHandlingR17MCCEDtmfInterface @ 46 NONAME - _ZN15CPEDtmfHandlingC2ER15CPECallHandlingR17MCCEDtmfInterface @ 47 NONAME - _ZN15CPEDtmfHandlingD0Ev @ 48 NONAME - _ZN15CPEDtmfHandlingD1Ev @ 49 NONAME - _ZN15CPEDtmfHandlingD2Ev @ 50 NONAME - _ZN17CPEConferenceCall13ErrorOccurredE23TCCPConferenceCallError @ 51 NONAME - _ZN17CPEConferenceCall15CallCapsChangedEN26MCCEConferenceCallObserver22TCCEConferenceCallCapsE @ 52 NONAME - _ZN17CPEConferenceCall16CallStateChangedEN26MCCEConferenceCallObserver23TCCEConferenceCallStateE @ 53 NONAME - _ZN17CPEConferenceCall17CallEventOccurredEN26MCCEConferenceCallObserver23TCCEConferenceCallEventEP8MCCECall @ 54 NONAME - _ZN21CPESingleCallObserver13ErrorOccurredE9TCCPError @ 55 NONAME - _ZN21CPESingleCallObserver14HandleTransferEiRK7TDesC16 @ 56 NONAME - _ZN21CPESingleCallObserver15CallCapsChangedEN16MCCECallObserver19TCCECallControlCapsE @ 57 NONAME - _ZN21CPESingleCallObserver16CallStateChangedEN7CCPCall10TCallStateE @ 58 NONAME - _ZN21CPESingleCallObserver17CallEventOccurredEN16MCCECallObserver13TCCECallEventE @ 59 NONAME - _ZN21CPESingleCallObserver19CallDurationChangedE20TTimeIntervalSeconds @ 60 NONAME - _ZN21CPESingleCallObserver26CallStateChangedWithInbandEN7CCPCall10TCallStateE @ 61 NONAME - _ZN31CPESupplementaryServicesMonitor16CLIEventOccurredEN14MCCESsObserver14TCCESsCLIEventE @ 62 NONAME - _ZN31CPESupplementaryServicesMonitor20BarringEventOccurredEN14MCCESsObserver18TCCESsBarringEventE @ 63 NONAME - _ZN31CPESupplementaryServicesMonitor20CallCugEventOccurredEN14MCCESsObserver14TCCESsCugEventE @ 64 NONAME - _ZN31CPESupplementaryServicesMonitor24CallForwardEventOccurredEN14MCCESsObserver22TCCESsCallForwardEventERK7TDesC16 @ 65 NONAME - _ZN31CPESupplementaryServicesMonitor26NotifyCurrentActiveALSLineEi @ 66 NONAME - _ZN7CPECall16SendErrorMessageEi @ 67 NONAME - _ZN7CPECallC1ER16MPEMessageSender @ 68 NONAME - _ZN7CPECallC2ER16MPEMessageSender @ 69 NONAME - _ZN7CPECallD0Ev @ 70 NONAME - _ZN7CPECallD1Ev @ 71 NONAME - _ZN7CPECallD2Ev @ 72 NONAME - _ZNK15CPECallHandling13IsCallInStateEj @ 73 NONAME - _ZNK15CPECallHandling16GetCallIdByStateEj @ 74 NONAME - _ZNK15CPECallHandling20VoiceCallDataByStateEjRi @ 75 NONAME - _ZNK15CPECallHandling28GetCallTerminatedDiagnosticsER4TBufILi128EE @ 76 NONAME - _ZNK15CPECallHandling9CallOwnerEv @ 77 NONAME - _ZNK17CPECallArrayOwner10CallByNameERK4TBufILi128EE @ 78 NONAME - _ZNK17CPECallArrayOwner11CallByStateEj @ 79 NONAME - _ZNK17CPECallArrayOwner12CallByCallIdEi @ 80 NONAME - _ZNK17CPECallArrayOwner13IsCallByStateEj @ 81 NONAME - _ZNK17CPECallArrayOwner14IsCallByCallIdEi @ 82 NONAME - _ZNK17CPECallArrayOwner15ActiveCallCountEv @ 83 NONAME - _ZTI13CPESingleCall @ 84 NONAME - _ZTI15CPECallHandling @ 85 NONAME - _ZTI15CPEDtmfHandling @ 86 NONAME - _ZTI17CPECallArrayOwner @ 87 NONAME - _ZTI17CPEConferenceCall @ 88 NONAME - _ZTI18CPEGprsTermination @ 89 NONAME - _ZTI18CPESystemCallState @ 90 NONAME - _ZTI20CPEVideoCallHandling @ 91 NONAME - _ZTI21CPESingleCallObserver @ 92 NONAME - _ZTI31CPESupplementaryServicesMonitor @ 93 NONAME - _ZTI7CPECall @ 94 NONAME - _ZTV13CPESingleCall @ 95 NONAME - _ZTV15CPECallHandling @ 96 NONAME - _ZTV15CPEDtmfHandling @ 97 NONAME - _ZTV17CPECallArrayOwner @ 98 NONAME - _ZTV17CPEConferenceCall @ 99 NONAME - _ZTV18CPEGprsTermination @ 100 NONAME - _ZTV18CPESystemCallState @ 101 NONAME - _ZTV20CPEVideoCallHandling @ 102 NONAME - _ZTV21CPESingleCallObserver @ 103 NONAME - _ZTV31CPESupplementaryServicesMonitor @ 104 NONAME - _ZTV7CPECall @ 105 NONAME - _ZThn24_N17CPEConferenceCall13ErrorOccurredE23TCCPConferenceCallError @ 106 NONAME - _ZThn24_N17CPEConferenceCall15CallCapsChangedEN26MCCEConferenceCallObserver22TCCEConferenceCallCapsE @ 107 NONAME - _ZThn24_N17CPEConferenceCall16CallStateChangedEN26MCCEConferenceCallObserver23TCCEConferenceCallStateE @ 108 NONAME - _ZThn24_N17CPEConferenceCall17CallEventOccurredEN26MCCEConferenceCallObserver23TCCEConferenceCallEventEP8MCCECall @ 109 NONAME - _ZThn24_N21CPESingleCallObserver13ErrorOccurredE9TCCPError @ 110 NONAME - _ZThn24_N21CPESingleCallObserver14HandleTransferEiRK7TDesC16 @ 111 NONAME - _ZThn24_N21CPESingleCallObserver15CallCapsChangedEN16MCCECallObserver19TCCECallControlCapsE @ 112 NONAME - _ZThn24_N21CPESingleCallObserver16CallStateChangedEN7CCPCall10TCallStateE @ 113 NONAME - _ZThn24_N21CPESingleCallObserver17CallEventOccurredEN16MCCECallObserver13TCCECallEventE @ 114 NONAME - _ZThn24_N21CPESingleCallObserver19CallDurationChangedE20TTimeIntervalSeconds @ 115 NONAME - _ZThn24_N21CPESingleCallObserver26CallStateChangedWithInbandEN7CCPCall10TCallStateE @ 116 NONAME - _ZThn4_N15CPEDtmfHandling15HandleDTMFEventEN16MCCEDtmfObserver13TCCEDtmfEventEi5TChar @ 117 NONAME - _ZThn4_NK17CPECallArrayOwner10CallByNameERK4TBufILi128EE @ 118 NONAME - _ZThn4_NK17CPECallArrayOwner11CallByStateEj @ 119 NONAME - _ZThn4_NK17CPECallArrayOwner12CallByCallIdEi @ 120 NONAME - _ZThn4_NK17CPECallArrayOwner13IsCallByStateEj @ 121 NONAME - _ZThn4_NK17CPECallArrayOwner14IsCallByCallIdEi @ 122 NONAME - _ZThn4_NK17CPECallArrayOwner15ActiveCallCountEv @ 123 NONAME - _ZThn8_N15CPECallHandling10AnswerCallEv @ 124 NONAME - _ZThn8_N15CPECallHandling10DropMemberEi @ 125 NONAME - _ZThn8_N15CPECallHandling10GoOneToOneEi @ 126 NONAME - _ZThn8_N15CPECallHandling10RejectCallEv @ 127 NONAME - _ZThn8_N15CPECallHandling10ReleaseAllEv @ 128 NONAME - _ZThn8_N15CPECallHandling10ResumeCallEv @ 129 NONAME - _ZThn8_N15CPECallHandling11GetCallInfoERN11RMobileCall17TMobileCallInfoV3Ei @ 130 NONAME - _ZThn8_N15CPECallHandling11GetLifeTimeER5TDes8 @ 131 NONAME - _ZThn8_N15CPECallHandling12GetCallStateEi @ 132 NONAME - _ZThn8_N15CPECallHandling12StopDtmfToneEv @ 133 NONAME - _ZThn8_N15CPECallHandling13GetMissedCallERii @ 134 NONAME - _ZThn8_N15CPECallHandling13ReplaceActiveEv @ 135 NONAME - _ZThn8_N15CPECallHandling13SetActiveLineEv @ 136 NONAME - _ZThn8_N15CPECallHandling13StartDtmfToneERK5TChar @ 137 NONAME - _ZThn8_N15CPECallHandling13TransferCallsEv @ 138 NONAME - _ZThn8_N15CPECallHandling14CancelDtmfPlayEv @ 139 NONAME - _ZThn8_N15CPECallHandling14DialMultimediaERK4TBufILi100EERi @ 140 NONAME - _ZThn8_N15CPECallHandling15BuildConferenceEv @ 141 NONAME - _ZThn8_N15CPECallHandling15GetCallDurationER20TTimeIntervalSecondsi @ 142 NONAME - _ZThn8_N15CPECallHandling15StopDtmfSendingEv @ 143 NONAME - _ZThn8_N15CPECallHandling16GetNumberOfCallsEv @ 144 NONAME - _ZThn8_N15CPECallHandling17DialEmergencyCallERK4TBufILi100EE @ 145 NONAME - _ZThn8_N15CPECallHandling19AddConferenceMemberEv @ 146 NONAME - _ZThn8_N15CPECallHandling19CallTerminatedErrorEi @ 147 NONAME - _ZThn8_N15CPECallHandling19ContinueDtmfSendingEv @ 148 NONAME - _ZThn8_N15CPECallHandling19UpdatePhoneIdentityEN14MEngineMonitor26TPEMessagesFromPhoneEngineE @ 149 NONAME - _ZThn8_N15CPECallHandling20DoUnattendedTransferERK7TDesC16 @ 150 NONAME - _ZThn8_N15CPECallHandling20ForwardCallToAddressEi @ 151 NONAME - _ZThn8_N15CPECallHandling23TerminateAllConnectionsEv @ 152 NONAME - _ZThn8_N15CPECallHandling24AcceptUnattendedTransferEv @ 153 NONAME - _ZThn8_N15CPECallHandling24RejectUnattendedTransferEv @ 154 NONAME - _ZThn8_N15CPECallHandling6HangUpEi16TPEHangUpOptions @ 155 NONAME - _ZThn8_N15CPECallHandling7StartUpEv @ 156 NONAME - _ZThn8_N15CPECallHandling8DialCallERK4TBufILi100EERi @ 157 NONAME - _ZThn8_N15CPECallHandling8HoldCallEv @ 158 NONAME - _ZThn8_N15CPECallHandling8SendDtmfERK4TBufILi100EE @ 159 NONAME - _ZThn8_N15CPECallHandling9SwapCallsEv @ 160 NONAME - _ZThn8_N15CPECallHandlingD0Ev @ 161 NONAME - _ZThn8_N15CPECallHandlingD1Ev @ 162 NONAME - _ZThn8_NK15CPECallHandling13IsCallInStateEj @ 163 NONAME - _ZThn8_NK15CPECallHandling16GetCallIdByStateEj @ 164 NONAME - _ZThn8_NK15CPECallHandling28GetCallTerminatedDiagnosticsER4TBufILi128EE @ 165 NONAME - _ZThn8_NK15CPECallHandling9CallOwnerEv @ 166 NONAME + _ZN15CPECallHandling12GetCallStateEi @ 8 NONAME + _ZN15CPECallHandling12StopDtmfToneEv @ 9 NONAME + _ZN15CPECallHandling13GetMissedCallERii @ 10 NONAME + _ZN15CPECallHandling13ReplaceActiveEv @ 11 NONAME + _ZN15CPECallHandling13SetActiveLineEv @ 12 NONAME + _ZN15CPECallHandling13StartDtmfToneERK5TChar @ 13 NONAME + _ZN15CPECallHandling13TransferCallsEv @ 14 NONAME + _ZN15CPECallHandling14CancelDtmfPlayEv @ 15 NONAME + _ZN15CPECallHandling14ConnectedCallsEv @ 16 NONAME + _ZN15CPECallHandling14DialMultimediaERK4TBufILi100EERi @ 17 NONAME + _ZN15CPECallHandling15BuildConferenceEv @ 18 NONAME + _ZN15CPECallHandling15GetCallDurationER20TTimeIntervalSecondsi @ 19 NONAME + _ZN15CPECallHandling15StopDtmfSendingEv @ 20 NONAME + _ZN15CPECallHandling16GetNumberOfCallsEv @ 21 NONAME + _ZN15CPECallHandling17DialEmergencyCallERK4TBufILi100EE @ 22 NONAME + _ZN15CPECallHandling19AddConferenceMemberEv @ 23 NONAME + _ZN15CPECallHandling19CallTerminatedErrorEi @ 24 NONAME + _ZN15CPECallHandling19ContinueDtmfSendingEv @ 25 NONAME + _ZN15CPECallHandling20DoUnattendedTransferERK7TDesC16 @ 26 NONAME + _ZN15CPECallHandling20ForwardCallToAddressEi @ 27 NONAME + _ZN15CPECallHandling23TerminateAllConnectionsEv @ 28 NONAME + _ZN15CPECallHandling24AcceptUnattendedTransferEv @ 29 NONAME + _ZN15CPECallHandling24RejectUnattendedTransferEv @ 30 NONAME + _ZN15CPECallHandling4NewLER21MPEPhoneModelInternalR4CCCER17MCCEDtmfInterface @ 31 NONAME + _ZN15CPECallHandling6HangUpEi16TPEHangUpOptions @ 32 NONAME + _ZN15CPECallHandling7StartUpEv @ 33 NONAME + _ZN15CPECallHandling8DialCallERK4TBufILi100EERi @ 34 NONAME + _ZN15CPECallHandling8HoldCallEv @ 35 NONAME + _ZN15CPECallHandling8SendDtmfERK4TBufILi100EE @ 36 NONAME + _ZN15CPECallHandling9SwapCallsEv @ 37 NONAME + _ZN15CPECallHandlingD0Ev @ 38 NONAME + _ZN15CPECallHandlingD1Ev @ 39 NONAME + _ZN15CPECallHandlingD2Ev @ 40 NONAME + _ZN15CPEDtmfHandling10ConstructLEv @ 41 NONAME + _ZN15CPEDtmfHandling15HandleDTMFEventEN16MCCEDtmfObserver13TCCEDtmfEventEi5TChar @ 42 NONAME + _ZN15CPEDtmfHandling4NewLER15CPECallHandlingR17MCCEDtmfInterface @ 43 NONAME + _ZN15CPEDtmfHandlingC1ER15CPECallHandlingR17MCCEDtmfInterface @ 44 NONAME + _ZN15CPEDtmfHandlingC2ER15CPECallHandlingR17MCCEDtmfInterface @ 45 NONAME + _ZN15CPEDtmfHandlingD0Ev @ 46 NONAME + _ZN15CPEDtmfHandlingD1Ev @ 47 NONAME + _ZN15CPEDtmfHandlingD2Ev @ 48 NONAME + _ZN17CPEConferenceCall13ErrorOccurredE23TCCPConferenceCallError @ 49 NONAME + _ZN17CPEConferenceCall15CallCapsChangedEN26MCCEConferenceCallObserver22TCCEConferenceCallCapsE @ 50 NONAME + _ZN17CPEConferenceCall16CallStateChangedEN26MCCEConferenceCallObserver23TCCEConferenceCallStateE @ 51 NONAME + _ZN17CPEConferenceCall17CallEventOccurredEN26MCCEConferenceCallObserver23TCCEConferenceCallEventEP8MCCECall @ 52 NONAME + _ZN21CPESingleCallObserver13ErrorOccurredE9TCCPError @ 53 NONAME + _ZN21CPESingleCallObserver14HandleTransferEiRK7TDesC16 @ 54 NONAME + _ZN21CPESingleCallObserver15CallCapsChangedEN16MCCECallObserver19TCCECallControlCapsE @ 55 NONAME + _ZN21CPESingleCallObserver16CallStateChangedEN7CCPCall10TCallStateE @ 56 NONAME + _ZN21CPESingleCallObserver17CallEventOccurredEN16MCCECallObserver13TCCECallEventE @ 57 NONAME + _ZN21CPESingleCallObserver19CallDurationChangedE20TTimeIntervalSeconds @ 58 NONAME + _ZN21CPESingleCallObserver26CallStateChangedWithInbandEN7CCPCall10TCallStateE @ 59 NONAME + _ZN31CPESupplementaryServicesMonitor16CLIEventOccurredEN14MCCESsObserver14TCCESsCLIEventE @ 60 NONAME + _ZN31CPESupplementaryServicesMonitor20BarringEventOccurredEN14MCCESsObserver18TCCESsBarringEventE @ 61 NONAME + _ZN31CPESupplementaryServicesMonitor20CallCugEventOccurredEN14MCCESsObserver14TCCESsCugEventE @ 62 NONAME + _ZN31CPESupplementaryServicesMonitor24CallForwardEventOccurredEN14MCCESsObserver22TCCESsCallForwardEventERK7TDesC16 @ 63 NONAME + _ZN31CPESupplementaryServicesMonitor26NotifyCurrentActiveALSLineEi @ 64 NONAME + _ZN7CPECall16SendErrorMessageEi @ 65 NONAME + _ZN7CPECallC1ER16MPEMessageSender @ 66 NONAME + _ZN7CPECallC2ER16MPEMessageSender @ 67 NONAME + _ZN7CPECallD0Ev @ 68 NONAME + _ZN7CPECallD1Ev @ 69 NONAME + _ZN7CPECallD2Ev @ 70 NONAME + _ZNK15CPECallHandling13IsCallInStateEj @ 71 NONAME + _ZNK15CPECallHandling16GetCallIdByStateEj @ 72 NONAME + _ZNK15CPECallHandling20VoiceCallDataByStateEjRi @ 73 NONAME + _ZNK15CPECallHandling28GetCallTerminatedDiagnosticsER4TBufILi128EE @ 74 NONAME + _ZNK15CPECallHandling9CallOwnerEv @ 75 NONAME + _ZNK17CPECallArrayOwner10CallByNameERK4TBufILi128EE @ 76 NONAME + _ZNK17CPECallArrayOwner11CallByStateEj @ 77 NONAME + _ZNK17CPECallArrayOwner12CallByCallIdEi @ 78 NONAME + _ZNK17CPECallArrayOwner13IsCallByStateEj @ 79 NONAME + _ZNK17CPECallArrayOwner14IsCallByCallIdEi @ 80 NONAME + _ZNK17CPECallArrayOwner15ActiveCallCountEv @ 81 NONAME + _ZTI13CPESingleCall @ 82 NONAME + _ZTI15CPECallHandling @ 83 NONAME + _ZTI15CPEDtmfHandling @ 84 NONAME + _ZTI17CPECallArrayOwner @ 85 NONAME + _ZTI17CPEConferenceCall @ 86 NONAME + _ZTI18CPEGprsTermination @ 87 NONAME + _ZTI18CPESystemCallState @ 88 NONAME + _ZTI20CPEVideoCallHandling @ 89 NONAME + _ZTI21CPESingleCallObserver @ 90 NONAME + _ZTI31CPESupplementaryServicesMonitor @ 91 NONAME + _ZTI7CPECall @ 92 NONAME + _ZTV13CPESingleCall @ 93 NONAME + _ZTV15CPECallHandling @ 94 NONAME + _ZTV15CPEDtmfHandling @ 95 NONAME + _ZTV17CPECallArrayOwner @ 96 NONAME + _ZTV17CPEConferenceCall @ 97 NONAME + _ZTV18CPEGprsTermination @ 98 NONAME + _ZTV18CPESystemCallState @ 99 NONAME + _ZTV20CPEVideoCallHandling @ 100 NONAME + _ZTV21CPESingleCallObserver @ 101 NONAME + _ZTV31CPESupplementaryServicesMonitor @ 102 NONAME + _ZTV7CPECall @ 103 NONAME + _ZThn24_N17CPEConferenceCall13ErrorOccurredE23TCCPConferenceCallError @ 104 NONAME + _ZThn24_N17CPEConferenceCall15CallCapsChangedEN26MCCEConferenceCallObserver22TCCEConferenceCallCapsE @ 105 NONAME + _ZThn24_N17CPEConferenceCall16CallStateChangedEN26MCCEConferenceCallObserver23TCCEConferenceCallStateE @ 106 NONAME + _ZThn24_N17CPEConferenceCall17CallEventOccurredEN26MCCEConferenceCallObserver23TCCEConferenceCallEventEP8MCCECall @ 107 NONAME + _ZThn24_N21CPESingleCallObserver13ErrorOccurredE9TCCPError @ 108 NONAME + _ZThn24_N21CPESingleCallObserver14HandleTransferEiRK7TDesC16 @ 109 NONAME + _ZThn24_N21CPESingleCallObserver15CallCapsChangedEN16MCCECallObserver19TCCECallControlCapsE @ 110 NONAME + _ZThn24_N21CPESingleCallObserver16CallStateChangedEN7CCPCall10TCallStateE @ 111 NONAME + _ZThn24_N21CPESingleCallObserver17CallEventOccurredEN16MCCECallObserver13TCCECallEventE @ 112 NONAME + _ZThn24_N21CPESingleCallObserver19CallDurationChangedE20TTimeIntervalSeconds @ 113 NONAME + _ZThn24_N21CPESingleCallObserver26CallStateChangedWithInbandEN7CCPCall10TCallStateE @ 114 NONAME + _ZThn4_N15CPEDtmfHandling15HandleDTMFEventEN16MCCEDtmfObserver13TCCEDtmfEventEi5TChar @ 115 NONAME + _ZThn4_NK17CPECallArrayOwner10CallByNameERK4TBufILi128EE @ 116 NONAME + _ZThn4_NK17CPECallArrayOwner11CallByStateEj @ 117 NONAME + _ZThn4_NK17CPECallArrayOwner12CallByCallIdEi @ 118 NONAME + _ZThn4_NK17CPECallArrayOwner13IsCallByStateEj @ 119 NONAME + _ZThn4_NK17CPECallArrayOwner14IsCallByCallIdEi @ 120 NONAME + _ZThn4_NK17CPECallArrayOwner15ActiveCallCountEv @ 121 NONAME + _ZThn8_N15CPECallHandling10AnswerCallEv @ 122 NONAME + _ZThn8_N15CPECallHandling10DropMemberEi @ 123 NONAME + _ZThn8_N15CPECallHandling10GoOneToOneEi @ 124 NONAME + _ZThn8_N15CPECallHandling10RejectCallEv @ 125 NONAME + _ZThn8_N15CPECallHandling10ReleaseAllEv @ 126 NONAME + _ZThn8_N15CPECallHandling10ResumeCallEv @ 127 NONAME + _ZThn8_N15CPECallHandling11GetCallInfoERN11RMobileCall17TMobileCallInfoV3Ei @ 128 NONAME + _ZThn8_N15CPECallHandling12GetCallStateEi @ 129 NONAME + _ZThn8_N15CPECallHandling12StopDtmfToneEv @ 130 NONAME + _ZThn8_N15CPECallHandling13GetMissedCallERii @ 131 NONAME + _ZThn8_N15CPECallHandling13ReplaceActiveEv @ 132 NONAME + _ZThn8_N15CPECallHandling13SetActiveLineEv @ 133 NONAME + _ZThn8_N15CPECallHandling13StartDtmfToneERK5TChar @ 134 NONAME + _ZThn8_N15CPECallHandling13TransferCallsEv @ 135 NONAME + _ZThn8_N15CPECallHandling14CancelDtmfPlayEv @ 136 NONAME + _ZThn8_N15CPECallHandling14DialMultimediaERK4TBufILi100EERi @ 137 NONAME + _ZThn8_N15CPECallHandling15BuildConferenceEv @ 138 NONAME + _ZThn8_N15CPECallHandling15GetCallDurationER20TTimeIntervalSecondsi @ 139 NONAME + _ZThn8_N15CPECallHandling15StopDtmfSendingEv @ 140 NONAME + _ZThn8_N15CPECallHandling16GetNumberOfCallsEv @ 141 NONAME + _ZThn8_N15CPECallHandling17DialEmergencyCallERK4TBufILi100EE @ 142 NONAME + _ZThn8_N15CPECallHandling19AddConferenceMemberEv @ 143 NONAME + _ZThn8_N15CPECallHandling19CallTerminatedErrorEi @ 144 NONAME + _ZThn8_N15CPECallHandling19ContinueDtmfSendingEv @ 145 NONAME + _ZThn8_N15CPECallHandling20DoUnattendedTransferERK7TDesC16 @ 146 NONAME + _ZThn8_N15CPECallHandling20ForwardCallToAddressEi @ 147 NONAME + _ZThn8_N15CPECallHandling23TerminateAllConnectionsEv @ 148 NONAME + _ZThn8_N15CPECallHandling24AcceptUnattendedTransferEv @ 149 NONAME + _ZThn8_N15CPECallHandling24RejectUnattendedTransferEv @ 150 NONAME + _ZThn8_N15CPECallHandling6HangUpEi16TPEHangUpOptions @ 151 NONAME + _ZThn8_N15CPECallHandling7StartUpEv @ 152 NONAME + _ZThn8_N15CPECallHandling8DialCallERK4TBufILi100EERi @ 153 NONAME + _ZThn8_N15CPECallHandling8HoldCallEv @ 154 NONAME + _ZThn8_N15CPECallHandling8SendDtmfERK4TBufILi100EE @ 155 NONAME + _ZThn8_N15CPECallHandling9SwapCallsEv @ 156 NONAME + _ZThn8_N15CPECallHandlingD0Ev @ 157 NONAME + _ZThn8_N15CPECallHandlingD1Ev @ 158 NONAME + _ZThn8_NK15CPECallHandling13IsCallInStateEj @ 159 NONAME + _ZThn8_NK15CPECallHandling16GetCallIdByStateEj @ 160 NONAME + _ZThn8_NK15CPECallHandling28GetCallTerminatedDiagnosticsER4TBufILi128EE @ 161 NONAME + _ZThn8_NK15CPECallHandling9CallOwnerEv @ 162 NONAME diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/callhandling/group/callhandling.mmp --- a/phoneengine/callhandling/group/callhandling.mmp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/callhandling/group/callhandling.mmp Wed Jun 23 18:12:20 2010 +0300 @@ -40,6 +40,7 @@ SOURCE cpesystemcallstate.cpp SOURCE cpevideocallhandling.cpp SOURCE cpecceobserver.cpp +SOURCE tpematcher.cpp USERINCLUDE ../inc @@ -57,6 +58,7 @@ LIBRARY featmgr.lib // Feature manager. LIBRARY flogger.lib LIBRARY phonesettings.lib +LIBRARY centralrepository.lib // CenRep. LANG SC START WINS diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/callhandling/inc/cpecallhandling.h --- a/phoneengine/callhandling/inc/cpecallhandling.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/callhandling/inc/cpecallhandling.h Wed Jun 23 18:12:20 2010 +0300 @@ -54,6 +54,7 @@ class CCCECallParameters; class CPECCEObserver; class CPESystemCallState; +class CRepository; // CLASS DECLARATION @@ -283,14 +284,6 @@ IMPORT_C TInt TerminateAllConnections(); /** - * Asks phone identity parameters from the mmetel. - * @param aMessage Reply message to the phone application. - * @return Error (KErrNone or KErrNotFound). - */ - IMPORT_C TInt UpdatePhoneIdentity( - MEngineMonitor::TPEMessagesFromPhoneEngine aMessage ); - - /** * Sets active line */ IMPORT_C void SetActiveLine(); @@ -380,14 +373,6 @@ IMPORT_C TInt CallTerminatedError( const TInt aCallId ); /** - * This method gets the lifetime of the MS. The lifetime information - * includes the manufacturing date of the MS and the total amount of airtime use. - * @param aLifeTimeInfo Life time information - * @return Get succeeded or not. - */ - IMPORT_C TBool GetLifeTime( TDes8& aLifeTimeInfo ); - - /** * Replace active call with waiting call. * @since Series60_5.0 * @return Error (KErrNone is success). @@ -648,6 +633,15 @@ * @param aCall reference to call object */ void SetCallOrigin( const TInt aCallId, const MCCECall& aCall ) const; + + /** + * Set COLP number to datastore if remote party number is + * different from dialled number. + * @param aCallid. + * @param aCall reference to call object + * @return Updating Colp number was necessary. + */ + TBool UpdateColpNumber( TInt aCallId, const MCCECall& aCall ) const; protected: // Phone model instance which owns this object. @@ -689,6 +683,8 @@ CPECCEObserver* iCCEObserver; // System Call State CPESystemCallState* iSystemCallState; + + CRepository* iRepository; }; #endif // CPECALLHANDLING_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/callhandling/inc/mpecallhandling.h --- a/phoneengine/callhandling/inc/mpecallhandling.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/callhandling/inc/mpecallhandling.h Wed Jun 23 18:12:20 2010 +0300 @@ -110,15 +110,6 @@ virtual TInt TerminateAllConnections() = 0; /** - * Asks phone identity parameters from the mmetel. - * @since Series60_4.0 - * @param aMessage Reply message to the phone application. - * @return Error (KErrNone or KErrNotFound). - */ - virtual TInt UpdatePhoneIdentity( - MEngineMonitor::TPEMessagesFromPhoneEngine aMessage ) = 0; - - /** * Determines if there is a call in given state. * @since Series60_4.0 * @param aState Call state search key. @@ -370,14 +361,6 @@ virtual void CancelDtmfPlay() = 0; /** - * This method gets the lifetime of the MS. The lifetime information - * includes the manufacturing date of the MS and the total amount of airtime use. - * @param aLifeTimeInfo Life time information - * @return Get succeeded or not. - */ - virtual TBool GetLifeTime( TDes8& aLifeTimeInfo ) = 0; - - /** * This method gets the reference to MPECallOwner object. * @return None. */ diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/callhandling/inc/tpematcher.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneengine/callhandling/inc/tpematcher.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,55 @@ +/* +* 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 file contains the header file of the class TPEMatcher. +* +*/ + +#ifndef TPEMATCHER_H_ +#define TPEMATCHER_H_ + +#include +#include + +class TPEMatcher + { +public: + + /** + * C++ default constructor. + */ + TPEMatcher(); + + /** + * Destructor. + */ + ~TPEMatcher(); + + /** + * Finds if the two numbers match. Numbers are matched from + * right to left. If either or both of the numbers passed as a parameter + * are shorter than aCount the shortes number count is used in + * matching. + * + * @since S60 v5.2 + * @param aNumber1 phone number. + * @param aNumber2 phone number. + * @param aCount Digit count used to match numbers. + * @return Found match. + */ + TBool numbersMatch( const TDesC& aNumber1, const TDesC& aNumber2, TInt aCount ); + + }; + + +#endif /* TPEMATCHER_H_ */ diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/callhandling/src/cpecallhandling.cpp --- a/phoneengine/callhandling/src/cpecallhandling.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/callhandling/src/cpecallhandling.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -29,6 +29,7 @@ #include "mpecallhandling.h" #include "cpecceobserver.h" #include "cpesystemcallstate.h" +#include "tpematcher.h" #include #include @@ -39,6 +40,7 @@ #include #include #include +#include // EXTERNAL DATA STRUCTURES // None @@ -47,7 +49,19 @@ // None // CONSTANTS -// None +/****************************************************************************** +* Telephony Configuration API +* Keys under this category are used in defining telephony configuration. +******************************************************************************/ +const TUid KCRUidTelConfiguration = {0x102828B8}; + +/** +* Amount of digits to be used in contact matching. +* This allows a customer to variate the amount of digits to be matched. +*/ +const TUint32 KTelMatchDigits = 0x00000001; + +const TInt KPEMatchDefault = 7; // MACROS // None @@ -92,6 +106,7 @@ { TEFLOGSTRING( KTAOBJECT, "CALL CPECallHandling::~CPECallHandling() start"); + delete iRepository; delete iSystemCallState; delete iDtmfHandling; @@ -164,6 +179,8 @@ iSystemCallState = CPESystemCallState::NewL( *iCallArrayOwner, *iModel.DataStore() ); + iRepository = CRepository::NewL( KCRUidTelConfiguration ); + TEFLOGSTRING( KTAOBJECT, "CALL CPECallHandling::BaseConstructL() complete"); } @@ -437,19 +454,20 @@ { TEFLOGSTRING( KTAMESINT, "CALL CPECallHandling::SendMessage -> EPEMessageRemotePartyInfoChanged"); // HO cases call type can changes - CPESingleCall* connectedCall; - connectedCall = iCallArrayOwner->CallPointerByState( EPEStateConnected ); - - if( connectedCall ) + CPESingleCall* call; + call = static_cast( iCallArrayOwner->CallByCallId( aCallId ) ); + + MCCECall& connectedCall = call->Call(); + CCPCall::TCallType callType = connectedCall.Parameters().CallType(); + + if ( EPEStateConnected == call->GetCallState() ) { - CCPCall::TCallType callType = connectedCall->Call().Parameters().CallType(); - if ( callType == CCPCall::ECallTypePS ) { TEFLOGSTRING( KTAMESINT, "CALL CPECallHandling::SendMessage -> EPEMessageRemotePartyInfoChanged->update call type to PS"); iModel.DataStore()->SetCallType( EPECallTypeVoIP, aCallId ); - iModel.DataStore()->SetServiceIdCommand( connectedCall->Call().Parameters().ServiceId() ); + iModel.DataStore()->SetServiceIdCommand( call->Call().Parameters().ServiceId() ); iCallOpenParams->SetCallType( CCPCall::ECallTypePS); } else if ( callType == CCPCall::ECallTypeCSVoice ) @@ -458,14 +476,23 @@ "CALL CPECallHandling::SendMessage -> EPEMessageRemotePartyInfoChanged->update call type to CS"); iCallOpenParams->SetCallType( CCPCall::ECallTypeCSVoice ); iModel.DataStore()->SetServiceIdCommand( 1 ); - iModel.DataStore()->SetCallType( EPECallTypeCSVoice, aCallId ); + iModel.DataStore()->SetCallType( EPECallTypeCSVoice, aCallId ); + if ( UpdateColpNumber( aCallId, connectedCall )) + { + iModel.SendMessage( MEngineMonitor::EPEMessageColpNumberAvailable, aCallId ); + } } } + // CNAP informations must be in incoming call + iModel.DataStore()->SetRemotePartyName( connectedCall.RemotePartyName(), aCallId ); + iModel.DataStore()->SetRemotePhoneNumber( connectedCall.RemoteParty().Left( KPEPhoneNumberMaxLength ), aCallId ); + iModel.DataStore()->SetCallIndex( connectedCall.CallIndex(), aCallId ); + break; } - // Flow throught - + case MEngineMonitor::EPEMessageIncoming: { + TEFLOGSTRING( KTAMESINT, "CALL CPECallHandling::SendMessage -> EPEMessageIncoming"); CPESingleCall* callData = iCallArrayOwner->GetCallObject( aCallId ); if( callData ) { @@ -870,28 +897,6 @@ } // ----------------------------------------------------------------------------- -// CPECallHandling::UpdatePhoneIdentity -// Method updates phone identity -// ----------------------------------------------------------------------------- -// -EXPORT_C TInt CPECallHandling::UpdatePhoneIdentity( - MEngineMonitor::TPEMessagesFromPhoneEngine /*aMessage*/ ) - { - TInt retValue( KErrNone ); - CSInfo csinfo; - retValue = iConvergedCallEngine.GetCSInfo( csinfo ); - - TPEPhoneIdentityParameters phoneIdentityParameters; - - phoneIdentityParameters.iSerialNumber = csinfo.iSerialNumber; - - iModel.DataStore()->SetPhoneIdentityParameters( phoneIdentityParameters ); - - SendMessage( MEngineMonitor::EPEMessageShowIMEI ); - return retValue; - } - -// ----------------------------------------------------------------------------- // CPECallHandling::IsCallInState // returns ETrue if there is a call in given state; otherwise EFalse // ----------------------------------------------------------------------------- @@ -1949,16 +1954,7 @@ TEFLOGSTRING( KTAINT, "CALL CPECallHandling::CreateConferenceCallL end" ); } -// ----------------------------------------------------------------------------- -// CPECallHandling::GetLifeTime -// ----------------------------------------------------------------------------- -// -EXPORT_C TBool CPECallHandling::GetLifeTime( TDes8& aLifeTimeInfo ) - { - TEFLOGSTRING( KTAINT, "CALL CPECallHandling::GetLifeTime" ); - return iConvergedCallEngine.GetLifeTime( aLifeTimeInfo ); - } - + // ----------------------------------------------------------------------------- // CPECallHandling::UpdateSaSetting // ----------------------------------------------------------------------------- @@ -2418,4 +2414,53 @@ } +// ----------------------------------------------------------------------------- +// CPECallHandling::UpdateColpNumber +// ----------------------------------------------------------------------------- +// +TBool CPECallHandling::UpdateColpNumber( TInt aCallId, const MCCECall& aCall ) const + { + TEFLOGSTRING( KTAINT, "CALL CPECallHandling::UpdateColpNumber" ); + + TBool updateDone( EFalse ); + TInt errorCode( KErrNone ); + TInt value( KPEMatchDefault ); + TPEMatcher matcher; + TPEPhoneNumber remoteNumber; + + MPEDataStore* dataStore = iModel.DataStore(); + + if ( dataStore->RemoteColpNumber( aCallId ).Length() ) + { + remoteNumber = dataStore->RemoteColpNumber( aCallId ); + } + else + { + remoteNumber = dataStore->RemotePhoneNumber( aCallId ); + } + + const TPEPhoneNumber& updatedNumber = aCall.RemoteParty(); + + errorCode = iRepository->Get( KTelMatchDigits, value ); + if ( !errorCode == KErrNone ) + { + TEFLOGSTRING( KTAOBJECT, "Reading KTelMatchDigits failed, use default value for matching"); + } + + //check if remote number is different from dialled number + if ( !matcher.numbersMatch( remoteNumber, updatedNumber, value ) ) + { + //set COLP number + dataStore->SetRemoteColpNumber( updatedNumber, aCallId ); + + TEFLOGSTRING3( KTAMESINT, + "CPECallHandling::UpdateColpNumber, colp number: '%S', call id: %d", + &updatedNumber, aCallId ); + updateDone = ETrue; + } + + return updateDone; + } + + // End of File diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/callhandling/src/tpematcher.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneengine/callhandling/src/tpematcher.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,61 @@ +/* +* 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 "tpematcher.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Constructor +// --------------------------------------------------------------------------- +// +TPEMatcher::TPEMatcher() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +TPEMatcher::~TPEMatcher() + { + + } + +// --------------------------------------------------------------------------- +// Finds if the two numbers match. +// --------------------------------------------------------------------------- +// +TBool TPEMatcher::numbersMatch( const TDesC& aNumber1, const TDesC& aNumber2, TInt aCount ) + { + TBool returnVal( EFalse ); + TInt matchDigits(aCount); + + matchDigits = Min( matchDigits, aNumber1.Length() ); + matchDigits = Min( matchDigits, aNumber2.Length() ); + + TPtrC16 number1Ptr = aNumber1.Right(matchDigits); + TPtrC16 number2Ptr = aNumber2.Right(matchDigits); + + if ( number1Ptr.Match( number2Ptr ) != KErrNotFound ) + { + returnVal = ETrue; + } + + return returnVal; + } diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/contacthandling2/bwins/contacthandlingu.def --- a/phoneengine/contacthandling2/bwins/contacthandlingu.def Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/contacthandling2/bwins/contacthandlingu.def Wed Jun 23 18:12:20 2010 +0300 @@ -1,11 +1,9 @@ EXPORTS - ??1CPEContactHandlingProxy@@UAE@XZ @ 1 NONAME ; CPEContactHandlingProxy::~CPEContactHandlingProxy(void) - ?CreateFirstPhaseL@CPEContactHandlingProxy@@SAPAVMPEContactHandling@@XZ @ 2 NONAME ; class MPEContactHandling * CPEContactHandlingProxy::CreateFirstPhaseL(void) - ?CreateSecondPhaseL@CPEContactHandlingProxy@@QAEXAAVMPEPhoneModelInternal@@AAVRFs@@@Z @ 3 NONAME ; void CPEContactHandlingProxy::CreateSecondPhaseL(class MPEPhoneModelInternal &, class RFs &) - ?FindContactInfoSync@CPEContactHandlingDummy@@UAEHHW4TPEFindContactKey@@@Z @ 4 NONAME ; int CPEContactHandlingDummy::FindContactInfoSync(int, enum TPEFindContactKey) - ?FindContactInfoSync@CPEContactHandlingProxy@@UAEHHW4TPEFindContactKey@@@Z @ 5 NONAME ; int CPEContactHandlingProxy::FindContactInfoSync(int, enum TPEFindContactKey) - ?GetSpeedDialLocation@CPEContactHandlingDummy@@UAEHHAAV?$TBuf@$0GE@@@@Z @ 6 NONAME ; int CPEContactHandlingDummy::GetSpeedDialLocation(int, class TBuf<100> &) - ?GetSpeedDialLocation@CPEContactHandlingProxy@@UAEHHAAV?$TBuf@$0GE@@@@Z @ 7 NONAME ; int CPEContactHandlingProxy::GetSpeedDialLocation(int, class TBuf<100> &) - ?NewL@CPEContactHandlingDummy@@SAPAV1@XZ @ 8 NONAME ; class CPEContactHandlingDummy * CPEContactHandlingDummy::NewL(void) - ?NewL@CPEContactMatch@@SAPAV1@AAVCPEContactHandling@@AAVMPEDataStore@@@Z @ 9 NONAME ; class CPEContactMatch * CPEContactMatch::NewL(class CPEContactHandling &, class MPEDataStore &) + ?NewL@CPEContactHandlingDummy@@SAPAV1@XZ @ 1 NONAME ; class CPEContactHandlingDummy * CPEContactHandlingDummy::NewL(void) + ?FindContactInfoSync@CPEContactHandlingDummy@@UAEHHW4TPEFindContactKey@@@Z @ 2 NONAME ; int CPEContactHandlingDummy::FindContactInfoSync(int, enum TPEFindContactKey) + ?CreateFirstPhaseL@CPEContactHandlingProxy@@SAPAVMPEContactHandling@@XZ @ 3 NONAME ; class MPEContactHandling * CPEContactHandlingProxy::CreateFirstPhaseL(void) + ?FindContactInfoSync@CPEContactHandlingProxy@@UAEHHW4TPEFindContactKey@@@Z @ 4 NONAME ; int CPEContactHandlingProxy::FindContactInfoSync(int, enum TPEFindContactKey) + ?CreateSecondPhaseL@CPEContactHandlingProxy@@QAEXAAVMPEPhoneModelInternal@@AAVRFs@@@Z @ 5 NONAME ; void CPEContactHandlingProxy::CreateSecondPhaseL(class MPEPhoneModelInternal &, class RFs &) + ??1CPEContactHandlingProxy@@UAE@XZ @ 6 NONAME ; CPEContactHandlingProxy::~CPEContactHandlingProxy(void) + ?NewL@CPEContactMatch@@SAPAV1@AAVCPEContactHandling@@AAVMPEDataStore@@@Z @ 7 NONAME ; class CPEContactMatch * CPEContactMatch::NewL(class CPEContactHandling &, class MPEDataStore &) diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/contacthandling2/eabi/contacthandlingu.def --- a/phoneengine/contacthandling2/eabi/contacthandlingu.def Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/contacthandling2/eabi/contacthandlingu.def Wed Jun 23 18:12:20 2010 +0300 @@ -1,21 +1,17 @@ EXPORTS _ZN23CPEContactHandlingDummy19FindContactInfoSyncEi17TPEFindContactKey @ 1 NONAME - _ZN23CPEContactHandlingDummy20GetSpeedDialLocationEiR4TBufILi100EE @ 2 NONAME - _ZN23CPEContactHandlingDummy4NewLEv @ 3 NONAME - _ZN23CPEContactHandlingProxy17CreateFirstPhaseLEv @ 4 NONAME - _ZN23CPEContactHandlingProxy18CreateSecondPhaseLER21MPEPhoneModelInternalR3RFs @ 5 NONAME - _ZN23CPEContactHandlingProxy19FindContactInfoSyncEi17TPEFindContactKey @ 6 NONAME - _ZN23CPEContactHandlingProxy20GetSpeedDialLocationEiR4TBufILi100EE @ 7 NONAME - _ZTI15CPEContactMatch @ 8 NONAME ; ## - _ZTI18CPEContactHandling @ 9 NONAME ; ## - _ZTI23CPEContactHandlingDummy @ 10 NONAME ; ## - _ZTI23CPEContactHandlingProxy @ 11 NONAME ; ## - _ZTV15CPEContactMatch @ 12 NONAME ; ## - _ZTV18CPEContactHandling @ 13 NONAME ; ## - _ZTV23CPEContactHandlingDummy @ 14 NONAME ; ## - _ZTV23CPEContactHandlingProxy @ 15 NONAME ; ## - _ZThn4_N23CPEContactHandlingDummy19FindContactInfoSyncEi17TPEFindContactKey @ 16 NONAME ; ## - _ZThn4_N23CPEContactHandlingDummy20GetSpeedDialLocationEiR4TBufILi100EE @ 17 NONAME ; ## - _ZThn4_N23CPEContactHandlingProxy19FindContactInfoSyncEi17TPEFindContactKey @ 18 NONAME ; ## - _ZThn4_N23CPEContactHandlingProxy20GetSpeedDialLocationEiR4TBufILi100EE @ 19 NONAME ; ## + _ZN23CPEContactHandlingDummy4NewLEv @ 2 NONAME + _ZN23CPEContactHandlingProxy17CreateFirstPhaseLEv @ 3 NONAME + _ZN23CPEContactHandlingProxy18CreateSecondPhaseLER21MPEPhoneModelInternalR3RFs @ 4 NONAME + _ZN23CPEContactHandlingProxy19FindContactInfoSyncEi17TPEFindContactKey @ 5 NONAME + _ZTI15CPEContactMatch @ 6 NONAME + _ZTI18CPEContactHandling @ 7 NONAME + _ZTI23CPEContactHandlingDummy @ 8 NONAME + _ZTI23CPEContactHandlingProxy @ 9 NONAME + _ZTV15CPEContactMatch @ 10 NONAME + _ZTV18CPEContactHandling @ 11 NONAME + _ZTV23CPEContactHandlingDummy @ 12 NONAME + _ZTV23CPEContactHandlingProxy @ 13 NONAME + _ZThn4_N23CPEContactHandlingDummy19FindContactInfoSyncEi17TPEFindContactKey @ 14 NONAME + _ZThn4_N23CPEContactHandlingProxy19FindContactInfoSyncEi17TPEFindContactKey @ 15 NONAME diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/contacthandling2/inc/cpecontacthandling.h --- a/phoneengine/contacthandling2/inc/cpecontacthandling.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/contacthandling2/inc/cpecontacthandling.h Wed Jun 23 18:12:20 2010 +0300 @@ -97,16 +97,6 @@ void SendMessage( MEngineMonitor::TPEMessagesFromPhoneEngine aMessage, const TInt aCallId = KPECallIdNotUsed ); - /** - * Fetch number from speed dial location - * @param aLocationIndex Index to look for - * @param aNumber Filled with speed dial location phone number - * @return Error code. - */ - TInt GetSpeedDialLocation( - TInt aLocationIndex, - TPEPhoneNumber& aNumber ); - protected: // New functions /** diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/contacthandling2/inc/cpecontacthandlingdummy.h --- a/phoneengine/contacthandling2/inc/cpecontacthandlingdummy.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/contacthandling2/inc/cpecontacthandlingdummy.h Wed Jun 23 18:12:20 2010 +0300 @@ -77,16 +77,6 @@ */ void SendMessage( MEngineMonitor::TPEMessagesFromPhoneEngine aMessage ); - /** - * Fetch number from speed dial location - * @param aLocationIndex Index to look for - * @param aNumber Filled with speed dial location phone number - * @return Error code. - */ - TInt GetSpeedDialLocation( - TInt aLocationIndex, - TPEPhoneNumber& aNumber ); - protected: // New functions /** * C++ default constructor. diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/contacthandling2/inc/cpecontacthandlingproxy.h --- a/phoneengine/contacthandling2/inc/cpecontacthandlingproxy.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/contacthandling2/inc/cpecontacthandlingproxy.h Wed Jun 23 18:12:20 2010 +0300 @@ -80,18 +80,6 @@ const TInt aCallId, const TPEFindContactKey aFindKey ); - /** - * Fetch number from speed dial location - * @param aLocationIndex Index to look for - * @param aNumber Filled with speed dial location phone number - * @param aContactItemId Contact item id. KErrNotFound if given location - * was not set. - * @return possible Symbian OS error code - */ - IMPORT_C TInt GetSpeedDialLocation( - TInt aLocationIndex, - TPEPhoneNumber& aNumber ); - protected: /** * C++ default constructor. diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/contacthandling2/inc/cpecontactmatch.h --- a/phoneengine/contacthandling2/inc/cpecontactmatch.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/contacthandling2/inc/cpecontactmatch.h Wed Jun 23 18:12:20 2010 +0300 @@ -96,15 +96,6 @@ */ CFbsBitmap* ContactThumbnail(); - /** - * Fetch number from speed dial location - * @param aLocationIndex Index to look for - * @param aNumber Filled with speed dial location phone number - */ - void GetSpeedDialLocationL( - TInt aLocationIndex, - TPEPhoneNumber& aNumber ); - private: /** diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/contacthandling2/inc/mpecontacthandling.h --- a/phoneengine/contacthandling2/inc/mpecontacthandling.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/contacthandling2/inc/mpecontacthandling.h Wed Jun 23 18:12:20 2010 +0300 @@ -49,18 +49,6 @@ virtual TInt FindContactInfoSync( const TInt aCallId, const TPEFindContactKey aFindKey ) = 0; - - /** - * Fetch number from speed dial location - * @param aLocationIndex Index to look for - * @param aNumber Filled with speed dial location phone number - * @param aContactItemId Contact item id. KErrNotFound if given location - * was not set. - * @return possible Symbian OS error code - */ - virtual TInt GetSpeedDialLocation( - TInt aLocationIndex, - TPEPhoneNumber& aNumber ) = 0; }; #endif // MPECONTACTHANDLING_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/contacthandling2/src/cpecontacthandling.cpp --- a/phoneengine/contacthandling2/src/cpecontacthandling.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/contacthandling2/src/cpecontacthandling.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -209,22 +209,6 @@ } } -// ----------------------------------------------------------------------------- -// CPEContactHandling::GetSpeedDialLocation -// Get's phone number and contact id from given location. -// ----------------------------------------------------------------------------- -// -TInt CPEContactHandling::GetSpeedDialLocation( - TInt aLocationIndex, - TPEPhoneNumber& aNumber ) - { - TInt error = KErrLocked; - ASSERT( iContactMatcher ); - TRAP( error, iContactMatcher->GetSpeedDialLocationL( aLocationIndex, - aNumber ) ); - return error; - } - // ================= OTHER EXPORTED FUNCTIONS =============================== // End of File diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/contacthandling2/src/cpecontacthandlingdummy.cpp --- a/phoneengine/contacthandling2/src/cpecontacthandlingdummy.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/contacthandling2/src/cpecontacthandlingdummy.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -73,19 +73,6 @@ return KErrNone; } -// ----------------------------------------------------------------------------- -// CPEContactHandlingDummy::GetSpeedDialLocation -// Get's phone number and contact id from given location. -// ----------------------------------------------------------------------------- -// -EXPORT_C TInt CPEContactHandlingDummy::GetSpeedDialLocation( - TInt /*aLocationIndex*/, - TPEPhoneNumber& /*aNumber*/ ) - { - TEFLOGSTRING( KTAOBJECT, "CNT CPEContactHandlingDummy::GetSpeedDialLocation()" ); - return KErrNone; - } - // ================= OTHER EXPORTED FUNCTIONS =============================== // End of File diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/contacthandling2/src/cpecontacthandlingproxy.cpp --- a/phoneengine/contacthandling2/src/cpecontacthandlingproxy.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/contacthandling2/src/cpecontacthandlingproxy.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -123,41 +123,6 @@ return KErrBadHandle; } -// ----------------------------------------------------------------------------- -// CPEContactHandlingProxy::GetSpeedDialLocation -// Get's phone number and contact id from given location. -// ----------------------------------------------------------------------------- -// -EXPORT_C TInt CPEContactHandlingProxy::GetSpeedDialLocation( - TInt aLocationIndex, - TPEPhoneNumber& aNumber ) - { - if ( iContactHandling ) - { - TEFLOGSTRING( - KTAINT, - "CNT CPEContactHandlingProxy::GetSpeedDialLocation > CPEContactHandling::GetSpeedDialLocation" ); - return iContactHandling->GetSpeedDialLocation( aLocationIndex, aNumber ); - } - else if ( iContactHandlingDummy ) - { - TEFLOGSTRING( - KTAINT, - "CNT CPEContactHandlingProxy::GetSpeedDialLocation > CPEContactHandlingDummy::GetSpeedDialLocation" ); - return iContactHandlingDummy->GetSpeedDialLocation( - aLocationIndex, - aNumber ); - } - else - { - TEFLOGSTRING( - KTAERROR, - "CNT CPECONTACTHANDLINGPROXY::GETSPEEDDIALLOCATION ! NEITHER CONTACT HANDLING NOR CONTACT HANDLING DUMMY EXISTS" ); - User::Invariant(); - } - return KErrBadHandle; - } - // ================= OTHER EXPORTED FUNCTIONS =============================== // End of File diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/contacthandling2/src/cpecontactmatch.cpp --- a/phoneengine/contacthandling2/src/cpecontactmatch.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/contacthandling2/src/cpecontactmatch.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -452,16 +452,4 @@ TEFLOGSTRING( KTAINT, "CNT CPEContactMatch::CopyContactFieldsDataL: complete" ); } -// ----------------------------------------------------------------------------- -// CPEContactMatch::GetSpeedDialLocationL -// Get's phone number from given location. -// ----------------------------------------------------------------------------- -// -void CPEContactMatch::GetSpeedDialLocationL( - TInt /*aLocationIndex*/, - TPEPhoneNumber& /*aNumber*/ ) - { - - } - // End of File diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/engineinfo/inc/cpeengineinfoimpl.h --- a/phoneengine/engineinfo/inc/cpeengineinfoimpl.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/engineinfo/inc/cpeengineinfoimpl.h Wed Jun 23 18:12:20 2010 +0300 @@ -76,8 +76,6 @@ TPEContactFileName iVideoCallRingingTone; // Video call ringingtone name TPEDtmfString iDtmfString; // Dtmf string. TPEErrorInfo iErrorInfo; // possible error code - TPELifeTimeData iLifeTimeData; - TPEPhoneIdentityParameters iPhoneIdentityParameters; // the phone identity parameters TPEProfileName iProfileName; // the name of the profile TProfileRingingType iRingingType; // Includes current ringing type TPEVoiceMailBoxNumberInfo iVMBXNumbers; // Voice mail box numbers @@ -279,24 +277,12 @@ const TCCPTone& InbandTone() const; /** - * Gets lifetimer data - * @return lifetime data (TDes8&) - */ - const TPELifeTimeData& LifeTimerData() const; - - /** * Gets network registration status * @return TNWNetworkRegistrationStatus Network registration status */ const TNWNetworkRegistrationStatus& NetworkRegistrationStatus() const; /** - * Gets phone identity parameters from TPEBasicInfo-structure - * @param aPhoneIdentityParameters is the phone identity parameters. - */ - const TPEPhoneIdentityParameters& PhoneIdentityParameters() const; - - /** * Gets phone number * @return Reference to TPEPhoneNumber, containing the phone number of the remote party. */ @@ -621,6 +607,13 @@ * @param aCallState state to be checked. */ TBool CheckIfCallStateExists( const TPEState& aCallState ); + + /** + * Sets the protocol spesific error code + * @param aError is the error code from protocol. + * @return None. + */ + void SetProtocolError( TInt aError ); // Functions from MPEDataStore (reading values) public: @@ -1167,12 +1160,6 @@ void SetKeypadVolume( const TInt aKeypadVolume ); /** - * Sets lifetimer data of the phone to TPEBasicInfo-structure - * @param aLifeTimerData lifetime data (TDesc8&). - */ - void SetLifeTimerData( TCCPLifeTimeDataPckg& aPckg ); - - /** * Sets a logging indicator to TPECallInfo-tructure * @param aLoggingIndicator, Continuous logging indicator. * @param aCallId, the call identification number. @@ -1209,13 +1196,6 @@ * @param aPersonalTone is personal tone status (EFalse/ETrue). */ void SetPersonalToneStatus( const TInt& aPersonalToneStatus ); - - /** - * Sets phone number to TPECallCommandInfo-structure - * @param aPhoneIdentityParameters is the phone identity parameters - */ - void SetPhoneIdentityParameters( - const TPEPhoneIdentityParameters& aPhoneIdentityParameters ); /** * Sets phone number parsing result @@ -1258,7 +1238,7 @@ * @param aCallId, is the call identification number. */ void SetRemoteColpNumber( - TPEPhoneNumber& aColpNumber, + const TPEPhoneNumber& aColpNumber, const TInt aCallId ); /** diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/engineinfo/inc/mpedatastore.h --- a/phoneengine/engineinfo/inc/mpedatastore.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/engineinfo/inc/mpedatastore.h Wed Jun 23 18:12:20 2010 +0300 @@ -373,12 +373,6 @@ virtual void SetKeypadVolume( const TInt aKeypadVolume ) = 0; /** - * Sets lifetimer data of the phone to TPEBasicInfo-structure - * @param aLifeTimerData lifetime data (TDesc8&). - */ - virtual void SetLifeTimerData( TCCPLifeTimeDataPckg& aPckg ) = 0; - - /** * Sets a logging indicator to TPECallInfo-tructure * @param aLoggingIndicator, Continuous logging indicator. * @param aCallId, the call identification number. @@ -423,13 +417,6 @@ virtual void SetPhoneNumberIsServiceCode( const TBool& aServiceCode ) = 0; /** - * Sets phone number to TPECallCommandInfo-structure - * @param aPhoneIdentityParameters is the phone identity parameters - */ - virtual void SetPhoneIdentityParameters( - const TPEPhoneIdentityParameters& aPhoneIdentityParameters ) = 0; - - /** * Sets call origin for the next call attempt * @param aOrigin indicates if the call is phone, client or SAT originated */ @@ -735,7 +722,7 @@ * @param aCallId, is the call identification number. */ virtual void SetRemoteColpNumber( - TPEPhoneNumber& aColpNumber, + const TPEPhoneNumber& aColpNumber, const TInt aCallId ) = 0; /** diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/engineinfo/inc/mpeengineinfo.h --- a/phoneengine/engineinfo/inc/mpeengineinfo.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/engineinfo/inc/mpeengineinfo.h Wed Jun 23 18:12:20 2010 +0300 @@ -255,12 +255,6 @@ virtual const TInt& KeypadVolume() const = 0; /** - * Gets lifetimer data - * @return lifetime data (TDes8&) - */ - virtual const TPELifeTimeData& LifeTimerData() const = 0; - - /** * Gets a logging indicator * @param aCallId, call identification number * @return continuous logging indicator @@ -297,12 +291,6 @@ virtual const TBool& PersonalToneStatus() const = 0; /** - * Gets phone identity parameters - * @return phone identity parameters. - */ - virtual const TPEPhoneIdentityParameters& PhoneIdentityParameters() const = 0; - - /** * Gets phone number * @return Reference to TPEPhoneNumber, containing the phone number of the remote party. */ @@ -703,7 +691,13 @@ * Returns Phonebook contact identifier. */ virtual TInt ContactId2 () const = 0; - + + /** + * Sets the protocol spesific error code + * @param aError is the error code from protocol. + * @return None. + */ + virtual void SetProtocolError( TInt aError ) = 0; }; // MPEEngineInfo #endif //MPEENGINEINFO_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/engineinfo/src/cpeengineinfoimpl.cpp --- a/phoneengine/engineinfo/src/cpeengineinfoimpl.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/engineinfo/src/cpeengineinfoimpl.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -57,10 +57,6 @@ iBasicInfo.iErrorInfo.iCallId = KPECallIdNotUsed; iBasicInfo.iProfileId = ECCPErrorNotFound; iBasicInfo.iProfileName = KNullDesC; - iBasicInfo.iPhoneIdentityParameters.iManufacturer = KNullDesC; - iBasicInfo.iPhoneIdentityParameters.iModel = KNullDesC; - iBasicInfo.iPhoneIdentityParameters.iRevision = KNullDesC; - iBasicInfo.iPhoneIdentityParameters.iSerialNumber = KNullDesC; iBasicInfo.iLastCallDuration = KPENumberInitValue; iBasicInfo.iVMBXNumbers.iVMBXL1 = KNullDesC; iBasicInfo.iVMBXNumbers.iVMBXL2 = KNullDesC; @@ -68,8 +64,6 @@ iBasicInfo.iTextToSpeech = EFalse; iBasicInfo.iPhoneNumberIsServiceCode = EFalse; iBasicInfo.iTwoDigitSupportStatus = EFalse; - iBasicInfo.iLifeTimeData.iHours = 0; - iBasicInfo.iLifeTimeData.iMinutes = 0; iBasicInfo.iNetworkRegistrationStatus = ENWStatusRegistrationUnknown; @@ -568,17 +562,6 @@ } // ----------------------------------------------------------------------------- -// CPEEngineInfoImpl::LifeTimerData -// Gets lifetimerdata from the TPEBasicInfo structure. -// (other items were commented in a header). -// ----------------------------------------------------------------------------- -// -const TPELifeTimeData& CPEEngineInfoImpl::LifeTimerData() const - { - return iBasicInfo.iLifeTimeData; - } - -// ----------------------------------------------------------------------------- // CPEEngineInfoImpl::LoggingIndicator // Get logging indicator from TPECallInfo. // (other items were commented in a header). @@ -629,16 +612,6 @@ } // ----------------------------------------------------------------------------- -// CPEEngineInfoImpl::PhoneIdentityParameters -// Gets the phone identity parameters from the TPEBasicInfo structure -// ----------------------------------------------------------------------------- -// -const TPEPhoneIdentityParameters& CPEEngineInfoImpl::PhoneIdentityParameters() const - { - return iBasicInfo.iPhoneIdentityParameters; - } - -// ----------------------------------------------------------------------------- // CPEEngineInfoImpl::PhoneNumber // Return the phone number from the TPECallCommandInfo structure. // ----------------------------------------------------------------------------- @@ -1340,18 +1313,6 @@ } // ----------------------------------------------------------------------------- -// CPEEngineInfoImpl::SetLifeTimerData -// Sets lifetimer data of the phone to TPELifeTimeData-structure -// ----------------------------------------------------------------------------- -// -void CPEEngineInfoImpl::SetLifeTimerData( - TCCPLifeTimeDataPckg& aPckg ) - { - iBasicInfo.iLifeTimeData.iHours = aPckg().iHours; - iBasicInfo.iLifeTimeData.iMinutes = aPckg().iMinutes; - } - -// ----------------------------------------------------------------------------- // CPEEngineInfoImpl::SetNetworkRegistrationStatus // Sets network registration status to TPEBasicInfo-structure // ----------------------------------------------------------------------------- @@ -1379,17 +1340,6 @@ } // ----------------------------------------------------------------------------- -// CPEEngineInfoImpl::SetPhoneIdentityParameters -// Sets phone number to TPECallCommandInfo-structure -// ----------------------------------------------------------------------------- -// -void CPEEngineInfoImpl::SetPhoneIdentityParameters( - const TPEPhoneIdentityParameters& aPhoneIdentityParameters ) - { - iBasicInfo.iPhoneIdentityParameters = aPhoneIdentityParameters; - } - -// ----------------------------------------------------------------------------- // CPEEngineInfoImpl::SetPhoneNumberIsServiceCode // Sets phone number parsing result // ----------------------------------------------------------------------------- @@ -2550,7 +2500,7 @@ // ----------------------------------------------------------------------------- // void CPEEngineInfoImpl::SetRemoteColpNumber( - TPEPhoneNumber& aColpNumber, + const TPEPhoneNumber& aColpNumber, const TInt aCallId ) { return ( *iRemoteInfo )[ aCallId ]->SetColpNumber( aColpNumber ); @@ -2641,4 +2591,14 @@ return iContactId; } +// ----------------------------------------------------------------------------- +// CPEEngineInfoImpl::SetProtocolError +// Sets the protocol spesific error code to TPEErrorInfo +// ----------------------------------------------------------------------------- +// +void CPEEngineInfoImpl::SetProtocolError( TInt aError ) + { + iBasicInfo.iErrorInfo.iProtocolSpesificErrorCode = aError; + } + // End of File diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/networkhandlingstarter/inc/cnetworklistener.h --- a/phoneengine/networkhandlingstarter/inc/cnetworklistener.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/networkhandlingstarter/inc/cnetworklistener.h Wed Jun 23 18:12:20 2010 +0300 @@ -21,7 +21,7 @@ // System includes #include -#include +#include // User includes diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/networkhandlingstarter/inc/networkhandlingstarter_p.h --- a/phoneengine/networkhandlingstarter/inc/networkhandlingstarter_p.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/networkhandlingstarter/inc/networkhandlingstarter_p.h Wed Jun 23 18:12:20 2010 +0300 @@ -59,7 +59,7 @@ HbMainWindow * MainWindow(); - void InitaliseCpNetworkPluginView(); + bool InitaliseCpNetworkPluginView(); private: diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/networkhandlingstarter/networkhandlingstarter.pro --- a/phoneengine/networkhandlingstarter/networkhandlingstarter.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/networkhandlingstarter/networkhandlingstarter.pro Wed Jun 23 18:12:20 2010 +0300 @@ -18,14 +18,13 @@ CONFIG += hb TEMPLATE = app TARGET = networkhandlingstarter -TRANSLATIONS = telephone_cp.ts INCLUDEPATH += ./inc/ DEFINES += BUILD_NETWORKHANDLINGSTARTER MOC_DIR = moc symbian: { - TARGET.CAPABILITY = ALL -TCB + TARGET.CAPABILITY = CAP_APPLICATION TARGET.EPOCALLOWDLLDATA = 1 TARGET.UID3 = 0x2002E67A INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE @@ -37,6 +36,8 @@ BLD_INF_RULES.prj_exports += \ "./rom/networkhandlingstarter.iby CORE_APP_LAYER_IBY_EXPORT_PATH(networkhandlingstarter.iby)" + + RSS_RULES += "hidden = KAppIsHidden;" } HEADERS += ./inc/networkhandlingstarter.h diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/networkhandlingstarter/src/cnetworklistener.cpp --- a/phoneengine/networkhandlingstarter/src/cnetworklistener.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/networkhandlingstarter/src/cnetworklistener.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -14,8 +14,8 @@ * Description: * */ -#include -#include +#include +#include #include #include #include diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/networkhandlingstarter/src/main.cpp --- a/phoneengine/networkhandlingstarter/src/main.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/networkhandlingstarter/src/main.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -17,29 +17,30 @@ #include #include #include +#include #include #include +#include /*! main. */ int main(int argc, char **argv) { - HbApplication app(argc, argv); + HbApplication app(argc, argv, Hb::NoSplash); // Load translators - HbTranslator *commonTranslator = new HbTranslator("common"); - HbTranslator *control_panelTranslator = new HbTranslator("control_panel"); - HbTranslator *telephone_cpTranslator = new HbTranslator("telephone_cp"); + HbTranslator commonTranslator("common"); + HbTranslator control_panelTranslator("control_panel"); + HbTranslator telephone_cpTranslator("telephone_cp"); + HbView view; HbMainWindow mainWindow; + mainWindow.addView(&view); NetworkHandlingStarter service; + XQServiceUtil::toBackground( true ); int err = app.exec(); - delete commonTranslator; - delete control_panelTranslator; - delete telephone_cpTranslator; - return err; } diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/networkhandlingstarter/src/networkhandlingstarter_p.cpp --- a/phoneengine/networkhandlingstarter/src/networkhandlingstarter_p.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/networkhandlingstarter/src/networkhandlingstarter_p.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -16,11 +16,12 @@ */ #include -#include -#include +#include +#include #include -#include +#include #include +#include #include "networkhandlingstarter_p.h" #include "networkhandlingstarterlogging.h" @@ -101,29 +102,27 @@ /*! NetworkHandlingStarterPrivate::InitaliseCpNetworkPluginView() */ -void NetworkHandlingStarterPrivate::InitaliseCpNetworkPluginView() +bool NetworkHandlingStarterPrivate::InitaliseCpNetworkPluginView() { DPRINT << ": IN"; - HbMainWindow *mainWnd = MainWindow(); - if (mainWnd) { - if (CpPluginLauncher::launchCpPluginView( - "resource\\qt\\plugins\\controlpanel\\cpnetworkplugin.qtplugin")) { - foreach (HbView *view, mainWnd->views()) { - if (QString(view->metaObject()->className()) == - QString("CpNetworkPluginView")) { - QObject::connect( - view, SIGNAL(aboutToClose()), - this, SLOT(ViewDone())); - QObject::connect( - this, SIGNAL(SearchAvailableNetworks()), - view, SLOT(SearchAvailableNetworks())); - } - } + bool ok(false); + CpBaseSettingView* view = CpPluginLauncher::launchSettingView("cpnetworkplugin"); + if (view) { + if (QString(view->metaObject()->className()) == + QString("CpNetworkPluginView")) { + QObject::connect( + view, SIGNAL(aboutToClose()), + this, SLOT(ViewDone())); + QObject::connect( + this, SIGNAL(SearchAvailableNetworks()), + view, SLOT(SearchAvailableNetworks())); + ok = true; } } DPRINT << ": OUT"; + return ok; } /*! @@ -133,13 +132,15 @@ { DPRINT << ": IN"; - InitaliseCpNetworkPluginView(); - HbMainWindow *mainWnd = MainWindow(); - if (mainWnd) { - mainWnd->show(); - XQServiceUtil::toBackground(false); + if (InitaliseCpNetworkPluginView()) { + DPRINT << ": Show network settings view"; + HbMainWindow *mainWnd = MainWindow(); + if (mainWnd) { + mainWnd->show(); + XQServiceUtil::toBackground(false); + } + emit SearchAvailableNetworks(); } - emit SearchAvailableNetworks(); DPRINT << ": OUT"; } diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/networkhandlingstarter/tsrc/mocks/mock_cnwsession.cpp --- a/phoneengine/networkhandlingstarter/tsrc/mocks/mock_cnwsession.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/networkhandlingstarter/tsrc/mocks/mock_cnwsession.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -15,7 +15,7 @@ * */ #include -#include +#include // ============================ MEMBER FUNCTIONS =============================== diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/networkhandlingstarter/tsrc/mocks/mock_cppluginlauncher.cpp --- a/phoneengine/networkhandlingstarter/tsrc/mocks/mock_cppluginlauncher.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/networkhandlingstarter/tsrc/mocks/mock_cppluginlauncher.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -1,4 +1,4 @@ -/* +/* * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available @@ -33,3 +33,16 @@ } +// ----------------------------------------------------------------------------- +// CpPluginLauncher::launchSettingView +// ----------------------------------------------------------------------------- +// +CpBaseSettingView * CpPluginLauncher::launchSettingView( + const QString & pluginFile, + const QVariant & hint ) + { + SMC_MOCK_METHOD2( CpBaseSettingView *, const QString &, pluginFile, + const QVariant &, hint ) + } + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/networkhandlingstarter/tsrc/mocks/mock_hbaction.cpp --- a/phoneengine/networkhandlingstarter/tsrc/mocks/mock_hbaction.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/networkhandlingstarter/tsrc/mocks/mock_hbaction.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -1,4 +1,4 @@ -/* +/* * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available @@ -52,7 +52,7 @@ // ----------------------------------------------------------------------------- // HbAction::HbAction( - Hb::SoftKeyAction action, + Hb::NavigationAction action, QObject * parent ) : QAction( parent ), d_ptr(NULL) { @@ -113,6 +113,27 @@ // ----------------------------------------------------------------------------- +// HbAction::setToolTip +// ----------------------------------------------------------------------------- +// +void HbAction::setToolTip( + const QString & tooltip ) + { + SMC_MOCK_METHOD1( void, const QString &, tooltip ) + } + + +// ----------------------------------------------------------------------------- +// HbAction::toolTip +// ----------------------------------------------------------------------------- +// +QString HbAction::toolTip( ) const + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- // HbAction::setToolBarExtension // ----------------------------------------------------------------------------- // diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/networkhandlingstarter/tsrc/mocks/mock_hbdevicemessagebox.cpp --- a/phoneengine/networkhandlingstarter/tsrc/mocks/mock_hbdevicemessagebox.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/networkhandlingstarter/tsrc/mocks/mock_hbdevicemessagebox.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -1,4 +1,4 @@ -/* +/* * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available @@ -25,6 +25,20 @@ // ----------------------------------------------------------------------------- // HbDeviceMessageBox::HbDeviceMessageBox( + HbMessageBox::MessageBoxType type, + QObject * parent ) + //: + //QObject( /*type, parent*/ ) + { + + } + + +// ----------------------------------------------------------------------------- +// HbDeviceMessageBox::HbDeviceMessageBox +// ----------------------------------------------------------------------------- +// +HbDeviceMessageBox::HbDeviceMessageBox( const QString & text, HbMessageBox::MessageBoxType type, QObject * parent ) @@ -51,12 +65,12 @@ // bool HbDeviceMessageBox::question( const QString & text, - const QString & primaryButtonText, - const QString & secondaryButtonText ) + const QString & acceptButtonText, + const QString & rejectButtonText ) { SMC_MOCK_METHOD3( bool, const QString &, text, - const QString &, primaryButtonText, - const QString &, secondaryButtonText ) + const QString &, acceptButtonText, + const QString &, rejectButtonText ) } @@ -93,6 +107,16 @@ // ----------------------------------------------------------------------------- +// HbDeviceMessageBox::update +// ----------------------------------------------------------------------------- +// +void HbDeviceMessageBox::update( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- // HbDeviceMessageBox::close // ----------------------------------------------------------------------------- // @@ -106,9 +130,51 @@ // HbDeviceMessageBox::exec // ----------------------------------------------------------------------------- // -HbAction * HbDeviceMessageBox::exec( ) +const QAction * HbDeviceMessageBox::exec( ) + { + SMC_MOCK_METHOD0( const QAction * ) + } + + +// ----------------------------------------------------------------------------- +// HbDeviceMessageBox::triggeredAction +// ----------------------------------------------------------------------------- +// +const QAction * HbDeviceMessageBox::triggeredAction( ) const + { + SMC_MOCK_METHOD0( const QAction * ) + } + + +// ----------------------------------------------------------------------------- +// HbDeviceMessageBox::isAcceptAction +// ----------------------------------------------------------------------------- +// +bool HbDeviceMessageBox::isAcceptAction( + const QAction * action ) const { - SMC_MOCK_METHOD0( HbAction * ) + //SMC_MOCK_METHOD1( bool, const QAction *, action ) + } + + +// ----------------------------------------------------------------------------- +// HbDeviceMessageBox::setMessageBoxType +// ----------------------------------------------------------------------------- +// +void HbDeviceMessageBox::setMessageBoxType( + HbMessageBox::MessageBoxType type ) + { + SMC_MOCK_METHOD1( void, HbMessageBox::MessageBoxType, type ) + } + + +// ----------------------------------------------------------------------------- +// HbDeviceMessageBox::messageBoxType +// ----------------------------------------------------------------------------- +// +HbMessageBox::MessageBoxType HbDeviceMessageBox::messageBoxType( ) const + { + SMC_MOCK_METHOD0( HbMessageBox::MessageBoxType ) } @@ -155,118 +221,23 @@ // ----------------------------------------------------------------------------- -// HbDeviceMessageBox::setIconAlignment -// ----------------------------------------------------------------------------- -// -void HbDeviceMessageBox::setIconAlignment( - Qt::Alignment align ) - { - // SMC_MOCK_METHOD1( void, Qt::Alignment, align ) - } - - -// ----------------------------------------------------------------------------- -// HbDeviceMessageBox::iconAlignment -// ----------------------------------------------------------------------------- -// -Qt::Alignment HbDeviceMessageBox::iconAlignment( ) const - { - // SMC_MOCK_METHOD0( Qt::Alignment ) - } - - -// ----------------------------------------------------------------------------- -// HbDeviceMessageBox::setTimeout +// HbDeviceMessageBox::setIconVisible // ----------------------------------------------------------------------------- // -void HbDeviceMessageBox::setTimeout( - int timeout ) +void HbDeviceMessageBox::setIconVisible( + bool visible ) { - SMC_MOCK_METHOD1( void, int, timeout ) - } - - -// ----------------------------------------------------------------------------- -// HbDeviceMessageBox::setTimeout -// ----------------------------------------------------------------------------- -// -void HbDeviceMessageBox::setTimeout( - HbPopup::DefaultTimeout timeout ) - { - // SMC_MOCK_METHOD1( void, HbPopup::DefaultTimeout, timeout ) - } - - -// ----------------------------------------------------------------------------- -// HbDeviceMessageBox::timeout -// ----------------------------------------------------------------------------- -// -int HbDeviceMessageBox::timeout( ) const - { - SMC_MOCK_METHOD0( int ) + SMC_MOCK_METHOD1( void, bool, visible ) } // ----------------------------------------------------------------------------- -// HbDeviceMessageBox::setDismissPolicy -// ----------------------------------------------------------------------------- -// -void HbDeviceMessageBox::setDismissPolicy( - HbPopup::DismissPolicy dismissPolicy ) - { - // SMC_MOCK_METHOD1( void, HbPopup::DismissPolicy, dismissPolicy ) - } - - -// ----------------------------------------------------------------------------- -// HbDeviceMessageBox::dismissPolicy -// ----------------------------------------------------------------------------- -// -HbPopup::DismissPolicy HbDeviceMessageBox::dismissPolicy( ) const - { - // SMC_MOCK_METHOD0( HbPopup::DismissPolicy ) - } - - -// ----------------------------------------------------------------------------- -// HbDeviceMessageBox::primaryAction +// HbDeviceMessageBox::iconVisible // ----------------------------------------------------------------------------- // -HbAction * HbDeviceMessageBox::primaryAction( ) const - { - SMC_MOCK_METHOD0( HbAction * ) - } - - -// ----------------------------------------------------------------------------- -// HbDeviceMessageBox::setPrimaryAction -// ----------------------------------------------------------------------------- -// -void HbDeviceMessageBox::setPrimaryAction( - HbAction * action ) +bool HbDeviceMessageBox::iconVisible( ) const { - // SMC_MOCK_METHOD1( void, HbAction *, action ) - } - - -// ----------------------------------------------------------------------------- -// HbDeviceMessageBox::secondaryAction -// ----------------------------------------------------------------------------- -// -HbAction * HbDeviceMessageBox::secondaryAction( ) const - { - SMC_MOCK_METHOD0( HbAction * ) - } - - -// ----------------------------------------------------------------------------- -// HbDeviceMessageBox::setSecondaryAction -// ----------------------------------------------------------------------------- -// -void HbDeviceMessageBox::setSecondaryAction( - HbAction * action ) - { - // SMC_MOCK_METHOD1( void, HbAction *, action ) + SMC_MOCK_METHOD0( bool ) } @@ -292,6 +263,83 @@ // ----------------------------------------------------------------------------- +// HbDeviceMessageBox::setTimeout +// ----------------------------------------------------------------------------- +// +void HbDeviceMessageBox::setTimeout( + int timeout ) + { + SMC_MOCK_METHOD1( void, int, timeout ) + } + + +// ----------------------------------------------------------------------------- +// HbDeviceMessageBox::setTimeout +// ----------------------------------------------------------------------------- +// +void HbDeviceMessageBox::setTimeout( + HbPopup::DefaultTimeout timeout ) + { + SMC_MOCK_METHOD1( void, HbPopup::DefaultTimeout, timeout ) + } + + +// ----------------------------------------------------------------------------- +// HbDeviceMessageBox::timeout +// ----------------------------------------------------------------------------- +// +int HbDeviceMessageBox::timeout( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// HbDeviceMessageBox::setDismissPolicy +// ----------------------------------------------------------------------------- +// +void HbDeviceMessageBox::setDismissPolicy( + HbPopup::DismissPolicy dismissPolicy ) + { + SMC_MOCK_METHOD1( void, HbPopup::DismissPolicy, dismissPolicy ) + } + + +// ----------------------------------------------------------------------------- +// HbDeviceMessageBox::dismissPolicy +// ----------------------------------------------------------------------------- +// +HbPopup::DismissPolicy HbDeviceMessageBox::dismissPolicy( ) const + { + SMC_MOCK_METHOD0( HbPopup::DismissPolicy ) + } + + +// ----------------------------------------------------------------------------- +// HbDeviceMessageBox::setAction +// ----------------------------------------------------------------------------- +// +void HbDeviceMessageBox::setAction( + QAction * action, + ActionRole role ) + { + //SMC_MOCK_METHOD2( void, QAction *, action, + // ActionRole, role ) + } + + +// ----------------------------------------------------------------------------- +// HbDeviceMessageBox::action +// ----------------------------------------------------------------------------- +// +QAction * HbDeviceMessageBox::action( + ActionRole role ) const + { + //SMC_MOCK_METHOD1( QAction *, ActionRole, role ) + } + + +// ----------------------------------------------------------------------------- // HbDeviceMessageBox::aboutToClose // ----------------------------------------------------------------------------- // diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/networkhandlingstarter/tsrc/mocks/mock_hbinstance.cpp --- a/phoneengine/networkhandlingstarter/tsrc/mocks/mock_hbinstance.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/networkhandlingstarter/tsrc/mocks/mock_hbinstance.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -41,29 +41,6 @@ // ----------------------------------------------------------------------------- -// HbInstance::orientation -// ----------------------------------------------------------------------------- -// -Qt::Orientation HbInstance::orientation( ) const - { - SMC_MOCK_METHOD0( Qt::Orientation ) - } - - -// ----------------------------------------------------------------------------- -// HbInstance::setOrientation -// ----------------------------------------------------------------------------- -// -void HbInstance::setOrientation( - Qt::Orientation orientation, - bool animate ) - { - SMC_MOCK_METHOD2( void, Qt::Orientation, orientation, - bool, animate ) - } - - -// ----------------------------------------------------------------------------- // HbInstance::style // ----------------------------------------------------------------------------- // @@ -84,16 +61,6 @@ // ----------------------------------------------------------------------------- -// HbInstance::typefaceInfo -// ----------------------------------------------------------------------------- -// -HbTypefaceInfo * HbInstance::typefaceInfo( ) const - { - SMC_MOCK_METHOD0( HbTypefaceInfo * ) - } - - -// ----------------------------------------------------------------------------- // HbInstance::addLibraryPath // ----------------------------------------------------------------------------- // diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/networkhandlingstarter/tsrc/mocks/mock_hbmainwindow.cpp --- a/phoneengine/networkhandlingstarter/tsrc/mocks/mock_hbmainwindow.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/networkhandlingstarter/tsrc/mocks/mock_hbmainwindow.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -30,7 +30,8 @@ : d_ptr(NULL) //QGraphicsView( /*parent, windowFlags*/ ) { - + Q_UNUSED(parent) + Q_UNUSED(windowFlags) } // ----------------------------------------------------------------------------- @@ -44,6 +45,16 @@ // ----------------------------------------------------------------------------- +// HbMainWindow::addView +// ----------------------------------------------------------------------------- +// +HbView * HbMainWindow::addView( + QGraphicsWidget * widget ) + { + //SMC_MOCK_METHOD1( HbView *, QGraphicsWidget *, widget ) + Q_UNUSED(widget) + } +// ----------------------------------------------------------------------------- // HbMainWindow::insertView // ----------------------------------------------------------------------------- // @@ -52,71 +63,9 @@ QGraphicsWidget * widget ) { //SMC_MOCK_METHOD2( HbView *, int, index, - // QGraphicsWidget *, widget ) - } - - -// ----------------------------------------------------------------------------- -// HbMainWindow::removeView -// ----------------------------------------------------------------------------- -// -QGraphicsWidget * HbMainWindow::removeView( - int index ) - { - SMC_MOCK_METHOD1( QGraphicsWidget *, int, index ) - } - - -// ----------------------------------------------------------------------------- -// HbMainWindow::currentViewIndex -// ----------------------------------------------------------------------------- -// -int HbMainWindow::currentViewIndex( ) const - { - SMC_MOCK_METHOD0( int ) - } - - -// ----------------------------------------------------------------------------- -// HbMainWindow::viewCount -// ----------------------------------------------------------------------------- -// -int HbMainWindow::viewCount( ) const - { - SMC_MOCK_METHOD0( int ) - } - - -// ----------------------------------------------------------------------------- -// HbMainWindow::indexOfView -// ----------------------------------------------------------------------------- -// -int HbMainWindow::indexOfView( - HbView * view ) const - { - //SMC_MOCK_METHOD1( int, HbView *, view ) - } - - -// ----------------------------------------------------------------------------- -// HbMainWindow::viewAt -// ----------------------------------------------------------------------------- -// -HbView * HbMainWindow::viewAt( - int index ) const - { - SMC_MOCK_METHOD1( HbView *, int, index ) - } - - -// ----------------------------------------------------------------------------- -// HbMainWindow::addView -// ----------------------------------------------------------------------------- -// -HbView * HbMainWindow::addView( - QGraphicsWidget * widget ) - { - //SMC_MOCK_METHOD1( HbView *, QGraphicsWidget *, widget ) + // QGraphicsWidget *, widget ) + Q_UNUSED(index) + Q_UNUSED(widget) } @@ -128,6 +77,7 @@ QGraphicsWidget * widget ) { //SMC_MOCK_METHOD1( void, QGraphicsWidget *, widget ) + Q_UNUSED(widget) } @@ -163,77 +113,12 @@ //SMC_MOCK_METHOD3( void, HbView *, view, // bool, animate, // Hb::ViewSwitchFlags, flags ) - } - - -// ----------------------------------------------------------------------------- -// HbMainWindow::element -// ----------------------------------------------------------------------------- -// -QGraphicsWidget * HbMainWindow::element( - HbMainWindow::Element element ) const - { - //SMC_MOCK_METHOD1( QGraphicsWidget *, HbMainWindow::Element, element ) - } - - -// ----------------------------------------------------------------------------- -// HbMainWindow::setViewSwitchingEnabled -// ----------------------------------------------------------------------------- -// -void HbMainWindow::setViewSwitchingEnabled( - bool enabled ) - { - SMC_MOCK_METHOD1( void, bool, enabled ) - } - - -// ----------------------------------------------------------------------------- -// HbMainWindow::isViewSwitchingEnabled -// ----------------------------------------------------------------------------- -// -bool HbMainWindow::isViewSwitchingEnabled( ) const - { - SMC_MOCK_METHOD0( bool ) + Q_UNUSED(view) + Q_UNUSED(animate) + Q_UNUSED(flags) } -// ----------------------------------------------------------------------------- -// HbMainWindow::softKeyAction -// ----------------------------------------------------------------------------- -// -HbAction * HbMainWindow::softKeyAction( - Hb::SoftKeyId key ) const - { - //SMC_MOCK_METHOD1( HbAction *, Hb::SoftKeyId, key ) - } - - -// ----------------------------------------------------------------------------- -// HbMainWindow::addSoftKeyAction -// ----------------------------------------------------------------------------- -// -void HbMainWindow::addSoftKeyAction( - Hb::SoftKeyId key, - HbAction * action ) - { - //SMC_MOCK_METHOD2( void, Hb::SoftKeyId, key, - // HbAction *, action ) - } - - -// ----------------------------------------------------------------------------- -// HbMainWindow::removeSoftKeyAction -// ----------------------------------------------------------------------------- -// -void HbMainWindow::removeSoftKeyAction( - Hb::SoftKeyId key, - HbAction * action ) - { - //SMC_MOCK_METHOD2( void, Hb::SoftKeyId, key, - // HbAction *, action ) - } - // ----------------------------------------------------------------------------- // HbMainWindow::orientation @@ -255,6 +140,8 @@ { //SMC_MOCK_METHOD2( void, Qt::Orientation, orientation, // bool, animate ) + Q_UNUSED(orientation) + Q_UNUSED(animate) } @@ -270,62 +157,6 @@ // ----------------------------------------------------------------------------- -// HbMainWindow::showItems -// ----------------------------------------------------------------------------- -// -void HbMainWindow::showItems( - Hb::SceneItems items ) - { - //SMC_MOCK_METHOD1( void, Hb::SceneItems, items ) - } - - -// ----------------------------------------------------------------------------- -// HbMainWindow::hideItems -// ----------------------------------------------------------------------------- -// -void HbMainWindow::hideItems( - Hb::SceneItems items ) - { - //SMC_MOCK_METHOD1( void, Hb::SceneItems, items ) - } - - -// ----------------------------------------------------------------------------- -// HbMainWindow::visibleItems -// ----------------------------------------------------------------------------- -// -Hb::SceneItems HbMainWindow::visibleItems( ) const - { - SMC_MOCK_METHOD0( Hb::SceneItems ) - } - - -// ----------------------------------------------------------------------------- -// HbMainWindow::isItemVisible -// ----------------------------------------------------------------------------- -// -bool HbMainWindow::isItemVisible( - Hb::SceneItem item ) const - { - //SMC_MOCK_METHOD1( bool, Hb::SceneItem, item ) - } - - -// ----------------------------------------------------------------------------- -// HbMainWindow::setItemVisible -// ----------------------------------------------------------------------------- -// -void HbMainWindow::setItemVisible( - Hb::SceneItem item, - bool visible ) - { - //SMC_MOCK_METHOD2( void, Hb::SceneItem, item, - // bool, visible ) - } - - -// ----------------------------------------------------------------------------- // HbMainWindow::nativeBackgroundWindow // ----------------------------------------------------------------------------- // @@ -356,33 +187,50 @@ // ----------------------------------------------------------------------------- -// HbMainWindow::setCurrentViewIndex +// HbMainWindow::setBackgroundImageName // ----------------------------------------------------------------------------- // -void HbMainWindow::setCurrentViewIndex( - int index ) +void HbMainWindow::setBackgroundImageName( + Qt::Orientation orientation, + const QString & name ) { - SMC_MOCK_METHOD1( void, int, index ) + //SMC_MOCK_METHOD2( void, Qt::Orientation, orientation, + // const QString &, name ) + Q_UNUSED(orientation) + Q_UNUSED(name) } // ----------------------------------------------------------------------------- -// HbMainWindow::nextView +// HbMainWindow::backgroundImageName // ----------------------------------------------------------------------------- // -void HbMainWindow::nextView( ) +QString HbMainWindow::backgroundImageName( + Qt::Orientation orientation ) const { - SMC_MOCK_METHOD0( void ) + //SMC_MOCK_METHOD1( QString, Qt::Orientation, orientation ) + Q_UNUSED(orientation) } // ----------------------------------------------------------------------------- -// HbMainWindow::previousView +// HbMainWindow::setAutomaticOrientationEffectEnabled // ----------------------------------------------------------------------------- // -void HbMainWindow::previousView( ) +void HbMainWindow::setAutomaticOrientationEffectEnabled( + bool enabled ) { - SMC_MOCK_METHOD0( void ) + SMC_MOCK_METHOD1( void, bool, enabled ) + } + + +// ----------------------------------------------------------------------------- +// HbMainWindow::automaticOrientationEffectEnabled +// ----------------------------------------------------------------------------- +// +bool HbMainWindow::automaticOrientationEffectEnabled( ) const + { + SMC_MOCK_METHOD0( bool ) } @@ -398,33 +246,27 @@ // ----------------------------------------------------------------------------- -// HbMainWindow::toggleOrientation +// HbMainWindow::viewReady // ----------------------------------------------------------------------------- // -void HbMainWindow::toggleOrientation( ) +void HbMainWindow::viewReady( ) { SMC_MOCK_METHOD0( void ) } // ----------------------------------------------------------------------------- -// HbMainWindow::currentViewIndexChanged +// HbMainWindow::aboutToChangeView // ----------------------------------------------------------------------------- // -void HbMainWindow::currentViewIndexChanged( - int index ) +void HbMainWindow::aboutToChangeView( + HbView * oldView, + HbView * newView ) { - SMC_MOCK_METHOD1( void, int, index ) - } - - -// ----------------------------------------------------------------------------- -// HbMainWindow::viewReady -// ----------------------------------------------------------------------------- -// -void HbMainWindow::viewReady( ) - { - SMC_MOCK_METHOD0( void ) + //SMC_MOCK_METHOD2( void, HbView *, oldView, + // HbView *, newView ) + Q_UNUSED(oldView) + Q_UNUSED(newView) } @@ -436,6 +278,7 @@ HbView * view ) { //SMC_MOCK_METHOD1( void, HbView *, view ) + Q_UNUSED(view) } @@ -459,6 +302,8 @@ { //SMC_MOCK_METHOD2( void, Qt::Orientation, newOrientation, // bool, animated ) + Q_UNUSED(newOrientation) + Q_UNUSED(animated) } @@ -470,6 +315,7 @@ Qt::Orientation orientation ) { //SMC_MOCK_METHOD1( void, Qt::Orientation, orientation ) + Q_UNUSED(orientation) } @@ -481,6 +327,7 @@ QEvent * event ) { //SMC_MOCK_METHOD1( void, QEvent *, event ) + Q_UNUSED(event) } @@ -492,6 +339,7 @@ QCloseEvent * event ) { //SMC_MOCK_METHOD1( void, QCloseEvent *, event ) + Q_UNUSED(event) } @@ -503,6 +351,7 @@ QKeyEvent * event ) { //SMC_MOCK_METHOD1( void, QKeyEvent *, event ) + Q_UNUSED(event) } @@ -514,6 +363,7 @@ QKeyEvent * event ) { //SMC_MOCK_METHOD1( void, QKeyEvent *, event ) + Q_UNUSED(event) } @@ -525,6 +375,7 @@ QResizeEvent * event ) { //SMC_MOCK_METHOD1( void, QResizeEvent *, event ) + Q_UNUSED(event) } @@ -536,6 +387,7 @@ QEvent * event ) { //SMC_MOCK_METHOD1( void, QEvent *, event ) + Q_UNUSED(event) } @@ -560,6 +412,7 @@ QPaintEvent * event ) { //SMC_MOCK_METHOD1( void, QPaintEvent *, event ) + Q_UNUSED(event) } diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/networkhandlingstarter/tsrc/run_auto_tests_qt.bat --- a/phoneengine/networkhandlingstarter/tsrc/run_auto_tests_qt.bat Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/networkhandlingstarter/tsrc/run_auto_tests_qt.bat Wed Jun 23 18:12:20 2010 +0300 @@ -169,7 +169,7 @@ :::::::::::::::::::::::::::::::::::::::::::::::::::::: :CALCULATECOVERAGE echo Calculating coverage -ctcpost %PATH_TO_COVERAGE_DATA%\*.sym | ctcmerge -i - -o profile.txt +ctcpost %PATH_TO_COVERAGE_DATA%\*.sym -p - | ctcmerge -i - -o profile.txt call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb goto end diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/networkhandlingstarter/tsrc/ut_cnetworklistener/src/ut_cnetworklistener.cpp --- a/phoneengine/networkhandlingstarter/tsrc/ut_cnetworklistener/src/ut_cnetworklistener.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/networkhandlingstarter/tsrc/ut_cnetworklistener/src/ut_cnetworklistener.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -17,9 +17,9 @@ #include #include #include -#include -#include -#include +#include +#include +#include TNWInfo* PoiterNWInfo; diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/parserrecognizer/bwins/parserrecognizeru.def --- a/phoneengine/parserrecognizer/bwins/parserrecognizeru.def Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -EXPORTS - ?metaObject@ParserRecognizer@@UBEPBUQMetaObject@@XZ @ 1 NONAME ; struct QMetaObject const * ParserRecognizer::metaObject(void) const - ?tr@ParserRecognizer@@SA?AVQString@@PBD0H@Z @ 2 NONAME ; class QString ParserRecognizer::tr(char const *, char const *, int) - ??0ParserRecognizer@@QAE@PAVQObject@@@Z @ 3 NONAME ; ParserRecognizer::ParserRecognizer(class QObject *) - ?tr@ParserRecognizer@@SA?AVQString@@PBD0@Z @ 4 NONAME ; class QString ParserRecognizer::tr(char const *, char const *) - ?qt_metacast@ParserRecognizer@@UAEPAXPBD@Z @ 5 NONAME ; void * ParserRecognizer::qt_metacast(char const *) - ?getStaticMetaObject@ParserRecognizer@@SAABUQMetaObject@@XZ @ 6 NONAME ; struct QMetaObject const & ParserRecognizer::getStaticMetaObject(void) - ??_EParserRecognizer@@UAE@I@Z @ 7 NONAME ; ParserRecognizer::~ParserRecognizer(unsigned int) - ?sendMessage@ParserRecognizer@@QAEXHH@Z @ 8 NONAME ; void ParserRecognizer::sendMessage(int, int) - ?trUtf8@ParserRecognizer@@SA?AVQString@@PBD0@Z @ 9 NONAME ; class QString ParserRecognizer::trUtf8(char const *, char const *) - ?staticMetaObject@ParserRecognizer@@2UQMetaObject@@B @ 10 NONAME ; struct QMetaObject const ParserRecognizer::staticMetaObject - ??1ParserRecognizer@@UAE@XZ @ 11 NONAME ; ParserRecognizer::~ParserRecognizer(void) - ?qt_metacall@ParserRecognizer@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 12 NONAME ; int ParserRecognizer::qt_metacall(enum QMetaObject::Call, int, void * *) - ?trUtf8@ParserRecognizer@@SA?AVQString@@PBD0H@Z @ 13 NONAME ; class QString ParserRecognizer::trUtf8(char const *, char const *, int) - ?requestCompleted@ParserRecognizer@@AAEXABVQVariant@@@Z @ 14 NONAME ; void ParserRecognizer::requestCompleted(class QVariant const &) - ?requestError@ParserRecognizer@@AAEXH@Z @ 15 NONAME ; void ParserRecognizer::requestError(int) - diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/parserrecognizer/eabi/parserrecognizeru.def --- a/phoneengine/parserrecognizer/eabi/parserrecognizeru.def Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -EXPORTS - _ZN16ParserRecognizer11qt_metacallEN11QMetaObject4CallEiPPv @ 1 NONAME - _ZN16ParserRecognizer11qt_metacastEPKc @ 2 NONAME - _ZN16ParserRecognizer11sendMessageEii @ 3 NONAME - _ZN16ParserRecognizer16staticMetaObjectE @ 4 NONAME DATA 16 - _ZN16ParserRecognizer19getStaticMetaObjectEv @ 5 NONAME - _ZN16ParserRecognizerC1EP7QObject @ 6 NONAME - _ZN16ParserRecognizerC2EP7QObject @ 7 NONAME - _ZN16ParserRecognizerD0Ev @ 8 NONAME - _ZN16ParserRecognizerD1Ev @ 9 NONAME - _ZN16ParserRecognizerD2Ev @ 10 NONAME - _ZNK16ParserRecognizer10metaObjectEv @ 11 NONAME - _ZTI16ParserRecognizer @ 12 NONAME - _ZTV16ParserRecognizer @ 13 NONAME - _ZN16ParserRecognizer16requestCompletedERK8QVariant @ 14 NONAME - _ZN16ParserRecognizer12requestErrorEi @ 15 NONAME - diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/parserrecognizer/inc/parserrecognizer.h --- a/phoneengine/parserrecognizer/inc/parserrecognizer.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,55 +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: Recognizes the parser messages that needs to be notified to -* the world using QtHighway. -*/ - -#ifndef PARSERRECOGNIZER_H -#define PARSERRECOGNIZER_H - -#include -#include - -#ifdef BUILD_PARSERRECOGNIZER -#define PARSERRECOGNIZER_EXPORT Q_DECL_EXPORT -#else -#define PARSERRECOGNIZER_EXPORT Q_DECL_IMPORT -#endif - -class PARSERRECOGNIZER_EXPORT ParserRecognizer : public QObject -{ - Q_OBJECT - -public: - ParserRecognizer(QObject *parent = 0); - ~ParserRecognizer(); - - /*! - \fn sendMessage(const int message, const int callId) - - This method takes a Phone Engine message and a caller id. - It recognizes the messages that needs to be sent to the - QtHighway. If message isn't recognized it doesn't do anything. - */ - void sendMessage(const int message, const int callId); - -private slots: - void requestCompleted(const QVariant &returnValue); - void requestError(int error); - -private: - XQServiceRequest *m_currentRequest; -}; - -#endif // PARSERRECOGNIZER_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/parserrecognizer/parserrecognizer.pri --- a/phoneengine/parserrecognizer/parserrecognizer.pri Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +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: -# - -SOURCES=\ - ./src/parserrecognizer.cpp - -HEADERS=\ - ./inc/parserrecognizer.h - -DIALSERVICE_API_HEADERS=\ - ./inc/parserrecognizer.h diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/parserrecognizer/parserrecognizer.pro --- a/phoneengine/parserrecognizer/parserrecognizer.pro Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,51 +0,0 @@ -# -# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -# All rights reserved. -# This component and the accompanying materials are made available -# under the terms of "Eclipse Public License v1.0" -# which accompanies this distribution, and is available -# at the URL "http://www.eclipse.org/legal/epl-v10.html". -# -# Initial Contributors: -# Nokia Corporation - initial contribution. -# -# Contributors: -# -# Description: -# -# - -TEMPLATE = lib -TARGET = parserrecognizer - -symbian { - TARGET.CAPABILITY = ALL -TCB - TARGET.EPOCALLOWDLLDATA =1 - TARGET.UID3 = 0x20029F87 - DEFINES += BUILD_PARSERRECOGNIZER - - INCLUDEPATH += ../../inc \ - ../phonemodel/inc - INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE - - parserDefFiles = \ - "$${LITERAL_HASH}ifdef WINSCW" \ - "DEFFILE bwins/parserrecognizer.def" \ - "$${LITERAL_HASH}else" \ - "DEFFILE eabi/parserrecognizer.def" \ - "$${LITERAL_HASH}endif" - - MMP_RULES += parserDefFiles - - LIBS += -lxqservice \ - -lxqserviceutil -} - -# Input -#include(\ext\mw\qthighway\xqservicebase.pri) -include(./parserrecognizer.pri) - -headers.sources = $$PARSERRECOGNIZER_API_HEADERS -headers.path = |../../inc -# This is for new exporting system coming in garden -for(header, headers.sources):BLD_INF_RULES.prj_exports += "$$header $$headers.path/$$basename(header)" \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/parserrecognizer/src/parserrecognizer.cpp --- a/phoneengine/parserrecognizer/src/parserrecognizer.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,127 +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: Recognizes the parser messages that needs to be notified to -* the world using QtHighway. -*/ - -#include -#include -#include "parserrecognizer.h" -#include "qtphonelog.h" - -ParserRecognizer::ParserRecognizer(QObject* parent) - : - QObject(parent), - m_currentRequest(0) -{ -} - -ParserRecognizer::~ParserRecognizer() -{ - delete m_currentRequest; -} - -void ParserRecognizer::sendMessage(const int message, const int callId) -{ - Q_UNUSED(callId); // for now - PHONE_DEBUG2("ParserRecognizer::sendMessage message:", message); - QString api; - QString method; - bool recognized = true; - - switch(message) { - case MEngineMonitor::EPEMessageActivateRfsDeep: - api = "com.nokia.services.telephony"; - method = "activateDeepRestoreFactorySettings()"; - break; - - case MEngineMonitor::EPEMessageActivateRfsNormal: - api = "com.nokia.services.telephony"; - method = "activateNormalRestoreFactorySettings()"; - break; - - case MEngineMonitor::EPEMessageShowBTDeviceAddress: - api = "com.nokia.services.bluetooth"; - method = "showBluetoothDeviceAddress()"; - break; - - case MEngineMonitor::EPEMessageShowBTLoopback: - api = "com.nokia.services.bluetooth"; - method = "showBluetoothLoopback()"; - break; - - case MEngineMonitor::EPEMessageBTDebugMode: - api = "com.nokia.services.bluetooth"; - method = "activateBluetoothDebugMode()"; - break; - - case MEngineMonitor::EPEMessageShowVersion: - api = "com.nokia.services.devicemanager"; - method = "showVersionNumber()"; - break; - - case MEngineMonitor::EPEMessageSSRequestFailed: - api = "com.nokia.services.telephony"; - method = "supplementaryServiceRequestFailed()"; - break; - - default: - recognized = false; - break; - } - - if (recognized && (!m_currentRequest)) { - PHONE_DEBUG2("ParserRecognizer::sendMessage api:", api); - PHONE_DEBUG2("ParserRecognizer::sendMessage method:", method); - m_currentRequest = new XQServiceRequest(api, method, false); - // Due to a Qt Highway bug in assignment operator implementation we - // need to set request as asynchronous with a setter function. - m_currentRequest->setSynchronous(false); - connect( - m_currentRequest, SIGNAL(requestCompleted(const QVariant &)), - this, SLOT(requestCompleted(const QVariant &))); - connect( - m_currentRequest, SIGNAL(requestError(int)), - this, SLOT(requestError(int))); - - int exceptionAsError = 0; - bool requestOk = false; - QT_TRYCATCH_ERROR( - exceptionAsError, requestOk = m_currentRequest->send()); - if ((0 != exceptionAsError) || (!requestOk)) { - PHONE_DEBUG2("ParserRecognizer::sendMessage exceptionAsError:", - exceptionAsError); - PHONE_DEBUG2("ParserRecognizer::sendMessage requestOk:", - requestOk); - requestCompleted(QVariant()); - } - } -} - -void ParserRecognizer::requestCompleted(const QVariant &returnValue) -{ - PHONE_DEBUG("ParserRecognizer::requestCompleted"); - Q_UNUSED(returnValue); - - delete m_currentRequest; - m_currentRequest = NULL; -} - -void ParserRecognizer::requestError(int error) -{ - PHONE_DEBUG2("ParserRecognizer::requestError", error); - - delete m_currentRequest; - m_currentRequest = NULL; -} diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/parserrecognizer/tsrc/README.txt --- a/phoneengine/parserrecognizer/tsrc/README.txt Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -ut_parserrecognizer - -If you run qmake then please modify the created mmp file of this project. -You need to remove \epoc32\include from the mmp. Otherwise the parserrecognizer.cpp -will see the original instead of the mocked version. diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/parserrecognizer/tsrc/runtests.bat --- a/phoneengine/parserrecognizer/tsrc/runtests.bat Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -@rem -@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: -@rem - -echo OFF - -del \epoc32\winscw\c\private\E31F4ECF\ut_parserrecognizer.log -\epoc32\release\winscw\udeb\ut_parserrecognizer.exe -o ut_parserrecognizer.log -type \epoc32\winscw\c\private\E31F4ECF\ut_parserrecognizer.log diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/parserrecognizer/tsrc/unit.pro --- a/phoneengine/parserrecognizer/tsrc/unit.pro Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -# -# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -# All rights reserved. -# This component and the accompanying materials are made available -# under the terms of "Eclipse Public License v1.0" -# which accompanies this distribution, and is available -# at the URL "http://www.eclipse.org/legal/epl-v10.html". -# -# Initial Contributors: -# Nokia Corporation - initial contribution. -# -# Contributors: -# -# Description: -# -# - -TEMPLATE = subdirs -SUBDIRS += ut_parserrecognizer diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/parserrecognizer/tsrc/ut_parserrecognizer/README.txt --- a/phoneengine/parserrecognizer/tsrc/ut_parserrecognizer/README.txt Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -ut_parserrecognizer - -If you run qmake then please modify the created mmp file of this project. -You need to remove \epoc32\include from the mmp. Otherwise the parserrecognizer.cpp -will see the original instead of the mocked version. diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/parserrecognizer/tsrc/ut_parserrecognizer/unit_tests.cpp --- a/phoneengine/parserrecognizer/tsrc/ut_parserrecognizer/unit_tests.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,227 +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: Unit tests for ParserRecognizer. -* -*/ - -#include - -//#include -#include "xqservicerequest.h" -#include "parserrecognizer.h" -#include "pevirtualengine.h" - -QString apiString; -QString methodString; -bool sendCalled; -bool gSendRequestResult = true; - -class TestParserRecognizer : public QObject -{ - Q_OBJECT -public: - TestParserRecognizer(); - virtual ~TestParserRecognizer(); - -public slots: - void initTestCase (); - void cleanupTestCase (); - void init (); - void cleanup (); - -private slots: - void testActivateRfsDeep(); - void testActivateRfsNormal(); - void testActivateWarrantyMode(); - void testShowBTDeviceAddress(); - void testShowBTLoopback(); - void testActivateBTDebugMode(); - void testShowIMEI(); - void testShowVersion(); - void testShowWLANMacAddress(); - void testSSRequestFailed(); - void testSendRequestFail(); - void testSimultaneousRequests(); - -private: - ParserRecognizer *parserRecognizer; // class under test -}; - -XQServiceRequest::XQServiceRequest(QString const& api, QString const& method, bool const& sync) -{ - Q_UNUSED(sync); - apiString = api; - methodString = method; -} - -bool XQServiceRequest::send() -{ - sendCalled = true; - return gSendRequestResult; -} - -bool XQServiceRequest::send(QVariant& retValue) -{ - Q_UNUSED(retValue); - sendCalled = true; - return gSendRequestResult; -} - -void XQServiceRequest::setSynchronous(const bool &synchronous) -{ - Q_UNUSED(synchronous); -} - -XQServiceRequest::~XQServiceRequest() -{ -} - -TestParserRecognizer::TestParserRecognizer () -{ -} - -TestParserRecognizer::~TestParserRecognizer () -{ -} - -void TestParserRecognizer::initTestCase () -{ -} - -void TestParserRecognizer::cleanupTestCase () -{ -} - -void TestParserRecognizer::init () -{ - apiString = ""; - methodString = ""; - sendCalled = false; - gSendRequestResult = true; - parserRecognizer = new ParserRecognizer; -} - -void TestParserRecognizer::cleanup () -{ - delete parserRecognizer; -} - -void TestParserRecognizer::testActivateRfsDeep() -{ - parserRecognizer->sendMessage(MEngineMonitor::EPEMessageActivateRfsDeep, 0); - QCOMPARE(apiString, QString("com.nokia.services.telephony")); - QCOMPARE(methodString, QString("activateDeepRestoreFactorySettings()")); - QCOMPARE(sendCalled, true); -} - -void TestParserRecognizer::testActivateRfsNormal() -{ - parserRecognizer->sendMessage(MEngineMonitor::EPEMessageActivateRfsNormal, 0); - QCOMPARE(apiString, QString("com.nokia.services.telephony")); - QCOMPARE(methodString, QString("activateNormalRestoreFactorySettings()")); - QCOMPARE(sendCalled, true); -} - -void TestParserRecognizer::testActivateWarrantyMode() -{ - // Lifetimer is implemented by phone and should not be handled - // by the recognizer. - parserRecognizer->sendMessage(MEngineMonitor::EPEMessageActivateWarrantyMode, 0); - QCOMPARE(apiString, QString("")); - QCOMPARE(methodString, QString("")); - QCOMPARE(sendCalled, false); -} - -void TestParserRecognizer::testShowBTDeviceAddress() -{ - parserRecognizer->sendMessage(MEngineMonitor::EPEMessageShowBTDeviceAddress, 0); - QCOMPARE(apiString, QString("com.nokia.services.bluetooth")); - QCOMPARE(methodString, QString("showBluetoothDeviceAddress()")); - QCOMPARE(sendCalled, true); -} - -void TestParserRecognizer::testShowBTLoopback() -{ - parserRecognizer->sendMessage(MEngineMonitor::EPEMessageShowBTLoopback, 0); - QCOMPARE(apiString, QString("com.nokia.services.bluetooth")); - QCOMPARE(methodString, QString("showBluetoothLoopback()")); - QCOMPARE(sendCalled, true); -} - -void TestParserRecognizer::testActivateBTDebugMode() -{ - parserRecognizer->sendMessage(MEngineMonitor::EPEMessageBTDebugMode, 0); - QCOMPARE(apiString, QString("com.nokia.services.bluetooth")); - QCOMPARE(methodString, QString("activateBluetoothDebugMode()")); - QCOMPARE(sendCalled, true); -} - -void TestParserRecognizer::testShowIMEI() -{ - // IMEI code showing is implemented by phone and should not be handled - // by the recognizer. - parserRecognizer->sendMessage(MEngineMonitor::EPEMessageShowIMEI, 0); - QCOMPARE(apiString, QString("")); - QCOMPARE(methodString, QString("")); - QCOMPARE(sendCalled, false); -} - -void TestParserRecognizer::testShowVersion() -{ - parserRecognizer->sendMessage(MEngineMonitor::EPEMessageShowVersion, 0); - QCOMPARE(apiString, QString("com.nokia.services.devicemanager")); - QCOMPARE(methodString, QString("showVersionNumber()")); - QCOMPARE(sendCalled, true); -} - -void TestParserRecognizer::testShowWLANMacAddress() -{ - // WLAN address showing not supported currently (TB 10.1) - parserRecognizer->sendMessage(MEngineMonitor::EPEMessageShowWlanMacAddress, 0); - QCOMPARE(apiString, QString("")); - QCOMPARE(methodString, QString("")); - QCOMPARE(sendCalled, false); -} - -void TestParserRecognizer::testSSRequestFailed() -{ - parserRecognizer->sendMessage(MEngineMonitor::EPEMessageSSRequestFailed, 0); - QCOMPARE(apiString, QString("com.nokia.services.telephony")); - QCOMPARE(methodString, QString("supplementaryServiceRequestFailed()")); - QCOMPARE(sendCalled, true); -} - -void TestParserRecognizer::testSendRequestFail() -{ - gSendRequestResult = false; - parserRecognizer->sendMessage(MEngineMonitor::EPEMessageShowVersion, 0); - QCOMPARE(apiString, QString("com.nokia.services.devicemanager")); - QCOMPARE(methodString, QString("showVersionNumber()")); - QCOMPARE(sendCalled, true); -} - -void TestParserRecognizer::testSimultaneousRequests() -{ - parserRecognizer->sendMessage(MEngineMonitor::EPEMessageShowVersion, 0); - QCOMPARE(apiString, QString("com.nokia.services.devicemanager")); - QCOMPARE(methodString, QString("showVersionNumber()")); - QCOMPARE(sendCalled, true); - - sendCalled = false; - parserRecognizer->sendMessage(MEngineMonitor::EPEMessageShowVersion, 0); - QCOMPARE(sendCalled, false); -} - -QTEST_MAIN(TestParserRecognizer) -#include "unit_tests.moc" diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/parserrecognizer/tsrc/ut_parserrecognizer/ut_parserrecognizer.pro --- a/phoneengine/parserrecognizer/tsrc/ut_parserrecognizer/ut_parserrecognizer.pro Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +0,0 @@ -# -# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -# All rights reserved. -# This component and the accompanying materials are made available -# under the terms of "Eclipse Public License v1.0" -# which accompanies this distribution, and is available -# at the URL "http://www.eclipse.org/legal/epl-v10.html". -# -# Initial Contributors: -# Nokia Corporation - initial contribution. -# -# Contributors: -# -# Description: -# -# - -TEMPLATE = app -TARGET = -TARGET.UID3 = 0xE31F4ECF -DEPENDPATH += . -CONFIG += qtestlib -QT -= gui - -symbian { - INCLUDEPATH +=./ - INCLUDEPATH +=../../../../inc - INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE - TARGET.EPOCALLOWDLLDATA = 1 - TARGET.CAPABILITY = ALL -TCB - DEFINES += BUILD_PARSERRECOGNIZER -} - -# Input -HEADERS += xqservicerequest.h -HEADERS += ../../inc/parserrecognizer.h -SOURCES += unit_tests.cpp -SOURCES += ../../src/parserrecognizer.cpp diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/parserrecognizer/tsrc/ut_parserrecognizer/xqservicerequest.h --- a/phoneengine/parserrecognizer/tsrc/ut_parserrecognizer/xqservicerequest.h Fri Jun 04 10:19:18 2010 +0100 +++ /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: -* -*/ - -#ifndef XQSERVICEREQUEST_H -#define XQSERVICEREQUEST_H - -#include -#include - -class XQServiceRequest : public QObject -{ - Q_OBJECT - -public: - XQServiceRequest(QString const& api, QString const& method, bool const& sync = true); - ~XQServiceRequest(); - bool send(); - bool send(QVariant& retValue); - void setSynchronous(const bool &synchronous); - -signals: - void requestCompleted(const QVariant& value) ; - void requestError(int err); -}; -#endif diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phonecntfinder2/data/phonecntfinder_stub.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneengine/phonecntfinder2/data/phonecntfinder_stub.pkg Wed Jun 23 18:12:20 2010 +0300 @@ -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: For packing phone contact finder stub. +; +; Languages +&EN + +; Header +#{"phonecntfinder"}, (0x10005998), 1, 0, 0, TYPE=SA + +; Localised Vendor name +%{"Nokia"} + +; Unique Vendor name +:"Nokia" + +;Files +""-"z:\sys\bin\phonecntfinder.dll" diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phonecntfinder2/data/phonecntfinder_stub.sis Binary file phoneengine/phonecntfinder2/data/phonecntfinder_stub.sis has changed diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phonecntfinder2/phonecntfinder2.pro --- a/phoneengine/phonecntfinder2/phonecntfinder2.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/phonecntfinder2/phonecntfinder2.pro Wed Jun 23 18:12:20 2010 +0300 @@ -73,6 +73,10 @@ BLD_INF_RULES.prj_exports += \ "$${LITERAL_HASH}include " \ "./rom/phonecntfinder.iby CORE_APP_LAYER_IBY_EXPORT_PATH(phonecntfinder.iby)" + +BLD_INF_RULES.prj_exports += \ + "./data/phonecntfinder_stub.sis \epoc32\data\z\system\install\phonecntfinder_stub.sis" + diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phonecntfinder2/src/cphcntmatch2.cpp --- a/phoneengine/phonecntfinder2/src/cphcntmatch2.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/phonecntfinder2/src/cphcntmatch2.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -122,7 +122,7 @@ // TPtrC CPhCntMatch2::FirstName() const { - return FieldValue(QContactName::DefinitionName, QContactName::FieldFirst); + return FieldValue(QContactName::DefinitionName, QContactName::FieldFirstName); } // ----------------------------------------------------------------------------- @@ -131,7 +131,7 @@ // TPtrC CPhCntMatch2::LastName() const { - return FieldValue(QContactName::DefinitionName, QContactName::FieldLast); + return FieldValue(QContactName::DefinitionName, QContactName::FieldLastName); } // ----------------------------------------------------------------------------- @@ -209,8 +209,8 @@ QList details = iContact.details(); for (int i=0;i + + + + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phonemodel/inc/cpeidlestatusmonitor.h --- a/phoneengine/phonemodel/inc/cpeidlestatusmonitor.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,82 +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: This file contains the header file for CPEIdleStatusMonitor class -* -*/ - - -#ifndef CPEIdleStatusMonitor_H -#define CPEIdleStatusMonitor_H - -//INCLUDES -#include -#include - -// FORWARD DECLARATIONS -class CPEPhoneModel; - -// CLASS DECLARATION - -/** -* CPEIdleStatusMonitor -* Monitors the idle status P&S key for changes -* -* @since S60_5.0 -*/ -NONSHARABLE_CLASS( CPEIdleStatusMonitor ) : public CActive - { - public: - /** - * Two-phased constructor. - */ - static CPEIdleStatusMonitor* NewL( - CPEPhoneModel& aOwner ); - - /** - * Destructor. - */ - virtual ~CPEIdleStatusMonitor(); - - protected: - /** - * C++ default constructor. - */ - CPEIdleStatusMonitor( CPEPhoneModel& aOwner ); - - /** - * Second-phase constructor. - */ - void ConstructL(); - - private: // From CActive - - /** - * Implements cancellation of an outstanding request. - */ - void DoCancel(); - - /** - * Handles request completion event. - */ - void RunL(); - - private: - - // MPEPhoneModelInternal owns this object. - CPEPhoneModel& iOwner; - // The interface to Publish And Subscribe. - RProperty iProperty; - }; - -#endif // CPEIdleStatusMonitor_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phonemodel/inc/cpemessagehandler.h --- a/phoneengine/phonemodel/inc/cpemessagehandler.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/phonemodel/inc/cpemessagehandler.h Wed Jun 23 18:12:20 2010 +0300 @@ -28,7 +28,6 @@ #include "mpecallhandling.h" #include "mpecallcontrolif.h" -#include "mpekeysequencerecognitionif.h" // CONSTANTS const TInt KModeNormal = 0; // Normal System mode @@ -40,21 +39,6 @@ _LIT( KPEValidDTMFChars, "0123456789*#pwPW" ); _LIT( KPEValidDTMFStringStopChars, "+pPwW" ); -// DTMF Speed dial substitution -_LIT( KPEValidSpeedDialChars, "23456789" ); -const TInt KPEDtmfSpeedDialSubstitutionsMax = 2; // prevent infinite loop. -const TInt KPESpeedDialIndexMin = 2; -const TInt KPESpeedDialIndexMax = 9; - -// DTMF parsing status for Speed dial location -enum TPESpeedDialSubstituionStatus - { - EPEDtmfSpeedDialOk, - EPEDtmfSpeedDialPromptUser, - EPEDtmfSpeedDialNotAssigned, - EPEDtmfSpeedDialInvalidSpeedDial - }; - // Invalid characters in an dialing string, these chars can be removed from dial string _LIT( KPECharsThatCanBeDelete, "\"/ ().-" ); @@ -109,8 +93,7 @@ NONSHARABLE_CLASS( CPEMessageHandler ) : public CBase, - public MPECallControlIF, - public MPEKeySequenceRecognitionIF + public MPECallControlIF { public: // Destructor @@ -253,12 +236,6 @@ const TBool aCheckForDelete ) const; /** - * Handles lifetimer data from customa api -> engineinfo. - * @return TInt possible error code.. - */ - TInt HandleGetLifeTimerData() const; - - /** * Handles EPEMessageDTMFSent message from call handling subsystem * @param ECCPErrorNone or KPEDontSendMessage */ @@ -282,12 +259,6 @@ * @return error code. */ static TInt CallBackHandleSendDtmf( TAny* aAny ); - - /** - * Handles plus (+) sign in a DTMF string. - * @param aDtmfString Current DTMF string to process. - */ - void HandlePlusSignInDtmf( const TPEDtmfString& aDtmfString ); /** * Called asyncronously from callback. @@ -510,10 +481,11 @@ TInt HandleServiceEnabled(); /** - * Handles remote party information changed + * Handles remote party information changed + * @param aCallId is the identification number of the call. * @since Series60_5.2 */ - void HandleRemotePartyInfoChanged( ); + void HandleRemotePartyInfoChanged( const TInt aCallId ); /** * Handles swap message from the phone application @@ -604,12 +576,6 @@ TInt HandleDialServiceCall( const TBool aClientCall ); - public: // from MPEKeySequenceRecognitionIF - /** - * Executes provided key sequence if recognized. - */ - TBool ExecuteKeySequenceL(const TDesC16 &aSequence); - private: // New functions /** @@ -774,7 +740,12 @@ * @param aClientCall, Informs is the current call client originated or not. * @return Return possible error code. */ - TInt HandleDialCallL( const TBool aClientCall ); + TInt HandleDialCallL( const TBool aClientCall ); + + /** + * Reset CCCECallParameters to prevent of use a previous call´s parameters + */ + void ResetClientCallData(); /** * Checks if there are any connected video calls diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phonemodel/inc/cpeparsermanufacturerhandler.h --- a/phoneengine/phonemodel/inc/cpeparsermanufacturerhandler.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/phonemodel/inc/cpeparsermanufacturerhandler.h Wed Jun 23 18:12:20 2010 +0300 @@ -81,27 +81,6 @@ */ void ProcessDebugL( const TDesC& aCode ); - private: - - /** - * Gets phone model and sw version - * @param aSwVersion sw version - * return Error Code - */ - TInt GetSwVersionAndPhoneModelL( TDes& aSwVersion ); - - /** - * Add phone model to sw version - * @param aSwVersion sw version - */ - void AppendPhoneModelL( TDes& aSwVersion ); - - /** - * Remove needless line from string - * @param aSwVersion sw version - */ - void RemoveLinesAfterThreeLines( TDes& aSwVersion ); - private: //MPEPhoneModelInternal is used to send message to the phone application MPEPhoneModelInternal& iModel; diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phonemodel/inc/cpeparsermischandler.h --- a/phoneengine/phonemodel/inc/cpeparsermischandler.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/phonemodel/inc/cpeparsermischandler.h Wed Jun 23 18:12:20 2010 +0300 @@ -65,11 +65,6 @@ public: // Functions from base classes /** - * Process IMEI display - */ - void ProcessShowIMEIL(); - - /** * Process USSD request * @param aString, USSD string to be sent */ diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phonemodel/inc/cpephonemodel.h --- a/phoneengine/phonemodel/inc/cpephonemodel.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/phonemodel/inc/cpephonemodel.h Wed Jun 23 18:12:20 2010 +0300 @@ -37,7 +37,6 @@ class CPEExternalDataHandler; class CPEMessageHandler; class CPESimStateMonitor; -class CPEIdleStatusMonitor; class MEngineMonitor; class MPEContactHandling; class MPECallHandling; @@ -47,7 +46,6 @@ class MPEServiceHandling; class CPERemotePartyInfoMediator; class PhoneServices; -class ParserRecognizer; // CLASS DECLARATION @@ -79,7 +77,6 @@ EPEContactHandlingPhaseTwo, EPEMediatorCommandHandler, EPEPhoneServices, - EPEParserRecognizer, EPENetworkHandling }; @@ -274,6 +271,11 @@ TBool DelayMessageSending( const MEngineMonitor::TPEMessagesFromPhoneEngine aMessage, const TInt aCallId ); + /** + * Gets call error from callinfo + */ + void SetCallError( TInt aCallId ); + private: //Data @@ -302,8 +304,6 @@ CPESimStateMonitor* iSimChangedMonitor; // SIM state monitor CPESimStateMonitor* iSimStatusMonitor; - // Idle status monitor - CPEIdleStatusMonitor* iIdleStatusMonitor; // DosServer connect error code. TInt iErrorCode; // Stepper counter @@ -329,8 +329,9 @@ // Phone Services offered via Qt Highway PhoneServices* iPhoneServices; - ParserRecognizer* iParserRecognizer; - + + // Mobile call info. + RMobileCall::TMobileCallInfoV3* iCallInfo; }; #endif // CPEPHONEMODEL_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phonemodel/inc/cpeprofilesettingmonitor.h --- a/phoneengine/phonemodel/inc/cpeprofilesettingmonitor.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/phonemodel/inc/cpeprofilesettingmonitor.h Wed Jun 23 18:12:20 2010 +0300 @@ -32,6 +32,7 @@ #include #include #include +#include "cpecenrepmonitor.h" // FORWARD DECLARATIONS class MPEPhoneModelInternal; @@ -46,7 +47,7 @@ * @lib Phoneenginebase.lib * @since Series60_4.0 */ -NONSHARABLE_CLASS( CPEProfileSettingMonitor ) : public CBase, public MProfileChangeObserver +NONSHARABLE_CLASS( CPEProfileSettingMonitor ) : public CPECenRepMonitor, public MProfileChangeObserver { public: static CPEProfileSettingMonitor* NewL( MPEPhoneModelInternal& aModel ); @@ -57,6 +58,8 @@ CPEProfileSettingMonitor( MPEPhoneModelInternal& aModel ); void ConstructL(); void GetProfileSettingsL(); + // From CPECenRepMonitor + void UpdateL(); private: // Not owned by this object MPEPhoneModelInternal& iModel; private: // Owned by this object diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phonemodel/inc/mpekeysequencerecognitionif.h --- a/phoneengine/phonemodel/inc/mpekeysequencerecognitionif.h Fri Jun 04 10:19:18 2010 +0100 +++ /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 "Eclipse Public License v1.0" -* which accompanies 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 the interface for key sequence recognition. -* -*/ - -#ifndef MPEKEYSEQUENCERECOGNITIONIF_H -#define MPEKEYSEQUENCERECOGNITIONIF_H - -#include - -// CLASS DECLARATION - -/** -* Defines interface for key sequence recognition and execution. -* -* @lib phoneengine.lib -* @since S60_10.1 -*/ -NONSHARABLE_CLASS( MPEKeySequenceRecognitionIF ) -{ - public: //New functions - - /** - * Executes provided key sequence if the sequence is recognized. - * @param aSequence The key sequence. - * @return ETrue if the key sequence was executed, EFalse otherwise. - */ - virtual TBool ExecuteKeySequenceL(const TDesC16& aSequence) = 0; - }; - -#endif // MPEKEYSEQUENCERECOGNITIONIF_H - -// End of File diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phonemodel/inc/pevirtualengine.h --- a/phoneengine/phonemodel/inc/pevirtualengine.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/phonemodel/inc/pevirtualengine.h Wed Jun 23 18:12:20 2010 +0300 @@ -96,13 +96,6 @@ const TInt KPEMessagesFromPhoneEngineGsmLast = 12999; const TInt KPEMessagesFromPhoneEngineVariantFirst = KPEMessagesFromPhoneEngineGsmFirst; -// Lifetimer data in hours and minutes -NONSHARABLE_STRUCT( TPELifeTimeData ) - { - TUint32 iHours; //range 0-999999 - TUint8 iMinutes; //range 0-59 - }; - // Used when initializing number variables with non negative value range. const TInt KPENumberInitValue = -1; //CallId not used in SendErrorMessageL @@ -238,6 +231,8 @@ TInt iCallId; // Error type( Cch or Ccp ) TPEErrorType iErrorType; + //Protocol spesific error code + TInt iProtocolSpesificErrorCode; }; enum TPECallType @@ -317,16 +312,6 @@ TPEPhoneNumber iDTMFVMBXL2; // Line 2 DTMFVoiceMailBoxNumber }; - -// Contains information of PhoneIdentity paramteres -NONSHARABLE_STRUCT( TPEPhoneIdentityParameters ) - { - TPEManufacturer iManufacturer; - TPEModel iModel; - TPERevision iRevision; - TPESerialNumber iSerialNumber; - }; - // Contains information of call audio route parameters NONSHARABLE_STRUCT( TPEPhoneAudioRouteParameters ) { @@ -395,17 +380,14 @@ EPEMessageIncoming, EPEMessageInitiatedEmergencyCall, EPEMessageInitiatedEmergencyWhileActiveVideo, - EPEMessageInvalidSpeedDial, EPEMessageIssuingUSSDRequest, EPEMessageIssuedUSSDRequest, EPEMessagePacketNetworkDetached, - EPEMessagePromptSpeedDial, EPEMessageRemoteBusy, EPEMessageRemoteTerminated, EPEMessageSendingDTMF, EPEMessageSentDTMF, EPEMessageSentSSString, - EPEMessageSpeedDialNotAssigned, EPEMessageStoppedDTMF, EPEMessageSwapped, EPEMessageTransferDone, @@ -420,6 +402,7 @@ EPEMessageRemoteForwarding, EPEMessageMovedPermanently, EPEMessageMultipleChoices, + EPEMessageColpNumberAvailable, // Contact messages 3000 - 3999 EPEMessageThumbnailLoadingCompleted = 3000, @@ -447,11 +430,8 @@ // Parser messages 6000 - 6999 EPEMessageActivateRfsDeep = 6000, EPEMessageActivateRfsNormal, - EPEMessageActivateWarrantyMode, EPEMessageShowBTDeviceAddress, EPEMessageShowBTLoopback, - EPEMessageShowIMEI, - EPEMessageShowVersion, EPEMessageShowWlanMacAddress, EPEMessageSSRequestFailed, EPEMessageBTDebugMode, @@ -485,7 +465,6 @@ EPEMessageDoNotSendMe = 10000, EPEMessageInValidEmergencyNumber, EPEMessageLogEventSaved, - EPEMessagePhoneIdentityReady, EPEMessageStartATDialing, EPEMessageValidEmergencyNumber, EPEMessageMuteRingingTone, diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phonemodel/phonemodel.pro --- a/phoneengine/phonemodel/phonemodel.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/phonemodel/phonemodel.pro Wed Jun 23 18:12:20 2010 +0300 @@ -32,9 +32,8 @@ $$OS_LAYER_GLIB_SYSTEMINCLUDE INCLUDEPATH += ../../inc \ ../inc \ - ../phoneservices/inc \ - ../parserrecognizer/inc \ - + ../phoneservices/inc + engineDefFiles = \ "$${LITERAL_HASH}ifdef WINSCW" \ "DEFFILE bwins/phoneengine.def" \ @@ -74,7 +73,6 @@ -lpeservicehandling \ -lphoneservices \ -lengineinfo \ - -lparserrecognizer \ -lmediatorclient \ -lestor \ -lxqservice \ @@ -95,7 +93,6 @@ HEADERS += ./inc/cpeclientservices.h HEADERS += ./inc/cpedevicemodehandler.h HEADERS += ./inc/cpeexternaldatahandler.h -HEADERS += ./inc/cpeidlestatusmonitor.h HEADERS += ./inc/cpemanualcallcontrolhandler.h HEADERS += ./inc/cpemessagehandler.h HEADERS += ./inc/cpemessagehandler.inl @@ -150,7 +147,6 @@ SOURCES += ./src/cpetimer.cpp SOURCES += ./src/pepanic.cpp SOURCES += ./src/cpemanualcallcontrolhandler.cpp -SOURCES += ./src/cpeidlestatusmonitor.cpp SOURCES += ./src/cpeparsermanufacturerhandler.cpp SOURCES += ./src/cpeparsermischandler.cpp SOURCES += ./src/cpeparserphonenumberhandler.cpp @@ -181,9 +177,17 @@ "./rom/phonengengine.iby CORE_APP_LAYER_IBY_EXPORT_PATH(phonengengine.iby)" BLD_INF_RULES.prj_exports += "./conf/s60telephony.confml APP_LAYER_CONFML(s60telephony.confml)" BLD_INF_RULES.prj_exports += "./conf/s60telephony_japan.confml CONFML_EXPORT_PATH(s60telephony_japan.confml,japan)" -BLD_INF_RULES.prj_exports += "./conf/s60telephony_101F87E3.crml APP_LAYER_CRML(s60telephony_101F87E3.crml)" -BLD_INF_RULES.prj_exports += "./conf/s60telephony_102828B1.crml APP_LAYER_CRML(s60telephony_102828B1.crml)" -BLD_INF_RULES.prj_exports += "./conf/s60telephony_102828B2.crml APP_LAYER_CRML(s60telephony_102828B2.crml)" -BLD_INF_RULES.prj_exports += "./conf/s60telephony_102828B8.crml APP_LAYER_CRML(s60telephony_102828B8.crml)" -BLD_INF_RULES.prj_exports += "./conf/s60telephony_102828F8.crml APP_LAYER_CRML(s60telephony_102828F8.crml)" -BLD_INF_RULES.prj_exports += "./conf/s60telephony_102830B6.crml APP_LAYER_CRML(s60telephony_102830B6.crml)" +BLD_INF_RULES.prj_exports += "./conf/s60telephony_101f87e3.crml APP_LAYER_CRML(s60telephony_101f87e3.crml)" +BLD_INF_RULES.prj_exports += "./conf/s60telephony_102828b1.crml APP_LAYER_CRML(s60telephony_102828b1.crml)" +BLD_INF_RULES.prj_exports += "./conf/s60telephony_102828b2.crml APP_LAYER_CRML(s60telephony_102828b2.crml)" +BLD_INF_RULES.prj_exports += "./conf/s60telephony_102828b8.crml APP_LAYER_CRML(s60telephony_102828b8.crml)" +BLD_INF_RULES.prj_exports += "./conf/s60telephony_102828f8.crml APP_LAYER_CRML(s60telephony_102828f8.crml)" +BLD_INF_RULES.prj_exports += "./conf/s60telephony_102830b6.crml APP_LAYER_CRML(s60telephony_102830b6.crml)" + +#Backup registration files +BLD_INF_RULES.prj_exports += "./data/backup_registration.xml /epoc32/data/z/private/1000a86c/backup_registration.xml" +BLD_INF_RULES.prj_exports += "./data/backup_registration.xml /epoc32/release/winscw/udeb/z/private/1000a86c/backup_registration.xml" +BLD_INF_RULES.prj_exports += "./data/backup_registration.xml /epoc32/release/winscw/urel/z/private/1000a86c/backup_registration.xml" + +#Stub sis +BLD_INF_RULES.prj_exports += "./data/phonemodel_stub.sis \epoc32\data\z\system\install\phonemodel_stub.sis" diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phonemodel/rom/phonengengine.iby --- a/phoneengine/phonemodel/rom/phonengengine.iby Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/phonemodel/rom/phonengengine.iby Wed Jun 23 18:12:20 2010 +0300 @@ -46,8 +46,6 @@ // <-- QT PHONE START --> // Dial Service file=ABI_DIR\BUILD_DIR\phoneservices.dll SHARED_LIB_DIR\phoneservices.dll -// Parser recognizer -file=ABI_DIR\BUILD_DIR\parserrecognizer.dll SHARED_LIB_DIR\parserrecognizer.dll // <-- QT PHONE END--> data=DATAZ_\private\1000A86C\backup_registration.xml private\1000A86C\backup_registration.xml diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phonemodel/src/cpeidlestatusmonitor.cpp --- a/phoneengine/phonemodel/src/cpeidlestatusmonitor.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,132 +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: This module contains the implementation of CPEIdleStatusMonitor class -* -*/ - - -// INCLUDES -#include -#include "cpephonemodel.h" -#include "cpeidlestatusmonitor.h" -#include - - -// ================= MEMBER FUNCTIONS ======================= - -// ----------------------------------------------------------------------------- -// CPEIdleStatusMonitor::NewL -// Two-phased constructor. -// ----------------------------------------------------------------------------- -CPEIdleStatusMonitor* CPEIdleStatusMonitor::NewL( - CPEPhoneModel& aOwner ) - { - TEFLOGSTRING( KTAOBJECT, "PE CPEIdleStatusMonitor::NewL "); - CPEIdleStatusMonitor* self = new (ELeave) CPEIdleStatusMonitor( - aOwner ); - CleanupStack::PushL( self ); - self->ConstructL(); - CleanupStack::Pop( self ); - return( self ); - } - -// Destructor -CPEIdleStatusMonitor::~CPEIdleStatusMonitor() - { - TEFLOGSTRING( KTAOBJECT, "PE CPEIdleStatusMonitor::~CPEIdleStatusMonitor, start "); - Cancel(); - iProperty.Close(); - TEFLOGSTRING( KTAOBJECT, "PE CPEIdleStatusMonitor::~CPEIdleStatusMonitor, complete "); - } - -// ----------------------------------------------------------------------------- -// CPEIdleStatusMonitor::CPEIdleStatusMonitor -// C++ default constructor can NOT contain any code, that -// might leave. -// ----------------------------------------------------------------------------- -// -CPEIdleStatusMonitor::CPEIdleStatusMonitor( - CPEPhoneModel& aOwner - ): CActive( EPriorityStandard ), - iOwner( aOwner ) - { - CActiveScheduler::Add( this ); - } - -// ----------------------------------------------------------------------------- -// CPEIdleStatusMonitor::ConstructL -// Symbian 2nd phase constructor can leave. -// ----------------------------------------------------------------------------- -// -void CPEIdleStatusMonitor::ConstructL() - { - TEFLOGSTRING( KTAOBJECT, "PE CPEIdleStatusMonitor::ConstructL"); - User::LeaveIfError( iProperty.Attach( KPSUidAiInformation, KActiveIdleState ) ); - - TInt value; - iProperty.Get( KPSUidAiInformation, KActiveIdleState, value ); - - if ( value == EPSAiForeground ) - { - // Don't implement any new code that reserver anything after this. - iOwner.ConstructContactHandlingPhaseTwoL(); - } - else - { - iProperty.Subscribe( iStatus ); - SetActive(); - } - } - -// ----------------------------------------------------------------------------- -// CPEIdleStatusMonitor::DoCancel -// Callback method from CActive. -// ----------------------------------------------------------------------------- -// -void CPEIdleStatusMonitor::DoCancel() - { - TEFLOGSTRING( KTAREQOUT, "PE CPEIdleStatusMonitor::DoCancel()" ); - iProperty.Cancel(); - } - -// ----------------------------------------------------------------------------- -// CPECenRepMonitor::RunL -// ----------------------------------------------------------------------------- -// -void CPEIdleStatusMonitor::RunL() - { - TEFLOGSTRING2( KTAREQEND, - "PE CPEIdleStatusMonitor::RunL,iStatus: %d", iStatus.Int() ); - - // Now retrieve the value - TInt value; - iProperty.Get( KPSUidAiInformation, KActiveIdleState, value ); - - if ( value == EPSAiForeground ) - { - TEFLOGSTRING( KTAOBJECT, - "PE CPEIdleStatusMonitor::RunL, starting contact handling creation"); - // Don't implement any new code that reserver anything after this. - iOwner.ConstructContactHandlingPhaseTwoL(); - TEFLOGSTRING( KTAOBJECT, - "PE CPEIdleStatusMonitor::RunL, starting contact handling creation done "); - } - else - { - iProperty.Subscribe( iStatus ); - SetActive(); - } - } - -// End of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phonemodel/src/cpemessagehandler.cpp --- a/phoneengine/phonemodel/src/cpemessagehandler.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/phonemodel/src/cpemessagehandler.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -453,12 +453,6 @@ dtmfString = KNullDesC; } - else if ( dtmfString[ 0 ] == KPEDtmfPlusChar ) // speed-dial substitution - { - TEFLOGSTRING( KTAMESINT, "PE CPEMessageHandler::HandleSendDtmf(), Processing +" ); - HandlePlusSignInDtmf( dtmfString ); - dtmfString = KNullDesC; - } else if ( dtmfString[ 0 ] == KPEDtmfPauseCharLowercase || dtmfString[ 0 ] == KPEDtmfPauseCharUppercase ) // soft pause { @@ -536,147 +530,6 @@ } // ----------------------------------------------------------------------------- -// CPEMessageHandler::HandlePlusSignInDtmf -// Handles plus (+) sign in a DTMF string. -// ----------------------------------------------------------------------------- -// -void CPEMessageHandler::HandlePlusSignInDtmf(const TPEDtmfString& aDtmfString ) - { - TEFLOGSTRING2( KTAMESINT, "PE CPEMessageHandler::HandlePlusSignInDtmf(), aDtmfString: %S", &aDtmfString ); - - // Find the SD index after the plus sign - TPtrC validManualDTMFChars( KPEValidSpeedDialChars ); - TInt index = ECCPErrorNotFound; - for ( index = 1 ; index < aDtmfString.Length() ; index++ ) - { - if ( validManualDTMFChars.Locate( aDtmfString[index] ) == ECCPErrorNotFound ) - { - TEFLOGSTRING( KTAMESINT, "PE CPEMessageHandler::HandlePlusSignInDtmf(), Not Found" ); - break; - } - } - TPESpeedDialSubstituionStatus sdStatus = EPEDtmfSpeedDialOk; - - // Empty string after the plus sign - if ( index == 1 ) - { - if ( aDtmfString.Length() > 1 ) - { - // pw+ after the plus sign. - sdStatus = EPEDtmfSpeedDialInvalidSpeedDial; - } - else - { - // string ended with the plus sign. - sdStatus = EPEDtmfSpeedDialPromptUser; - } - // Clear DTMF string. - iDataStore.SetDtmfString( KNullDesC() ); - } - // Else if the SD location ends the DTMF string, move the index to the - // last character instead of one over. - else if ( index == aDtmfString.Length() ) - { - index--; - } - - // Check that the index is valid - TInt sdIndex = ECCPErrorNotFound; - if ( sdStatus == EPEDtmfSpeedDialOk ) - { - TLex lexer( aDtmfString.Mid( 1, index ) ); - // convert it to a number - if ( lexer.Val(sdIndex) == ECCPErrorNone ) - { - // Is it out of range - if ( sdIndex < KPESpeedDialIndexMin || - sdIndex > KPESpeedDialIndexMax ) - { - sdStatus = EPEDtmfSpeedDialInvalidSpeedDial; - } - } - else - { - sdStatus = EPEDtmfSpeedDialInvalidSpeedDial; - } - } - - // Fetch the SD location - TPEPhoneNumber speedDialLocationString; - if ( sdStatus == EPEDtmfSpeedDialOk ) - { - TEFLOGSTRING2( KTAMESINT, "PE CPEMessageHandler::HandlePlusSignInDtmf(), SD location %i", sdIndex ); - if ( iContactHandling.GetSpeedDialLocation( - sdIndex, speedDialLocationString ) == ECCPErrorNone ) - { - // Is content found - if ( speedDialLocationString.Length() == 0) - { - sdStatus = EPEDtmfSpeedDialNotAssigned; - } - else if ( speedDialLocationString[0] == KPEDtmfPlusChar) - { - // plus char must be removed from dtmf string before sending - RemovePlusPrefix( speedDialLocationString ); - } - } - else - { - sdStatus = EPEDtmfSpeedDialInvalidSpeedDial; - } - } - - // Now interpret the sdStatus to the next action - switch ( sdStatus ) - { - case EPEDtmfSpeedDialOk: - { - TEFLOGSTRING2( KTAMESINT, "PE CPEMessageHandler::HandlePlusSignInDtmf(), SD result: %S", &speedDialLocationString ); - // Take the SD location string and use that as new DTMF string - iDataStore.SetDtmfStringCommand( speedDialLocationString ); - - // Do recursion asyncronously - TCallBack callBack( CallBackHandleSendDtmf, this ); - delete iAsyncCallBack; - iAsyncCallBack = NULL; - // Function does not allow to leave. - iAsyncCallBack = new CAsyncCallBack( callBack, CActive::EPriorityStandard ); - if ( iAsyncCallBack ) - { - iAsyncCallBack->CallBack(); - } - else - { - iModel.SendMessage( MEngineMonitor::EPEMessageDTMFSendingAborted ); - } - } - break; - case EPEDtmfSpeedDialPromptUser: - // Speed dial location not given. - iDataStore.SetDtmfString( KNullDesC() ); - iModel.SendMessage( MEngineMonitor::EPEMessagePromptSpeedDial ); - break; - case EPEDtmfSpeedDialNotAssigned: - // Speed dial location valid but not assigned - iDataStore.SetDtmfString( KNullDesC() ); - iDataStore.SetDtmfStringCommand( KNullDesC() ); - iModel.SendMessage( MEngineMonitor::EPEMessageDTMFSendingAborted); - iModel.SendMessage( MEngineMonitor::EPEMessageSpeedDialNotAssigned ); - break; - case EPEDtmfSpeedDialInvalidSpeedDial: - // Speed dial location invalid - iDataStore.SetDtmfString( KNullDesC() ); - iDataStore.SetDtmfStringCommand( KNullDesC() ); - iModel.SendMessage( MEngineMonitor::EPEMessageDTMFSendingAborted); - iModel.SendMessage( MEngineMonitor::EPEMessageInvalidSpeedDial ); - break; - default: - Panic( EPEPanicInvalidState ); - break; - } // end switch - } - -// ----------------------------------------------------------------------------- // CPEMessageHandler::CheckPrefix // Checks the status of phone number prefix change setting // and calls CPEMessageHandler::ChangePrefix for execution. @@ -1082,34 +935,6 @@ return returnValue; } - -// ----------------------------------------------------------------------------- -// CPEMessageHandler::HandleGetLifeTimerData -// Reads lifetimerdata from custom api and stores it to engine info -// ----------------------------------------------------------------------------- -// -TInt CPEMessageHandler::HandleGetLifeTimerData() const - { - TCCPLifeTimeData lifeTimeData; - TCCPLifeTimeDataPckg pckg( lifeTimeData ); - - if ( iCallHandling.GetLifeTime( pckg ) ) - { - TEFLOGSTRING2( - KTAGENERAL, - "PE: CPEMessageHandler::HandleGetLifeTimerData, iHours = %d", - lifeTimeData.iHours); - TEFLOGSTRING2( - KTAGENERAL, - "PE: CPEMessageHandler::HandleGetLifeTimerData, iMinutes = %d", - lifeTimeData.iMinutes); - - iDataStore.SetLifeTimerData( pckg ); - } - - return ECCPErrorNone; - } - // ----------------------------------------------------------------------------- // CPEMessageHandler::CallbackSendMessageStoppedDTMF // ----------------------------------------------------------------------------- @@ -1512,16 +1337,7 @@ RemovePreAndPostFix( number ); iDataStore.SetRemotePhoneNumber( number, aCallId ); - } - - // The Colp number is stored to remoteparty in connected state. - TPEPhoneNumber colpNumber = iCallInfo->iRemoteParty.iRemoteNumber.iTelNumber; - RemovePreAndPostFix( colpNumber ); - iDataStore.SetRemoteColpNumber( colpNumber, aCallId ); - TEFLOGSTRING3( - KTAMESINT, - "PE CPEMessageHandler::SetPhoneNumberForCallLogging, colp number: '%S', call id: %d", - &colpNumber, aCallId ); + } } else if ( iDataStore.CallDirection( aCallId ) == RMobileCall::EMobileTerminated ) { @@ -1747,9 +1563,6 @@ // logging works OK (see CPEMessageHandler::SetPhoneNumberForCallLogging). iDataStore.SetPhoneNumber( KNullDesC() ); - // COLP number is updated in connected state - UpdateRemotePartyInfo(); - return ECCPErrorNone; } @@ -1863,6 +1676,7 @@ else { iDataStore.SetCallOriginCommand(EPECallOriginPhone); + ResetClientCallData(); } //Get number of calls @@ -1919,6 +1733,23 @@ } // ----------------------------------------------------------------------------- +// CPEMessageHandler::ResetClientCallData +// Reset CCCECallParameters to prevent of use a previous call´s parameters +// ----------------------------------------------------------------------------- +// +void CPEMessageHandler::ResetClientCallData() + { + TEFLOGSTRING( KTAINT, "PE CPEMessageHandler::ResetClientCallData()" ); + + CCCECallParameters& params = iDataStore.CallParameters(); + params.SetLineType( CCCECallParameters::ECCELineTypePrimary ); + params.SetUUSId( KNullDesC() ); + params.SetBearer( KNullDesC8() ); + params.SetSubAddress( KNullDesC() ); + params.SetOrigin( CCCECallParameters::ECCECallOriginPhone ); + } + +// ----------------------------------------------------------------------------- // CPEMessageHandler::HandleSatCallRequestCompleted // Sends respond to SAT after dial request completion // ----------------------------------------------------------------------------- @@ -2894,9 +2725,10 @@ // CPEMessageHandler::HandleRemotePartyInfoChanged // ----------------------------------------------------------------------------- // -void CPEMessageHandler::HandleRemotePartyInfoChanged() - { - UpdateRemotePartyInfo(); +void CPEMessageHandler::HandleRemotePartyInfoChanged( const TInt /*aCallId*/ ) + { + UpdateRemotePartyInfo(); + } @@ -3004,30 +2836,4 @@ return errorCode; } - -// ----------------------------------------------------------------------------- -// CPEMessageHandler::ExecuteKeySequenceL -// Only sequences which are not issued with send-key are handled here. SS -// commands etc. are processed in HandleDialCallL(). -// ----------------------------------------------------------------------------- -// -TBool CPEMessageHandler::ExecuteKeySequenceL( const TDesC16 &aSequence ) -{ - TBool keySequenceProcessed( EFalse ); - - iOptions->SetOptionStatus( KPhoneOptionInCall, - ( iCallHandling.GetNumberOfCalls() > 0 ) ); - iOptions->SetOptionStatus( KPhoneOptionSend, EFalse ); - iOptions->SetOptionStatus( KPhoneOptionVoipCall, EFalse ); - - if ( iParser->ParseL( aSequence, *iResult, *iOptions ) ) - { - keySequenceProcessed = ETrue; - iGsmParserErrorCode = ECCPErrorNone; - iParserHandlerContainer->ProcessL( *iResult ); - } - - return keySequenceProcessed; -} - // End of File diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phonemodel/src/cpeparsermanufacturerhandler.cpp --- a/phoneengine/phonemodel/src/cpeparsermanufacturerhandler.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/phonemodel/src/cpeparsermanufacturerhandler.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -17,19 +17,11 @@ // ==================== INCLUDE FILES ==================== -#include "cpeparsermanufacturerhandler.h" -#include "mpephonemodelinternal.h" #include #include -#include #include - - -// CONSTANTS -const TInt KPESwVersionLineCount = 3; -const TInt KPEVersionLineFeed = '\n'; -const TInt KPESalesModelNameMaxLength = 20; -_LIT( KPESalesModelFileName, "Z:\\resource\\versions\\model.txt"); +#include "cpeparsermanufacturerhandler.h" +#include "mpephonemodelinternal.h" // ================= MEMBER FUNCTIONS ======================= @@ -64,25 +56,6 @@ switch ( aCommand ) { - case EShowVersion: // *#0000# - { - TEFLOGSTRING( KTAINT, "PE CPEParserManufacturerHandler::ProcessCommandL, EShowVersion" ); - - TPEPhoneIdentityParameters phoneIdentity; - phoneIdentity = iModel.DataStore()->PhoneIdentityParameters(); - if ( GetSwVersionAndPhoneModelL( phoneIdentity.iRevision ) == KErrNone ) - { - iModel.DataStore()->SetPhoneIdentityParameters( phoneIdentity ); - iModel.SendMessage( MEngineMonitor::EPEMessageShowVersion ); - } - else - { - iModel.SendMessage( MEngineMonitor::EPEMessageError ); - TEFLOGSTRING( KTAERROR, - "PE CPEGSMPARSERMANUFACTURERHANDLER::PROCESSCOMMANDL: FAILED TO RETRIEVE SW VERSION" ); - } - break; - } case EBadPinChange: { iModel.SendMessage( MEngineMonitor::EPEMessageBadPin1Change ); @@ -113,13 +86,6 @@ iModel.SendMessage( MEngineMonitor::EPEMessageActivateRfsDeep ); break; } - case EActivateWarranty: - //lint -fallthrough - case ELifeTimer: - { - iModel.SendMessage( MEngineMonitor::EPEMessageActivateWarrantyMode ); - break; - } case EShowBtAddress: // *#2820# { iModel.SendMessage( MEngineMonitor::EPEMessageShowBTDeviceAddress ); @@ -204,91 +170,4 @@ } } -// ----------------------------------------------------------------------------- -// CPEParserManufacturerHandler::GetSwVersionAndPhoneModelL -// Gets sw version from SysUtil::GetSwVersion and loads phone model information -// from file. This information is set to aSwVersion. -// ----------------------------------------------------------------------------- -// -TInt CPEParserManufacturerHandler::GetSwVersionAndPhoneModelL( - TDes& aSwVersion ) - { - TEFLOGSTRING( KTAINT, "PE CPEParserManufacturerHandler::GetSwVersionAndPhoneModelL" ); - - TInt errorCode = SysUtil::GetSWVersion( aSwVersion ) ; - - TEFLOGSTRING2( KTAINT, - "PE CPEParserManufacturerHandler::GetSwVersionAndPhoneModelL > SysUtil::GetSWVersion, error code: %d", - errorCode ); - - if ( errorCode == KErrNone ) - { - // Remove needless lines - RemoveLinesAfterThreeLines( aSwVersion ); - // Add phone model - AppendPhoneModelL( aSwVersion ); - } - - return errorCode; - } - -// ----------------------------------------------------------------------------- -// CPEParserManufacturerHandler::RemoveNeedlessLinesL -// Removes lines after 3 end-of-line (\n) chars. -// ----------------------------------------------------------------------------- -// -void CPEParserManufacturerHandler::RemoveLinesAfterThreeLines( - TDes& aSwVersion ) - { - TEFLOGSTRING( KTAINT, "PE CPEParserManufacturerHandler::RemoveLinesAfterThreeLines" ); - - TInt lineFeedCount = 0; - - const TInt swVersionLength( aSwVersion.Length() ); - for( TInt i = 0; i < swVersionLength ; i++ ) - { - if( aSwVersion[i] == KPEVersionLineFeed ) - { - lineFeedCount++; - if( lineFeedCount == KPESwVersionLineCount ) - { - const TInt charsToDelete( aSwVersion.Length() - i ); - - // Dont delete the last line feed characted, thats why - // i + 1. - aSwVersion.Delete( i + 1, charsToDelete ); - return; - } - } - } - } - -// ----------------------------------------------------------------------------- -// CPEParserManufacturerHandler::AppendPhoneModelL -// Reads phone model info from disk and appends it to aSwVersion. -// ----------------------------------------------------------------------------- -// -void CPEParserManufacturerHandler::AppendPhoneModelL( - TDes& aSwVersion ) - { - RFile file; - User::LeaveIfError( file.Open( iFsSession, - KPESalesModelFileName, - EFileShareReadersOnly | EFileRead ) ); - CleanupClosePushL( file ); - - HBufC* model = HBufC::NewLC( KPESalesModelNameMaxLength ); - TPtr ptr = model->Des(); - - // Read the data from file. - TFileText reader; - reader.Set( file ); - User::LeaveIfError( reader.Read( ptr ) ); - - // Append the phone model to aSwVersion - aSwVersion.Append( *model ); - - CleanupStack::PopAndDestroy( 2 ); // model, file - } - // End of File diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phonemodel/src/cpeparsermischandler.cpp --- a/phoneengine/phonemodel/src/cpeparsermischandler.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/phonemodel/src/cpeparsermischandler.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -43,16 +43,6 @@ } // ----------------------------------------------------------------------------- -// CPEParserMiscHandler::ProcessShowIMEIL -// Process IMEI display -// ----------------------------------------------------------------------------- -// -void CPEParserMiscHandler::ProcessShowIMEIL() - { - iCallHandling.UpdatePhoneIdentity( MEngineMonitor::EPEMessageShowIMEI ); - } - -// ----------------------------------------------------------------------------- // CPEParserMiscHandler::ProcessUssdL // Process USSD request // ----------------------------------------------------------------------------- diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phonemodel/src/cpeparserphonenumberhandler.cpp --- a/phoneengine/phonemodel/src/cpeparserphonenumberhandler.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/phonemodel/src/cpeparserphonenumberhandler.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -185,6 +185,7 @@ stripStart = i; } } + input.Inc(); } if ( stripStart != KErrNotFound ) { diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phonemodel/src/cpephonemodel.cpp --- a/phoneengine/phonemodel/src/cpephonemodel.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/phonemodel/src/cpephonemodel.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -20,7 +20,6 @@ // INCLUDE FILES #include "cpeactivestarter.h" #include "cpeexternaldatahandler.h" -#include "cpeidlestatusmonitor.h" #include "cpemessagehandler.h" #include "cpephonemodel.h" #include "cpeservicehandling.h" @@ -41,11 +40,11 @@ #include #include #include "phoneservices.h" -#include "parserrecognizer.h" // CONSTANTS const TInt KDriveProfile ( 6 ); const TInt KPECallTimerOff = 0; +const TInt KTimesToSplitValue = 16; // ==================== LOCAL FUNCTIONS ==================== @@ -99,6 +98,8 @@ TEFLOGSTRING( KTAOBJECT, "CPEPhoneModel::ConstructL: 5" ); iActiveStarter->StartUp(); TEFLOGSTRING( KTAOBJECT, "CPEPhoneModel::ConstructL: 6" ); + // Reserve needed callinfo and remoteinfo from heap. + iCallInfo = new ( ELeave ) RMobileCall::TMobileCallInfoV3; }// ConstructL // ----------------------------------------------------------------------------- @@ -148,6 +149,7 @@ delete iCallHandling; delete iExternalDataHandler; delete iCallStackCutter; + delete iCallInfo; if ( iActiveStarter ) { @@ -158,12 +160,7 @@ iFsSession.Close(); delete iEngineInfo; delete iConvergedCallEngine; - if ( iIdleStatusMonitor ) - { - delete iIdleStatusMonitor; - } delete iPhoneServices; - delete iParserRecognizer; }// ~CPEPhoneModel // ----------------------------------------------------------------------------- @@ -461,16 +458,8 @@ return MESSAGE("EPEMessageCallAdded"); case MEngineMonitor::EPEMessageRemoteTerminated: return MESSAGE("EPEMessageRemoteTerminated"); - case MEngineMonitor::EPEMessageShowIMEI: - return MESSAGE("EPEMessageShowIMEI"); case MEngineMonitor::EPEMessageUnknown: return MESSAGE("EPEMessageUnknown"); - case MEngineMonitor::EPEMessagePromptSpeedDial: - return MESSAGE("EPEMessagePromptSpeedDial"); - case MEngineMonitor::EPEMessageSpeedDialNotAssigned: - return MESSAGE("EPEMessageSpeedDialNotAssigned"); - case MEngineMonitor::EPEMessageInvalidSpeedDial: - return MESSAGE("EPEMessageInvalidSpeedDial"); case MEngineMonitor::EPEMessageDataPortLoaned: return MESSAGE("EPEMessageDataPortLoaned"); @@ -562,8 +551,6 @@ return MESSAGE("EPEMessageInValidEmergencyNumber"); case MEngineMonitor::EPEMessageValidEmergencyNumber: return MESSAGE("EPEMessageValidEmergencyNumber"); - case MEngineMonitor::EPEMessagePhoneIdentityReady: - return MESSAGE("EPEMessagePhoneIdentityReady"); case MEngineMonitor::EPEMessageStartATDialing: return MESSAGE("EPEMessageStartATDialing"); case MEngineMonitor::EPEMessageLogEventSaved: @@ -608,8 +595,6 @@ return MESSAGE("EPEMessageRemoteHeld"); case MEngineMonitor::EPEMessageRemoteResumed: return MESSAGE("EPEMessageRemoteResumed"); - case MEngineMonitor::EPEMessageShowVersion: - return MESSAGE("EPEMessageShowVersion"); case MEngineMonitor::EPEMessageTempClirSuppressUnsuccessful: return MESSAGE("EPEMessageTempClirSuppressUnsuccessful"); case MEngineMonitor::EPEMessageTempClirActivationUnsuccessful: @@ -634,8 +619,6 @@ return MESSAGE("EPEMessageActivateRfsDeep"); case MEngineMonitor::EPEMessageActivateRfsNormal: return MESSAGE("EPEMessageActivateRfsNormal"); - case MEngineMonitor::EPEMessageActivateWarrantyMode: - return MESSAGE("EPEMessageActivateWarrantyMode"); case MEngineMonitor::EPEMessageIssuedSSRequest: return MESSAGE("EPEMessageIssuedSSRequest"); case MEngineMonitor::EPEMessageIssuingSSRequest: @@ -968,6 +951,7 @@ "PE cpephonemodel::sendmessage > iEngineMonitor.HandleError: messageName=%s, CallId=%d", messageName2.Ptr( ), aCallId ); #endif + SetCallError( aCallId ); TPEErrorInfo errorInfo; errorInfo.iErrorCode = errorCode; errorInfo.iCallId = aCallId; @@ -980,9 +964,10 @@ KTAERROR, "PE cpephonemodel::sendmessage > iEngineMonitor.HandleError: messageName=EPEMessageCallHandlingError, CallId=%d" , aCallId ); - TPEErrorInfo errorInfo = iEngineInfo->ErrorInfo(); - errorInfo.iCallId = aCallId; - errorInfo.iErrorType = EPECcp; + SetCallError( aCallId ); + TPEErrorInfo errorInfo = iEngineInfo->ErrorInfo(); + errorInfo.iCallId = aCallId; + errorInfo.iErrorType = EPECcp; iEngineMonitor.HandleError( errorInfo ); } else if ( message == MEngineMonitor::EPEMessageServiceHandlingError ) @@ -990,6 +975,7 @@ TEFLOGSTRING( KTAERROR, "PE cpephonemodel::sendmessage > iEngineMonitor.HandleError: messageName=EPEMessageServiceHandlingError" ); + SetCallError( aCallId ); TPEErrorInfo errorInfo = iEngineInfo->ErrorInfo(); errorInfo.iCallId = aCallId; errorInfo.iErrorType = EPECch; @@ -1024,12 +1010,6 @@ static_cast( message ), aCallId ); } - - if( iParserRecognizer ) - { - iParserRecognizer->sendMessage( aMessage, aCallId ); - } - }// SendMessage( 2 params ) // ----------------------------------------------------------------------------- @@ -1168,10 +1148,6 @@ errorCode = iMessageHandler->HandleDtmfSent(); break; - case MEngineMonitor::EPEMessageActivateWarrantyMode: - errorCode = iMessageHandler->HandleGetLifeTimerData( ); - break; - case MEngineMonitor::EPEMessageStartATDialing: errorCode = iMessageHandler->HandleDialCall( EFalse ); iMessageHandler->HandleATDialingStarted( errorCode ? EFalse : ETrue ); @@ -1214,7 +1190,7 @@ break; case MEngineMonitor::EPEMessageRemotePartyInfoChanged: - iMessageHandler->HandleRemotePartyInfoChanged( ); + iMessageHandler->HandleRemotePartyInfoChanged( aCallId ); break; default: @@ -1236,24 +1212,41 @@ TEFLOGSTRING( KTAOBJECT, "CPEPhoneModel::DelayMessageSending" ); TBool sendingDelayed( EFalse ); - - if ( MEngineMonitor::EPEMessageInitiatedEmergencyCall == aMessage ) + + switch ( aMessage ) { - iEngineInfo->SetIsSwitchToOperationOngoing( EFalse ); - if ( iCallStackCutter ) + case MEngineMonitor::EPEMessageInitiatedEmergencyCall: { - delete iCallStackCutter; - iCallStackCutter = NULL; + iEngineInfo->SetIsSwitchToOperationOngoing( EFalse ); + sendingDelayed = ETrue; + } + break; + case MEngineMonitor::EPEMessageColpNumberAvailable: + { + sendingDelayed = ETrue; } - TRAPD( err, iCallStackCutter = CIdle::NewL( CActive::EPriorityHigh ) ); - if ( !err ) - { - iCallBackMessage = aMessage; - iCallBackCallId = aCallId; - iCallStackCutter->Start( TCallBack( CallBackMessageSend , this ) ); - } - sendingDelayed = ETrue; + break; + default: + // Other messages cause no action. + break; } + + if ( sendingDelayed ) + { + if ( iCallStackCutter ) + { + delete iCallStackCutter; + iCallStackCutter = NULL; + } + TRAPD( err, iCallStackCutter = CIdle::NewL( CActive::EPriorityHigh ) ); + if ( !err ) + { + iCallBackMessage = aMessage; + iCallBackCallId = aCallId; + iCallStackCutter->Start( TCallBack( CallBackMessageSend , this ) ); + } + } + return sendingDelayed; } @@ -1417,20 +1410,11 @@ TEFLOGSTRING( KTAOBJECT, "CPEPhoneModel::StepL: 16.1" ); __ASSERT_DEBUG( iMessageHandler, Panic( EPEPanicNullPointer ) ); __ASSERT_DEBUG( iEngineInfo, Panic( EPEPanicNullPointer ) ); - iPhoneServices = new PhoneServices( - *iMessageHandler, *iEngineInfo, *iMessageHandler); + iPhoneServices = new PhoneServices(*iMessageHandler, *iEngineInfo); TEFLOGSTRING( KTAOBJECT, "CPEPhoneModel::StepL: 16.2" ); break; } - case CPEPhoneModel::EPEParserRecognizer: - { - TEFLOGSTRING( KTAOBJECT, "CPEPhoneModel::StepL: 17.1" ); - iParserRecognizer = new ParserRecognizer; - TEFLOGSTRING( KTAOBJECT, "CPEPhoneModel::StepL: 17.2" ); - break; - } - case CPEPhoneModel::EPENetworkHandling: { TEFLOGSTRING( KTAOBJECT, "CPEPhoneModel::StepL: 18.1" ); @@ -1493,9 +1477,6 @@ TEFLOGSTRING( KTAOBJECT, "PE CPEPhoneModel::ConstructContactHandlingPhaseTwo, complete" ); SendMessage( MEngineMonitor::EPEMessagePEConstructionTwoPhaseReady ); - // not need any more - delete iIdleStatusMonitor; - iIdleStatusMonitor = NULL; } // ----------------------------------------------------------------------------- @@ -1514,4 +1495,23 @@ return KErrNone; } +// ----------------------------------------------------------------------------- +// SetCallError +// ----------------------------------------------------------------------------- +// +void CPEPhoneModel::SetCallError( TInt aCallId ) + { + TInt callError = KErrNone; + if ( iCallHandling ) + { + TInt err = iCallHandling->GetCallInfo( *iCallInfo, aCallId ); + + if ( err == KErrNone && ( iCallInfo->iExitCode & 0xFFFF0000 ) ) + { + callError = ( iCallInfo->iExitCode >> KTimesToSplitValue ); + //Set protocol spesific error code to TPEErrorInfo + EngineInfo()->SetProtocolError( callError ); + } + } + } // End of File diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phonemodel/src/cpeprofilesettingmonitor.cpp --- a/phoneengine/phonemodel/src/cpeprofilesettingmonitor.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/phonemodel/src/cpeprofilesettingmonitor.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -23,6 +23,7 @@ #include #include #include +#include ///////////////////////////////////////////////////////////////////////// @@ -63,7 +64,8 @@ // CPEProfileSettingMonitor::CPEProfileSettingMonitor( MPEPhoneModelInternal& aModel - ) : iModel( aModel ) + ) : CPECenRepMonitor( KProEngSilenceMode ), + iModel( aModel ) { } @@ -78,7 +80,8 @@ iProfileEngine = CreateProfileEngineL(); // Retrieve current profile settings - GetProfileSettingsL(); + + BaseConstructL( KCRUidProfileEngine ); iModel.SendMessage( MEngineMonitor::EPEMessageProfileChanged ); @@ -121,8 +124,18 @@ const TProfileToneSettings& toneSettings = activeTones.ToneSettings(); // Get ringing type and volume and keypad volume - TProfileRingingType ringingType = toneSettings.iRingingType; - iModel.DataStore()->SetRingingType( static_cast( ringingType ) ); + TProfileRingingType ringingType = toneSettings.iRingingType; + + TInt silentVolume(0); + if ( KErrNone == Get(silentVolume) && silentVolume ) + { + iModel.DataStore()->SetRingingType(EProfileRingingTypeSilent); + } + else + { + iModel.DataStore()->SetRingingType( static_cast( ringingType ) ); + } + iModel.DataStore()->SetRingingVolume( toneSettings.iRingingVolume ); iModel.DataStore()->SetTextToSpeech( toneSettings.iTextToSpeech ); @@ -150,6 +163,19 @@ } // ----------------------------------------------------------------------------- +// CPEProfileSettingMonitor::UpdateL +// Callback function - implements virtual function from CPECenRepMonitor +// This is called whenever cr settings change +// ----------------------------------------------------------------------------- +// +void CPEProfileSettingMonitor::UpdateL() + { + TEFLOGSTRING( KTAINT, "PE CPEProfileSettingMonitor::UpdateL" ); + GetProfileSettingsL(); + iModel.SendMessage( MEngineMonitor::EPEMessageProfileChanged ); + } + +// ----------------------------------------------------------------------------- // CPEProfileSettingMonitor::HandleActiveProfileEventL // Callback function - implements virtual function from MProfileChangeObserver // This is called whenever profiles settings change diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phoneservices/bwins/phoneservicesu.def --- a/phoneengine/phoneservices/bwins/phoneservicesu.def Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/phoneservices/bwins/phoneservicesu.def Wed Jun 23 18:12:20 2010 +0300 @@ -1,8 +1,8 @@ EXPORTS ??_EPhoneServices@@UAE@I@Z @ 1 NONAME ; PhoneServices::~PhoneServices(unsigned int) ?tr@PhoneServices@@SA?AVQString@@PBD0H@Z @ 2 NONAME ; class QString PhoneServices::tr(char const *, char const *, int) - ??1PhoneServices@@UAE@XZ @ 3 NONAME ; PhoneServices::~PhoneServices(void) - ??0PhoneServices@@QAE@AAVMPECallControlIF@@AAVMPECallSettersIF@@AAVMPEKeySequenceRecognitionIF@@PAVQObject@@@Z @ 4 NONAME ; PhoneServices::PhoneServices(class MPECallControlIF &, class MPECallSettersIF &, class MPEKeySequenceRecognitionIF &, class QObject *) + ??0PhoneServices@@QAE@AAVMPECallControlIF@@AAVMPECallSettersIF@@PAVQObject@@@Z @ 3 NONAME ; PhoneServices::PhoneServices(class MPECallControlIF &, class MPECallSettersIF &, class QObject *) + ??1PhoneServices@@UAE@XZ @ 4 NONAME ; PhoneServices::~PhoneServices(void) ?trUtf8@PhoneServices@@SA?AVQString@@PBD0H@Z @ 5 NONAME ; class QString PhoneServices::trUtf8(char const *, char const *, int) ?metaObject@PhoneServices@@UBEPBUQMetaObject@@XZ @ 6 NONAME ; struct QMetaObject const * PhoneServices::metaObject(void) const ?trUtf8@PhoneServices@@SA?AVQString@@PBD0@Z @ 7 NONAME ; class QString PhoneServices::trUtf8(char const *, char const *) diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phoneservices/eabi/phoneservicesu.def --- a/phoneengine/phoneservices/eabi/phoneservicesu.def Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/phoneservices/eabi/phoneservicesu.def Wed Jun 23 18:12:20 2010 +0300 @@ -3,8 +3,8 @@ _ZN13PhoneServices11qt_metacastEPKc @ 2 NONAME _ZN13PhoneServices16staticMetaObjectE @ 3 NONAME DATA 16 _ZN13PhoneServices19getStaticMetaObjectEv @ 4 NONAME - _ZN13PhoneServicesC1ER16MPECallControlIFR16MPECallSettersIFR27MPEKeySequenceRecognitionIFP7QObject @ 5 NONAME - _ZN13PhoneServicesC2ER16MPECallControlIFR16MPECallSettersIFR27MPEKeySequenceRecognitionIFP7QObject @ 6 NONAME + _ZN13PhoneServicesC1ER16MPECallControlIFR16MPECallSettersIFP7QObject @ 5 NONAME + _ZN13PhoneServicesC2ER16MPECallControlIFR16MPECallSettersIFP7QObject @ 6 NONAME _ZN13PhoneServicesD0Ev @ 7 NONAME _ZN13PhoneServicesD1Ev @ 8 NONAME _ZN13PhoneServicesD2Ev @ 9 NONAME diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phoneservices/inc/keysequencerecognitionservice.h --- a/phoneengine/phoneservices/inc/keysequencerecognitionservice.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,69 +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: Provides key sequence recognition and execution services. -* -*/ - -#ifndef KEYSEQUENCERECOGNITIONSERVICE_H -#define KEYSEQUENCERECOGNITIONSERVICE_H - -#include -#include -#include - -class MPEKeySequenceRecognitionIF; - -class KeySequenceRecognitionService : public XQServiceProvider -{ - Q_OBJECT - -public: - - KeySequenceRecognitionService( - MPEKeySequenceRecognitionIF &keySequenceRecognizer, - QObject *parent = 0); - - ~KeySequenceRecognitionService(); - -public slots: - - /*! - \fn executeKeySequence(const QString& keySequence) - - Client can use this method to execute key sequence recognition. - Key sequence may contain for example product codes etc. that - may cause lower layers to do any specific things. - - If sequence isn't recognized this method doesn't do anything. - If sequence is recognized then task related to the code is executed. - \param keySequence Key sequence to execute. - \return True if key sequence was processed, false otherwise. - - Usage example: - XQServiceRequest request( - "com.nokia.symbian.IDtmfPlay", - "executeKeySequence(QString)", - true); - request << "*#0000#"; - QVariant keySequenceProcessed; - bool requestOk = request.send(keySequenceProcessed); - */ - bool executeKeySequence(const QString &keySequence); - -private: - - MPEKeySequenceRecognitionIF &m_keySequenceRecognizer; -}; - -#endif // KEYSEQUENCERECOGNITIONSERVICE_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phoneservices/inc/keysequencerecognitionservicedepricated.h --- a/phoneengine/phoneservices/inc/keysequencerecognitionservicedepricated.h Fri Jun 04 10:19:18 2010 +0100 +++ /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: Provides key sequence recognition and execution services. -* THIS IS DEPRICATED API - DO NOT USE! -* (use KeySequenceRecognitionService instead) -* -*/ - -#ifndef KEYSEQUENCERECOGNITIONSERVICEDEPRICATED_H -#define KEYSEQUENCERECOGNITIONSERVICEDEPRICATED_H - -#include -#include -#include - -class MPEKeySequenceRecognitionIF; - -class KeySequenceRecognitionServiceDepricated : public XQServiceProvider -{ - Q_OBJECT - -public: - - KeySequenceRecognitionServiceDepricated( - MPEKeySequenceRecognitionIF &keySequenceRecognizer, - QObject *parent = 0); - - ~KeySequenceRecognitionServiceDepricated(); - -public slots: - - /*! - \fn executeKeySequence(const QString& keySequence) - - Client can use this method to execute key sequence recognition. - Key sequence may contain for example product codes etc. that - may cause lower layers to do any specific things. - - If sequence isn't recognized this method doesn't do anything. - If sequence is recognized then task related to the code is executed. - \param keySequence Key sequence to execute. - \return True if key sequence was processed, false otherwise. - - Usage example: - XQServiceRequest request( - "com.nokia.services.telephony", - "executeKeySequence(QString)", - true); - request << "*#0000#"; - QVariant keySequenceProcessed; - bool requestOk = request.send(keySequenceProcessed); - */ - bool executeKeySequence(const QString &keySequence); - -private: - - MPEKeySequenceRecognitionIF &m_keySequenceRecognizer; -}; - -#endif // KEYSEQUENCERECOGNITIONSERVICEDEPRICATED_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phoneservices/inc/phoneservices.h --- a/phoneengine/phoneservices/inc/phoneservices.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/phoneservices/inc/phoneservices.h Wed Jun 23 18:12:20 2010 +0300 @@ -24,13 +24,10 @@ class DialService; class DTMFService; -class MPEKeySequenceRecognitionIF; -class KeySequenceRecognitionService; // Depricated APIs class DialServiceDepricated; class DTMFServiceDepricated; -class KeySequenceRecognitionServiceDepricated; #ifdef BUILD_PHONESERVICES #define PHONESERVICES_EXPORT Q_DECL_EXPORT @@ -45,19 +42,16 @@ PhoneServices( MPECallControlIF &call, MPECallSettersIF ¶meters, - MPEKeySequenceRecognitionIF &keySequenceRecognition, QObject *parent = 0); ~PhoneServices(); private: QScopedPointer dialService; QScopedPointer dtmfService; - QScopedPointer m_keySequenceRecognitionService; // Depricated QScopedPointer dialServiceDepricated; QScopedPointer dtmfServiceDepricated; - QScopedPointer m_keySequenceRecognitionServiceDepricated; }; #endif // PHONESERVICES_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phoneservices/phoneservices.pri --- a/phoneengine/phoneservices/phoneservices.pri Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/phoneservices/phoneservices.pri Wed Jun 23 18:12:20 2010 +0300 @@ -18,19 +18,15 @@ ./src/phoneservices.cpp \ ./src/dialservice.cpp \ ./src/dtmfservice.cpp \ - ./src/keysequencerecognitionservice.cpp \ ./src/dialservicedepricated.cpp \ - ./src/dtmfservicedepricated.cpp \ - ./src/keysequencerecognitionservicedepricated.cpp + ./src/dtmfservicedepricated.cpp HEADERS=\ ./inc/phoneservices.h \ ./inc/dialservice.h \ ./inc/dtmfservice.h \ - ./inc/keysequencerecognitionservice.h \ ./inc/dialservicedepricated.h \ - ./inc/dtmfservicedepricated.h \ - ./inc/keysequencerecognitionservicedepricated.h + ./inc/dtmfservicedepricated.h PHONESERVICES_API_HEADERS=\ ./inc/phoneservices.h diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phoneservices/src/keysequencerecognitionservice.cpp --- a/phoneengine/phoneservices/src/keysequencerecognitionservice.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /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: Provides key sequence recognition and execution services. -* -*/ - -#include -#include -#include -#include "keysequencerecognitionservice.h" -#include "mpekeysequencerecognitionif.h" - -/*! - KeySequenceRecognitionService::KeySequenceRecognitionService. - */ -KeySequenceRecognitionService::KeySequenceRecognitionService( - MPEKeySequenceRecognitionIF &keySequenceRecognizer, - QObject* parent) - : - XQServiceProvider( - QLatin1String("com.nokia.symbian.IDtmfPlay"), parent), - m_keySequenceRecognizer(keySequenceRecognizer) -{ - publishAll(); -} - - -/*! - KeySequenceRecognitionService::~KeySequenceRecognitionService. - */ -KeySequenceRecognitionService::~KeySequenceRecognitionService() -{ -} - - -/*! - KeySequenceRecognitionService::executeKeySequence. - */ -bool KeySequenceRecognitionService::executeKeySequence( - const QString &keySequence) -{ - TPtrC16 keySequencePtr( - reinterpret_cast(keySequence.utf16())); - bool sequenceProcessed = false; - TRAPD(leaveCode, sequenceProcessed = static_cast( - m_keySequenceRecognizer.ExecuteKeySequenceL(keySequencePtr))); - sequenceProcessed = (KErrNone == leaveCode) ? sequenceProcessed : false; - return sequenceProcessed; -} diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phoneservices/src/keysequencerecognitionservicedepricated.cpp --- a/phoneengine/phoneservices/src/keysequencerecognitionservicedepricated.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /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: Provides key sequence recognition and execution services. -* -*/ - -#include -#include -#include -#include "keysequencerecognitionservicedepricated.h" -#include "mpekeysequencerecognitionif.h" - -/*! - KeySequenceRecognitionServiceDepricated::KeySequenceRecognitionServiceDepricated. - */ -KeySequenceRecognitionServiceDepricated::KeySequenceRecognitionServiceDepricated( - MPEKeySequenceRecognitionIF &keySequenceRecognizer, - QObject* parent) - : - XQServiceProvider( - QLatin1String("com.nokia.services.telephony"), parent), - m_keySequenceRecognizer(keySequenceRecognizer) -{ - publishAll(); -} - - -/*! - KeySequenceRecognitionServiceDepricated::~KeySequenceRecognitionServiceDepricated. - */ -KeySequenceRecognitionServiceDepricated::~KeySequenceRecognitionServiceDepricated() -{ -} - - -/*! - KeySequenceRecognitionServiceDepricated::executeKeySequence. - */ -bool KeySequenceRecognitionServiceDepricated::executeKeySequence( - const QString &keySequence) -{ - TPtrC16 keySequencePtr( - reinterpret_cast(keySequence.utf16())); - bool sequenceProcessed = false; - TRAPD(leaveCode, sequenceProcessed = static_cast( - m_keySequenceRecognizer.ExecuteKeySequenceL(keySequencePtr))); - sequenceProcessed = (KErrNone == leaveCode) ? sequenceProcessed : false; - return sequenceProcessed; -} diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phoneservices/src/phoneservices.cpp --- a/phoneengine/phoneservices/src/phoneservices.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/phoneservices/src/phoneservices.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -18,41 +18,31 @@ #include "phoneservices.h" #include "dialservice.h" #include "dtmfservice.h" -#include "mpekeysequencerecognitionif.h" -#include "keysequencerecognitionservice.h" #include "qtphonelog.h" // Depricated APIs #include "dialservicedepricated.h" #include "dtmfservicedepricated.h" -#include "keysequencerecognitionservicedepricated.h" PhoneServices::PhoneServices( MPECallControlIF &call, MPECallSettersIF ¶meters, - MPEKeySequenceRecognitionIF &keySequenceRecognition, QObject* parent) : QObject(parent), dialService(0), - dtmfService(0), - m_keySequenceRecognitionService(0) + dtmfService(0) // Depricated , dialServiceDepricated(0) , dtmfServiceDepricated(0) - , m_keySequenceRecognitionServiceDepricated(0) { PHONE_DEBUG("PhoneServices::PhoneServices"); dialService.reset(new DialService(call, parameters)); dtmfService.reset(new DTMFService(call, parameters)); - m_keySequenceRecognitionService.reset( - new KeySequenceRecognitionService(keySequenceRecognition)); // Depricated dialServiceDepricated.reset(new DialServiceDepricated(call, parameters)); dtmfServiceDepricated.reset(new DTMFServiceDepricated(call, parameters)); - m_keySequenceRecognitionServiceDepricated.reset( - new KeySequenceRecognitionServiceDepricated(keySequenceRecognition)); } PhoneServices::~PhoneServices() diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phoneservices/tsrc/runtests.bat --- a/phoneengine/phoneservices/tsrc/runtests.bat Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/phoneservices/tsrc/runtests.bat Wed Jun 23 18:12:20 2010 +0300 @@ -27,7 +27,3 @@ del \epoc32\winscw\c\private\EEE39B2F\ut_dtmfservice.log \epoc32\release\winscw\udeb\ut_dtmfservice.exe -o ut_dtmfservice.log type \epoc32\winscw\c\private\EEE39B2F\ut_dtmfservice.log - -del \epoc32\winscw\c\private\E31F4ECF\ut_keysequencerecognitionservice.log -\epoc32\release\winscw\udeb\ut_keysequencerecognitionservice.exe -o ut_keysequencerecognitionservice.log -type \epoc32\winscw\c\private\E31F4ECF\ut_keysequencerecognitionservice.log diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phoneservices/tsrc/unit.pro --- a/phoneengine/phoneservices/tsrc/unit.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/phoneservices/tsrc/unit.pro Wed Jun 23 18:12:20 2010 +0300 @@ -19,4 +19,3 @@ SUBDIRS += ut_phoneservices SUBDIRS += ut_dialservice SUBDIRS += ut_dtmfservice -SUBDIRS += ut_keysequencerecognitionservice diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phoneservices/tsrc/ut_keysequencerecognitionservice/unit_tests.cpp --- a/phoneengine/phoneservices/tsrc/ut_keysequencerecognitionservice/unit_tests.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,113 +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: Unit tests for DialService. -* -*/ - -#include - -#include "mpekeysequencerecognitionif.h" -#include "keysequencerecognitionservice.h" - -class UT_KeySequenceRecognitionService - : - public QObject, public MPEKeySequenceRecognitionIF -{ - Q_OBJECT - -public: - UT_KeySequenceRecognitionService(); - virtual ~UT_KeySequenceRecognitionService(); - -public: - TBool ExecuteKeySequenceL(const TDesC16& aSequence); - -private slots: - void init(); - void cleanup(); - void t_executeKeySequence(); - void t_notRecognizedKeySequence(); - void t_leaveDuringExecuteKeySequence(); - -private: - KeySequenceRecognitionService *m_RecognitionService; - TBool m_keySequenceExecutionResult; - TPtrC16 m_keySequencePtr; - int m_leaveSimulationCode; -}; - -UT_KeySequenceRecognitionService::UT_KeySequenceRecognitionService() - : - m_RecognitionService(NULL), - m_keySequenceExecutionResult(ETrue), - m_leaveSimulationCode(KErrNone) -{ -} - -UT_KeySequenceRecognitionService::~UT_KeySequenceRecognitionService() -{ - delete m_RecognitionService; -} - -TBool UT_KeySequenceRecognitionService::ExecuteKeySequenceL( - const TDesC16& aSequence) -{ - Q_UNUSED(aSequence) - User::LeaveIfError(m_leaveSimulationCode); - - m_keySequencePtr.Set(aSequence.Ptr()); - return m_keySequenceExecutionResult; -} - -void UT_KeySequenceRecognitionService::init() -{ - m_RecognitionService = new KeySequenceRecognitionService(*this); - m_keySequenceExecutionResult = ETrue; - m_keySequencePtr.Set(NULL, 0); - m_leaveSimulationCode = KErrNone; -} - -void UT_KeySequenceRecognitionService::cleanup() -{ - delete m_RecognitionService; - m_RecognitionService = NULL; -} - -void UT_KeySequenceRecognitionService::t_executeKeySequence() -{ - QString sequence("*#06#"); - bool result = m_RecognitionService->executeKeySequence(sequence); - QCOMPARE(result, true); - QVERIFY( - m_keySequencePtr == TPtrC16(reinterpret_cast(sequence.utf16()))); -} - -void UT_KeySequenceRecognitionService::t_notRecognizedKeySequence() -{ - m_keySequenceExecutionResult = EFalse; - QString sequence("*#abc#"); - bool result = m_RecognitionService->executeKeySequence(sequence); - QCOMPARE(result, false); -} - -void UT_KeySequenceRecognitionService::t_leaveDuringExecuteKeySequence() -{ - m_leaveSimulationCode = KErrArgument; - QString sequence("abc"); - bool result = m_RecognitionService->executeKeySequence(sequence); - QCOMPARE(result, false); -} - -QTEST_MAIN(UT_KeySequenceRecognitionService) -#include "unit_tests.moc" diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phoneservices/tsrc/ut_keysequencerecognitionservice/ut_keysequencerecognitionservice.pro --- a/phoneengine/phoneservices/tsrc/ut_keysequencerecognitionservice/ut_keysequencerecognitionservice.pro Fri Jun 04 10:19:18 2010 +0100 +++ /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: -# -# - -TEMPLATE = app -TARGET = -TARGET.UID3 = 0xE31F4ECF -DEPENDPATH += . -INCLUDEPATH += . -CONFIG += qtestlib - -QT -= gui - -symbian { - - INCLUDEPATH += \epoc32\include\platform \ - \epoc32\include\platform\mw \ - \epoc32\include\mw \ - ../../../../inc - - LIBS += -lxqservice \ - -lxqserviceutil - - TARGET.CAPABILITY = ALL -TCB -} - -# Input -HEADERS += ../../inc/keysequencerecognitionservice.h -SOURCES += ../../src/keysequencerecognitionservice.cpp -SOURCES += unit_tests.cpp diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phoneservices/tsrc/ut_phoneservices/unit_tests.cpp --- a/phoneengine/phoneservices/tsrc/ut_phoneservices/unit_tests.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/phoneservices/tsrc/ut_phoneservices/unit_tests.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -21,15 +21,11 @@ #include "phoneservices.h" #include "dialservice.h" #include "dtmfservice.h" -#include "keysequencerecognitionservice.h" -#include "mpekeysequencerecognitionif.h" bool m_dialServiceConstructed; bool m_dtmfServiceConstructed; -bool g_keySequenceServiceConstructed; MPECallControlIF* m_dialServiceCallPointer; MPECallSettersIF* m_dialServiceParameterPointer; -MPEKeySequenceRecognitionIF* g_keySequenceRecognizerParameterPointer; MPECallControlIF* m_dtmfServiceCallPointer; MPECallSettersIF* m_dtmfServiceParameterPointer; @@ -37,17 +33,13 @@ : public QObject, public MPECallControlIF, - public MPECallSettersIF, - public MPEKeySequenceRecognitionIF + public MPECallSettersIF { Q_OBJECT public: TestPhoneServices(); virtual ~TestPhoneServices(); -public: - TBool ExecuteKeySequenceL(const TDesC16& aSequence); - public slots: void initTestCase (); void cleanupTestCase (); @@ -165,29 +157,6 @@ { } -KeySequenceRecognitionService::KeySequenceRecognitionService( - MPEKeySequenceRecognitionIF &keySequenceRecognizer, - QObject* parent) - : - XQServiceProvider( - QLatin1String("com.nokia.symbian.IDtmfPlay"), parent), - m_keySequenceRecognizer(keySequenceRecognizer) -{ - g_keySequenceServiceConstructed = true; - g_keySequenceRecognizerParameterPointer = &keySequenceRecognizer; -} - -bool KeySequenceRecognitionService::executeKeySequence( - const QString &keySequence) -{ - Q_UNUSED(keySequence); - return true; -} - -KeySequenceRecognitionService::~KeySequenceRecognitionService() -{ -} - TestPhoneServices::TestPhoneServices () { } @@ -218,9 +187,8 @@ keyValue = -1; m_dialServiceConstructed = false; m_dtmfServiceConstructed = false; - g_keySequenceServiceConstructed = false; - m_phoneServices = new PhoneServices (*this, *this, *this, this); + m_phoneServices = new PhoneServices(*this, *this, this); QVERIFY(m_dialServiceConstructed == true); QVERIFY(m_dialServiceCallPointer == this); @@ -229,9 +197,6 @@ QVERIFY(m_dtmfServiceConstructed == true); QVERIFY(m_dtmfServiceCallPointer == this); QVERIFY(m_dtmfServiceParameterPointer == this); - - QVERIFY(g_keySequenceServiceConstructed == true); - QVERIFY(g_keySequenceRecognizerParameterPointer == this); } void TestPhoneServices::cleanup () @@ -239,12 +204,6 @@ delete m_phoneServices; } -TBool TestPhoneServices::ExecuteKeySequenceL(const TDesC16& aSequence) -{ - Q_UNUSED(aSequence) - return ETrue; -} - void TestPhoneServices::SetKeyCode( const TChar& aKeyCode ) { m_setKeyCodeCalled = true; diff -r ba76fc04e6c2 -r 6b911d05207e phoneengine/phoneservices/tsrc/ut_phoneservices/ut_phoneservices.pro --- a/phoneengine/phoneservices/tsrc/ut_phoneservices/ut_phoneservices.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneengine/phoneservices/tsrc/ut_phoneservices/ut_phoneservices.pro Wed Jun 23 18:12:20 2010 +0300 @@ -45,12 +45,9 @@ HEADERS += ../../inc/phoneservices.h HEADERS += ../../inc/dialservice.h HEADERS += ../../inc/dtmfservice.h -HEADERS += ../../inc/keysequencerecognitionservice.h HEADERS += ../../inc/dialservicedepricated.h HEADERS += ../../inc/dtmfservicedepricated.h -HEADERS += ../../inc/keysequencerecognitionservicedepricated.h SOURCES += ../../src/phoneservices.cpp SOURCES += ../../src/dialservicedepricated.cpp SOURCES += ../../src/dtmfservicedepricated.cpp -SOURCES += ../../src/keysequencerecognitionservicedepricated.cpp SOURCES += unit_tests.cpp diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/inc/cspcall.h --- a/phoneplugins/csplugin/inc/cspcall.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneplugins/csplugin/inc/cspcall.h Wed Jun 23 18:12:20 2010 +0300 @@ -499,11 +499,13 @@ /** * From MCSPCallObserver - * Notify that remote party info has changed. - * @param aRemoteParty new remote party information + * Notify that remote party info has changed. + * @param aRemotePartyName new remote party name + * @param aRemotePartyNumber new remote party number */ - virtual void NotifyRemotePartyInfoChanged( - const TDesC& aRemoteParty); + virtual void NotifyRemotePartyInfoChanged( + const TDesC& aRemotePartyName, + const TDesC& aRemotePartyNumber ); /** * Open call handle. @@ -588,8 +590,14 @@ * @return system wide error code */ int UpdateCallState(); + + /** + * Sends a remote party info changed notification + * if the remote party number has changed. + */ + void NotifyRemotePartyNumberChanged(); - private: + private: enum TCSPCallAudioStatus { ECSPCallAudioStatusInactive, diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/inc/mcspcallobserver.h --- a/phoneplugins/csplugin/inc/mcspcallobserver.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneplugins/csplugin/inc/mcspcallobserver.h Wed Jun 23 18:12:20 2010 +0300 @@ -90,11 +90,14 @@ /** * Notify that remote party info has changed. - * @param aRemoteParty new remote party information + * @param aRemotePartyName new remote party name + * @param aRemotePartyNumber new remote party number * */ virtual void NotifyRemotePartyInfoChanged( - const TDesC& aRemoteParty) = 0; + const TDesC& aRemotePartyName, + const TDesC& aRemotePartyNumber + ) = 0; }; diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/src/cspcall.cpp --- a/phoneplugins/csplugin/src/cspcall.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneplugins/csplugin/src/cspcall.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -276,6 +276,10 @@ iDontReportTerm = ETrue; NotifyCallStateChanged( MCCPCallObserver::ECCPStateConnected ); + + // Agreement with TSY is that the + // COLP number is available in connected state. + NotifyRemotePartyNumberChanged(); break; } // Indicates that call is disconnecting. (Same as RCall::HangingUp) @@ -1374,6 +1378,34 @@ } // --------------------------------------------------------------------------- +// CSPCall::NotifyRemotePartyNumberChanged +// +// --------------------------------------------------------------------------- +// +void CSPCall::NotifyRemotePartyNumberChanged() + { + CSPLOGSTRING(CSPINT, "CSPCall::NotifyRemotePartyNumberChanged <"); + // If COLP number is different from original dialled number + // it is available in connected state of a MO call. + // TSY does not send notification so number must be fetched. + if ( IsMobileOriginated() ) + { + RMobileCall::TMobileCallInfoV3 callInfo; + RMobileCall::TMobileCallInfoV3Pckg callInfoPckg( callInfo ); + + GetMobileCallInfo( callInfoPckg ); + callInfo = callInfoPckg(); + + if ( callInfo.iRemoteParty.iRemoteNumber.iTelNumber.Length() ) + { + NotifyRemotePartyInfoChanged( KNullDesC(), + callInfo.iRemoteParty.iRemoteNumber.iTelNumber); + } + } + } + + +// --------------------------------------------------------------------------- // CSPCall::CreateCallHandlersL // Create call handlers for call related requests and call monitoring // --------------------------------------------------------------------------- @@ -1801,10 +1833,20 @@ // CSPCall::NotifyRemotePartyInfoChanged // --------------------------------------------------------------------------- // -void CSPCall::NotifyRemotePartyInfoChanged(const TDesC& aRemoteParty) +void CSPCall::NotifyRemotePartyInfoChanged( const TDesC& aRemotePartyName, + const TDesC& aRemotePartyNumber ) { CSPLOGSTRING(CSPREQIN, "CSPCall::NotifyRemotePartyInfoChanged"); - iRemotePartyName = aRemoteParty; + if ( aRemotePartyName.Length() ) + { + iRemotePartyName = aRemotePartyName; + } + + if ( aRemotePartyNumber.Length() ) + { + iRemotePartyNumber = aRemotePartyNumber; + } + NotifyCallEventOccurred( MCCPCallObserver::ECCPNotifyRemotePartyInfoChange ); } diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/src/cspcallinfomonitor.cpp --- a/phoneplugins/csplugin/src/cspcallinfomonitor.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneplugins/csplugin/src/cspcallinfomonitor.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -102,7 +102,8 @@ if ( idStatus == RMobileCall::ERemoteIdentityAvailable) { iObserver.NotifyRemotePartyInfoChanged( - iRemotePartyInfo.iCallingName); + iRemotePartyInfo.iCallingName, + KNullDesC()); } else { diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/automaticanswertest.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/automaticanswertest.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,72 @@ + +#include +#include +#include +#include +#include +#include "etelincomingcallmonitor.h" +#include "automaticanswertest.h" + + +automaticanswertest::automaticanswertest(QGraphicsItem *parent) + : HbView(parent), m_incomingVoiceCallMonitor(NULL) +{ + qDebug () << "automaticanswertest::automaticanswertest<<"; + setTitle(tr("automaticanswer")); + + // Add menu item for automatic answer + /* connect( + menu()->addAction("start automatic answer"), SIGNAL(triggered()), + this, SLOT(answer()));*/ + + createContent(); + qDebug () << "automaticanswertest::automaticanswertest>>"; +} + +automaticanswertest::~automaticanswertest() +{ + delete m_incomingVoiceCallMonitor; +} + +void automaticanswertest::createContent() +{ + qDebug () << "automaticanswertest::createContent<<"; + QGraphicsLinearLayout *mainLayout = new QGraphicsLinearLayout(Qt::Vertical); + + answering = new HbPushButton(tr("start autom. answer"), this); + connect(answering, SIGNAL(clicked()), this, SLOT(answer())); + mainLayout->addItem(answering); + stopanswering = new HbPushButton(tr("stop autom. answer"), this); + connect(stopanswering, SIGNAL(clicked()), this, SLOT(stopanswer())); + mainLayout->addItem(stopanswering); + stopanswering->setEnabled(false); + setLayout(mainLayout); +} + +void automaticanswertest::answer() + { + qDebug () << "automaticanswertest::answer()<<"; + if (m_incomingVoiceCallMonitor == NULL) + { + // Create and start incoming voice call monitor for primary line + m_incomingVoiceCallMonitor = new CEtelIncomingCallMonitor(); + m_incomingVoiceCallMonitor->StartMonitoring(); + qDebug () << "automaticanswertest::answer()__etelmonitor__started"; + } + else + { + m_incomingVoiceCallMonitor->StartMonitoring(); + } + stopanswering->setEnabled(true); + answering->setEnabled(false); + } +void automaticanswertest::stopanswer() + { + if (m_incomingVoiceCallMonitor) + { + m_incomingVoiceCallMonitor->Cancel(); + } + stopanswering->setEnabled(false); + answering->setEnabled(true); + } + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/automaticanswertest.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/automaticanswertest.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,34 @@ + + +#ifndef AUTOMATICANSWERTEST_H +#define AUTOMATICANSWERTEST_H + + +#include +#include + +class CEtelIncomingCallMonitor; +class HbPushButton; + +class automaticanswertest : public HbView +{ + Q_OBJECT + +public: + automaticanswertest(QGraphicsItem *parent = 0); + ~automaticanswertest(); + +private: + void createContent(); + +protected slots: + void answer(); + void stopanswer(); + +private: + HbPushButton *answering; + HbPushButton *stopanswering; + CEtelIncomingCallMonitor* m_incomingVoiceCallMonitor; +}; + +#endif // AUTOMATICANSWERTEST_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/automaticanswertest.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/automaticanswertest.pkg Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,36 @@ +; automaticanswertest_template.pkg generated by qmake at 2010-05-31T09:51:06 +; This file is generated by qmake and should not be modified by the user +; + +; Language +&EN + + +; SIS header: name, uid, version +#{"automaticanswertest"},(0xE23CECCD),1,0,0 + +; Localised Vendor name +%{"Vendor"} + +; Unique Vendor name +:"Vendor" + + +; Manual PKG pre-rules from PRO files +; Default dependency to Qt libraries +(0x2001E61C), 4, 4, 3, {"Qt"} +; Default HW/platform dependencies +[0x101F7961],0,0,0,{"S60ProductID"} +[0x102032BE],0,0,0,{"S60ProductID"} +[0x102752AE],0,0,0,{"S60ProductID"} +[0x1028315F],0,0,0,{"S60ProductID"} + + +; Executable and default resource files +"/epoc32/release/armv5/udeb/automaticanswertest.exe" - "!:\sys\bin\automaticanswertest.exe" +"/epoc32/data/z/resource/apps/automaticanswertest.r01" - "!:\resource\apps\automaticanswertest.rsc" +"/epoc32/data/z/private/10003a3f/import/apps/automaticanswertest_reg.rsc" - "!:\private\10003a3f\import\apps\automaticanswertest_reg.rsc" + +"/epoc32/data/z/resource/qt/translations/automaticanswertest_en.qm" - "!:\resource\qt\translations\automaticanswertest_en.qm" + +; Manual PKG post-rules from PRO files diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/automaticanswertest.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/automaticanswertest.pro Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,30 @@ +TEMPLATE = app +CONFIG += hb + +TRANSLATIONS = automaticanswertest.ts + +symbian { + TARGET = automaticanswertest + TARGET.UID3 = 0xE23CECCD + TARGET.CAPABILITY = ALL -TCB + #-NetworkControl \ + # -NetworkServices \ + # -ReadDeviceData \ + # -MultimediaDD + INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE \ + /epoc32/include/platform \ + /epoc32/include/ecom + LIBS+= -letelmm + LIBS+= -letel + LIBS+= -leuser + LIBS+= -lecom + } + + +HEADERS += automaticanswertest.h \ + etelincomingcallmonitor.h +SOURCES += main.cpp \ + automaticanswertest.cpp \ + etelincomingcallmonitor.cpp +FORMS += +RESOURCES += diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/automaticanswertest.sis Binary file phoneplugins/csplugin/tsrc/automaticanswertest/automaticanswertest.sis has changed diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/etelincomingcallmonitor.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/etelincomingcallmonitor.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,107 @@ +/* +* 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: Implements the class CEtelIncomingCallMonitor +* +*/ + +#include "etelincomingcallmonitor.h" +#include +#include + +// --------------------------------------------------------------------------- +// Destructs the object by canceling first ongoing monitoring. +// --------------------------------------------------------------------------- +// +CEtelIncomingCallMonitor::~CEtelIncomingCallMonitor( ) + { + Cancel(); + iLine.Close(); + iServer.Close(); + } + +// --------------------------------------------------------------------------- +// Starts the monitor. +// --------------------------------------------------------------------------- +// +void CEtelIncomingCallMonitor::StartMonitoring() + { + if ( !IsActive() ) + { + iCallName.Zero(); + iLine.NotifyIncomingCall( iStatus, iCallName ); + SetActive(); + } + + } +// --------------------------------------------------------------------------- +// From CActive. +// Handles line status change notifying. +// --------------------------------------------------------------------------- +// +void CEtelIncomingCallMonitor::RunL() + { + + qDebug () << "CEtelIncomingCallMonitor::RunL<<"; + if ( iStatus == KErrNone ) + { + RMobileCall mobilecall; + TInt ret = mobilecall.OpenExistingCall(iLine,iCallName); + qDebug() << "CEtelIncomingCallMonitor::RunL_OpenExistingCall_ret:" << ret; + ret = mobilecall.AnswerIncomingCall(); + qDebug() << "CEtelIncomingCallMonitor::RunL_AnswerIncomingCall_ret:" << ret; + mobilecall.Close(); + // Continue monitoring + StartMonitoring(); + } + qDebug () << "CEtelIncomingCallMonitor::RunL>>"; + } + +// --------------------------------------------------------------------------- +// From CActive +// Canceling functionality. +// --------------------------------------------------------------------------- +// +void CEtelIncomingCallMonitor::DoCancel() + { + if ( iStatus == KRequestPending ) + { + iLine.NotifyIncomingCallCancel(); + } + } + +// --------------------------------------------------------------------------- +// Constructs the monitor. +// --------------------------------------------------------------------------- +// +CEtelIncomingCallMonitor::CEtelIncomingCallMonitor( + /*RMobileLine& aLine, + TInt aLineId */) : + CActive( EPriorityStandard + 2 ) + + { + CActiveScheduler::Add( this ); + const TInt KNbrOfMessageSlots = 128; + TInt phoneCount( 0 ); + + + int errorCode = iServer.Connect( KNbrOfMessageSlots ); + + RMobilePhone mobilePhone; + errorCode = iServer.EnumeratePhones( phoneCount ); + errorCode = iServer.GetPhoneInfo( phoneCount-1, iPhoneInfo ); + errorCode = mobilePhone.Open( iServer, iPhoneInfo.iName ); + int error = iLine.Open( mobilePhone,_L("Voice1")); + } + +// End of File diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/etelincomingcallmonitor.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/etelincomingcallmonitor.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,93 @@ +/* +* 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: Declarations for class CSPEtelIncomingCallMonitor +* +*/ + + +#ifndef ETELINCOMINGCALLMONITOR_H +#define ETELINCOMINGCALLMONITOR_H + +#include +#include + + +/** +* Monitors single ETel RMobileLine for incoming calls. +* +* This monitor is applied only for listening incoming calls, i.e. +* line capabilites are not monitored. +* +*/ +class CEtelIncomingCallMonitor: public CActive + { + + public: //Constructors and descructor + + /** + * C++ default constructor + * @param aLine the line associated with the call + * @param aLineId line identifier + */ + CEtelIncomingCallMonitor( /*RMobileLine& aLine, + TInt aLineId */); + /** + * C++ default destructor + */ + virtual ~CEtelIncomingCallMonitor( ); + + /** + * Start monitoring call events + * @since S60 3.2 + */ + void StartMonitoring(); + + protected: // From CActive + /** + * From CActive + * RunL + * @since S60 3.2 + */ + void RunL(); + + /** + * From CActive + * Cancels the monitor + * @since S60 3.2 + */ + void DoCancel(); + + private: // data + + /** + * Incoming call name received from ETel. + */ + TName iCallName; + + /** + * Line that is being observed for incoming call. + */ + RMobileLine iLine; + + /** + * Line identifier / type. + */ + TInt iLineId; + + RTelServer iServer; + + RTelServer::TPhoneInfo iPhoneInfo; + }; + +#endif // ETELINCOMINGCALLMONITOR_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/main.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,20 @@ + +#include "automaticanswertest.h" + +#include +#include +#include +#include +#include + +int main(int argc, char *argv[]) +{ + qDebug () << "AUTOMATICANSWER__main()<<"; + HbApplication app (argc, argv); + HbMainWindow mainWindow; + automaticanswertest* testview = new automaticanswertest (); + mainWindow.addView(testview); + mainWindow.setCurrentView(testview); + mainWindow.show(); + return app.exec(); +} diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_English-GB_(apac).ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_English-GB_(apac).ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_English-GB_(apaccn).ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_English-GB_(apaccn).ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_English-GB_(apachk).ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_English-GB_(apachk).ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_English-GB_(apactw).ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_English-GB_(apactw).ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_English-GB_Japanese.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_English-GB_Japanese.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_English-GB_Thai.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_English-GB_Thai.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_Persian.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_Persian.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_ar.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_ar.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_bg.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_bg.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_ca.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_ca.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_cs.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_cs.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_da.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_da.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_de.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_de.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_el.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_el.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_en.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_en.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_en_us.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_en_us.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_es.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_es.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_es_419.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_es_419.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_et.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_et.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_eu.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_eu.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_fi.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_fi.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_fr.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_fr.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_fr_ca.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_fr_ca.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_gl.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_gl.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_he.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_he.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_hi.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_hi.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_hr.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_hr.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_hu.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_hu.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_id.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_id.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_is.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_is.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_it.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_it.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_ja.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_ja.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_ko.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_ko.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_lt.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_lt.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_lv.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_lv.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_mr.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_mr.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_ms.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_ms.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_nl.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_nl.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_no.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_no.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_pl.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_pl.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_pt.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_pt.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_pt_br.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_pt_br.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_ro.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_ro.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_ru.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_ru.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_sk.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_sk.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_sl.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_sl.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_sr.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_sr.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_sv.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_sv.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_th.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_th.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_tl.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_tl.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_tr.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_tr.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_uk.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_uk.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_ur.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_ur.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_vi.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_vi.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_zh.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_zh.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_zh_hk.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_zh_hk.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_zh_tw.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/csplugin/tsrc/automaticanswertest/ts_files/automaticanswertest_zh_tw.ts Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,214 @@ + + + + nString + + No network coverage + No network coverage + + + Not allowed + Not allowed + + + Attempting + Attempting emergency call + + + Private number + Private number + + + On hold + on hold + + + Calling + Calling + + + AutomaticAnswer + AutomaticAnswer + + + Transfer + Transfer + + + Telephone + + Telephone + + + + Waiting + waiting + + + Called number has barred incoming calls + Unable to make video call. Incoming calls barred on other phone. + + + Number not in use + Number not in use + + + Could not send own number + Could not send your caller ID + + + Video call not allowed during restore + Unable to make video call during restoring operation + + + Life timer\n%L1 + Life timer: +%L1 + + + Emergency call failed + Emergency call failed + + + Sending\n%L1 + Sending +%L1 + + + Remote SIM + Remote SIM + + + Emergency calls only + Emergency calls only + + + Network busy + Network busy + + + Unable to make video call. Not supported by other phone or network. + Unable to make video call. Not supported by other phone or network. + + + Ongoing call + Ongoing call + + + Videocall only possible under 3G coverage + Video calls not supported outside of 3G network + + + Serial No.\n%L1 + Serial number: +%1 + + + Connected to %L1 + Connected to %L1 + + + Send string:\n%L1 + Send DTMF:
%L1 + + + Note: all incoming calls diverted + Note: all incoming calls diverted + + + Note: you have active barrings + Note: active call barrings + + + Emergency call + Emergency call + + + %Ln missed calls + + #%Ln missed calls + en #MISSING + + + + Number barred + Number barred + + + Number busy + Number busy + + + Unknown number + Unknown number + + + Incoming call + calling + + + Error in connection + Connection error + + + End all calls + End all calls + + + No answer + No answer + + + Disconnected + disconnected + + + Conference call active + Conference call active + + + Phone switched off or out of 3G coverage + Unable to make video call. Other phone switched off or outside of 3G network. + + + Diverting + Diverting + + + Check network services + Check network services + + + Check own number sending + Check my caller ID sending + + + Activate own number sending + Activate caller ID sending + + + Share video + Share video + + + Conference call + Conference call + + + Invalid phone number + Invalid phone number + + + Call not allowed, fixed dialling active + Call not allowed. Fixed dialling active. + + + Video call didn't succeed to called end + Unable to make video call. Not supported by other phone or network. + + + AutomaticAnswer + AutomaticAnswer + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/hsdialerwidgetplugin/hsdialerwidgetplugin.pro --- a/phoneplugins/hsdialerwidgetplugin/hsdialerwidgetplugin.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneplugins/hsdialerwidgetplugin/hsdialerwidgetplugin.pro Wed Jun 23 18:12:20 2010 +0300 @@ -22,6 +22,7 @@ ../../inc symbian: { LIBS += -lxqservice \ + -lxqserviceutil \ -lxqtelephonyservice \ -lxqsettingsmanager \ -llogsengine diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/hsdialerwidgetplugin/hsdialerwidgetpluging.qrc --- a/phoneplugins/hsdialerwidgetplugin/hsdialerwidgetpluging.qrc Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneplugins/hsdialerwidgetplugin/hsdialerwidgetpluging.qrc Wed Jun 23 18:12:20 2010 +0300 @@ -5,4 +5,9 @@ resource/qtg_fr_shortcut_badge_bg_l.png resource/qtg_graf_hs_dialer.svg + + resource/dialerwidget.widgetml + resource/dialerwidget.css + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/hsdialerwidgetplugin/inc/dialerwidgetengine.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/hsdialerwidgetplugin/inc/dialerwidgetengine.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,45 @@ +/* +* 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 HSDIALERWIDGETENGINE_H_ +#define HSDIALERWIDGETENGINE_H_ + +#include +#include + +class DialerWidgetEngine : public QObject + { + Q_OBJECT +public: + DialerWidgetEngine(); + virtual ~DialerWidgetEngine(); + bool initialize(); + int missedCallsCount(); + +public slots: + void valueChanged(const XQSettingsKey &key, const QVariant &value); +signals: + void exceptionOccured(const int& err); + void missedCallsCountChanged(const int& missedCallsCount); +private: + +private: + XQSettingsManager * m_settingsManager; + int m_missedCalls; + }; + +#endif /* HSDIALERWIDGETENGINE_H_ */ diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/hsdialerwidgetplugin/inc/hsdialerwidget.h --- a/phoneplugins/hsdialerwidgetplugin/inc/hsdialerwidget.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneplugins/hsdialerwidgetplugin/inc/hsdialerwidget.h Wed Jun 23 18:12:20 2010 +0300 @@ -18,13 +18,7 @@ #ifndef HSDIALERWIDGET_H #define HSDIALERWIDGET_H -#include -#ifdef Q_OS_SYMBIAN -#include -#else -class XQSettingsManager; -class XQSettingsKey; -#endif +#include #ifndef HOMESCREEN_TEST #define HOMESCREEN_TEST_CLASS(aClassName) @@ -37,39 +31,59 @@ HOMESCREEN_TEST_CLASS(TestDialerWidgetPlugin) class XQCallInfo; -class HbFrameItem; -class HsDialerWidget : public HbWidget +class DialerWidgetEngine; +class HbFrameItem; +class HbIconItem; +class HbTextItem; +class HbTouchArea; + +class HsDialerWidget : public HsWidget { Q_OBJECT public: HsDialerWidget(QGraphicsItem* parent = 0, Qt::WindowFlags flags = 0); ~HsDialerWidget(); +private: - void paint ( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0 ); - -private: - void setItemPositions(); + void createPrimitives(); public slots: void startDialer(); - void updateMissedCallBadge(const XQSettingsKey &key, const QVariant &value); - + + // from HS fw + void onInitialize(); void onShow(); void onHide(); + void onUninitialize(); + + // from engine + void onEngineException(const int& exc); + + void onMissedCallsCountChange(const int& count); + +signals: + void error(); protected: void mousePressEvent(QGraphicsSceneMouseEvent *event) { Q_UNUSED(event) } void mouseReleaseEvent(QGraphicsSceneMouseEvent *event); + StartResult onStart(); + StopResult onStop(); + SuspendResult onSuspend(); + ResumeResult onResume(); + private: + XQCallInfo *mXQCallInfo; - HbFrameItem *m_shortcutBadge; - HbFrameItem *m_backgroud; - XQSettingsManager * m_setManager; - int m_missedCalls; + DialerWidgetEngine *m_engine; + HbFrameItem *m_background; + HbFrameItem *m_badgeBackground; + HbTextItem *m_text; + HbTouchArea *m_touchArea; HOMESCREEN_TEST_FRIEND_CLASS(TestDialerWidgetPlugin) }; diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/hsdialerwidgetplugin/resource/dialerwidget.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/hsdialerwidgetplugin/resource/dialerwidget.css Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,44 @@ +MyWidget { + layout: default +} + +MyWidget::background { + top: -6un; + right: 6un; + left: -6un; + preferred-width: 24un; + preferred-height: 24un; + zvalue: 0; +} + +MyWidget::badgeBackground { + left: -1.5un; + right: 1.5un; + top: -1.5un; + bottom: 1.5un; + preferred-width: 3.0un; + preferred-height: 3.0un; + zvalue: 1; +} + +MyWidget::text { + left: -1.5un; + right: 1.5un; + top: -1.5un; + bottom: 1.5un; + fixed-width: 3.0un; + text-align: center center; + text-height: var(hb-param-text-height-tiny); + text-line-count-max: 1; + color: var(qtc_list_item_title_normal); + zvalue: 2; +} + +MyWidget::touch_area { + left: -6.0un; + top: -6.0un; + preferred-width: 12un; + preferred-height: 12un; + zvalue: 3; +} + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/hsdialerwidgetplugin/resource/dialerwidget.widgetml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/hsdialerwidgetplugin/resource/dialerwidget.widgetml Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/hsdialerwidgetplugin/rom/hsdialerwidgetplugin.iby --- a/phoneplugins/hsdialerwidgetplugin/rom/hsdialerwidgetplugin.iby Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneplugins/hsdialerwidgetplugin/rom/hsdialerwidgetplugin.iby Wed Jun 23 18:12:20 2010 +0300 @@ -18,10 +18,13 @@ #ifndef __HSDIALERWIDETPLUGIN_IBY__ #define __HSDIALERWIDETPLUGIN_IBY__ -file=ABI_DIR\BUILD_DIR\hsdialerwidgetplugin.dll SHARED_LIB_DIR\hsdialerwidgetplugin.dll -data=ZPRIVATE\20022f35\import\widgetregistry\20022F44\hsdialerwidgetplugin.qtplugin private\20022f35\import\widgetregistry\20022F44\hsdialerwidgetplugin.qtplugin -data=ZPRIVATE\20022f35\import\widgetregistry\20022F44\hsdialerwidgetplugin.manifest private\20022f35\import\widgetregistry\20022F44\hsdialerwidgetplugin.manifest -data=ZPRIVATE\20022f35\import\widgetregistry\20022F44\qtg_graf_hs_dialer.svg private\20022f35\import\widgetregistry\20022F44\qtg_graf_hs_dialer.svg -data=ZPRIVATE\20022f35\import\widgetregistry\20022F44\hsdialerwidgetplugin.xml private\20022f35\import\widgetregistry\20022F44\hsdialerwidgetplugin.xml +file=ABI_DIR\BUILD_DIR\hsdialerwidgetplugin.dll SHARED_LIB_DIR\hsdialerwidgetplugin.dll +data=ZPRIVATE\20022f35\import\widgetregistry\20022F44\hsdialerwidgetplugin.qtplugin private\20022f35\import\widgetregistry\20022F44\hsdialerwidgetplugin.qtplugin +data=ZPRIVATE\20022f35\import\widgetregistry\20022F44\hsdialerwidgetplugin.manifest private\20022f35\import\widgetregistry\20022F44\hsdialerwidgetplugin.manifest +data=ZPRIVATE\20022f35\import\widgetregistry\20022F44\qtg_graf_hs_dialer.svg private\20022f35\import\widgetregistry\20022F44\qtg_graf_hs_dialer.svg +data=ZPRIVATE\20022f35\import\widgetregistry\20022F44\qtg_fr_shortcut_badge_bg_r.png private\20022f35\import\widgetregistry\20022F44\qtg_fr_shortcut_badge_bg_r.png +data=ZPRIVATE\20022f35\import\widgetregistry\20022F44\qtg_fr_shortcut_badge_bg_l.png private\20022f35\import\widgetregistry\20022F44\qtg_fr_shortcut_badge_bg_l.png +data=ZPRIVATE\20022f35\import\widgetregistry\20022F44\qtg_fr_shortcut_badge_bg_c.png private\20022f35\import\widgetregistry\20022F44\qtg_fr_shortcut_badge_bg_c.png +data=ZPRIVATE\20022f35\import\widgetregistry\20022F44\hsdialerwidgetplugin.xml private\20022f35\import\widgetregistry\20022F44\hsdialerwidgetplugin.xml #endif //__HSDIALERWIDETPLUGIN_IBY__ diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/hsdialerwidgetplugin/src/dialerwidgetengine.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/hsdialerwidgetplugin/src/dialerwidgetengine.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,72 @@ +/* +* 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 "dialerwidgetengine.h" + +#include +#include + +DialerWidgetEngine::DialerWidgetEngine(): + m_missedCalls(-1) +{ +} + +DialerWidgetEngine::~DialerWidgetEngine() +{ + delete m_settingsManager; + m_settingsManager = NULL; +} + +bool DialerWidgetEngine::initialize() +{ +#ifdef Q_OS_SYMBIAN + m_settingsManager = new XQSettingsManager(this); + if ( !m_settingsManager ){ + return false; + } + XQSettingsKey settingsKey( XQSettingsKey::TargetCentralRepository, + KCRUidLogs.iUid, KLogsNewMissedCalls ); + + if ( !connect( m_settingsManager, + SIGNAL( valueChanged(const XQSettingsKey & ,const QVariant &)), + this, SLOT(valueChanged(XQSettingsKey, + QVariant)))){ + return false; + } + + if(!m_settingsManager->startMonitoring( settingsKey )){ + return false; + } + +#endif + return true; +} + +void DialerWidgetEngine::valueChanged( + const XQSettingsKey &key, + const QVariant &value ) +{ + if ( key.key() == (quint32)KLogsNewMissedCalls ){ + m_missedCalls = value.toInt(); + emit missedCallsCountChanged( m_missedCalls ); + } +} + +int DialerWidgetEngine::missedCallsCount() +{ + return m_missedCalls; +} diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/hsdialerwidgetplugin/src/hsdialerwidget.cpp --- a/phoneplugins/hsdialerwidgetplugin/src/hsdialerwidget.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneplugins/hsdialerwidgetplugin/src/hsdialerwidget.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -15,28 +15,39 @@ * */ +#include +#include +#include +#include +#include +#include +#include +#include "dialerwidgetengine.h" -#include -#include -#include -#include -#include #ifdef Q_OS_SYMBIAN -#include #include "qtphonelog.h" #include #include #include -#include #include +#include +#else +#define PHONE_TRACE +#define PHONE_TRACE1(A) +#define PHONE_TRACE2(A, B) +#define PHONE_TRACE3(A, B, C) +#define PHONE_TRACE4(A, B, C, D) #endif #include "hsdialerwidget.h" + namespace { const char KDialerWidgetIcon[] = ":/icons/resource/qtg_graf_hs_dialer"; const char KMissedCallShortcutBadge[] = ":/icons/resource/qtg_fr_shortcut_badge_bg"; + const char KDialerWidgetWidgetml[] = ":/data/resource/dialerwidget.widgetml"; + const char KDialerWidgetCss[] = ":/data/resource/dialerwidget.css"; } /*! @@ -51,40 +62,10 @@ Constructs dialer widget with given \a parent and given window \a flags. */ HsDialerWidget::HsDialerWidget(QGraphicsItem *parent, Qt::WindowFlags flags) - : HbWidget(parent, flags), - mXQCallInfo(0) -{ -#ifdef Q_OS_SYMBIAN - m_setManager = new XQSettingsManager(this); - - XQSettingsKey settingsKey( XQSettingsKey::TargetCentralRepository, - KCRUidLogs.iUid, KLogsNewMissedCalls ); - - bool ok = connect( m_setManager, - SIGNAL( valueChanged(const XQSettingsKey & ,const QVariant &)), - this, SLOT(updateMissedCallBadge(XQSettingsKey, - QVariant))); - ASSERT( ok ); - ok = false; - ok = m_setManager->startMonitoring( settingsKey ); - ASSERT(ok); - -#endif - - HbFrameDrawer *drawer = new HbFrameDrawer( - KDialerWidgetIcon, HbFrameDrawer::OnePiece); - m_backgroud = new HbFrameItem(drawer, this); - m_backgroud->setZValue(1); - - drawer = new HbFrameDrawer(KMissedCallShortcutBadge, - HbFrameDrawer::ThreePiecesHorizontal ); - - m_shortcutBadge = new HbFrameItem(drawer, this); - m_shortcutBadge->setZValue(2); - m_shortcutBadge->setVisible(false); - m_missedCalls=0; - setItemPositions(); - resize(preferredSize()); + : HsWidget(parent, flags), + mXQCallInfo(0), m_background(0), m_badgeBackground(0), m_text(0), m_touchArea(0) +{ + PHONE_TRACE } /*! @@ -92,47 +73,7 @@ */ HsDialerWidget::~HsDialerWidget() { -} - -void HsDialerWidget::paint( - QPainter *painter, - const QStyleOptionGraphicsItem *option, - QWidget *widget) -{ - Q_UNUSED(option); - Q_UNUSED(widget); - painter->setPen(QPen( Qt::transparent ) ); - - QRectF rect(m_backgroud->boundingRect()); - painter->drawRect((int)m_backgroud->pos().x(), - (int)m_backgroud->pos().y(), - rect.toRect().width(), - rect.toRect().height()); - - if ( m_shortcutBadge->isVisible()) - { - rect = m_shortcutBadge->boundingRect(); - HbTextItem *text = new HbTextItem( m_shortcutBadge->graphicsItem()); - - QFont badgefont = font(); -#ifdef Q_OS_SYMBIAN - badgefont.setPointSize( 4 ); -#else - badgefont.setPointSize( 8 ); -#endif - text->setFont(badgefont); - text->setText(QLocale::system().toString(m_missedCalls)); - text->setZValue(3); - text->setTextColor(Qt::white); - - text->setX( ( rect.toRect().width() / 2 ) - 2); - text->setY( ( rect.toRect().height() / 5 ) - 1); - - painter->drawRect( (int)m_shortcutBadge->pos().x(), - (int)m_shortcutBadge->pos().y(), - rect.toRect().width(), - rect.toRect().height() ); - } + PHONE_TRACE } /*! @@ -142,14 +83,14 @@ */ void HsDialerWidget::startDialer() { + PHONE_TRACE #ifdef Q_OS_SYMBIAN PHONE_DEBUG("HsDialerWidget::startDialer"); if (!mXQCallInfo) { mXQCallInfo = XQCallInfo::create(); mXQCallInfo->setParent(this); - } - + } QList calls; mXQCallInfo->getCalls(calls); @@ -167,6 +108,9 @@ PHONE_DEBUG("no calls, open Dialer"); XQServiceRequest snd("com.nokia.services.logsservices.starter", "start(int,bool)", false); + XQRequestInfo info; + info.setForeground(true); + snd.setInfo(info); snd << (int)LogsServices::ViewAll; snd << true; int retValue; @@ -175,22 +119,34 @@ //LogsServices::start(LogsServices::ViewAll, true); } #endif + } -void HsDialerWidget::updateMissedCallBadge( - const XQSettingsKey &key, const QVariant &value) +void HsDialerWidget::onInitialize() { -#ifdef Q_OS_SYMBIAN - if ( key.key() == (quint32)KLogsNewMissedCalls ){ - m_missedCalls = value.toInt(); - m_shortcutBadge->setVisible(value.toBool()); - setItemPositions(); - m_backgroud->update(); + PHONE_TRACE + QT_TRY{ + // basic ui + createPrimitives(); + Q_ASSERT(HbStyleLoader::registerFilePath(KDialerWidgetWidgetml)); + Q_ASSERT(HbStyleLoader::registerFilePath(KDialerWidgetCss)); + // Engine construction is 2 phased + m_engine = new DialerWidgetEngine(); + connect(m_engine, SIGNAL( exceptionOccured(const int&) ) + ,this, SLOT( onEngineException(const int&) ) ); + + if(!m_engine->initialize()){ + //engine construction failed. Give up. + emit error(); + return; + } + connect( m_engine, SIGNAL(missedCallsCountChanged(const int&)), + this, SLOT(onMissedCallsCountChange(const int&))); + } -#else - Q_UNUSED(key); - Q_UNUSED(value); -#endif + QT_CATCH(...){ + emit error(); + } } /*! @@ -200,6 +156,8 @@ */ void HsDialerWidget::onShow() { + PHONE_TRACE + updatePrimitives(); } /*! @@ -209,6 +167,32 @@ */ void HsDialerWidget::onHide() { + PHONE_TRACE +} + +void HsDialerWidget::onUninitialize() +{ + PHONE_TRACE + HbStyleLoader::unregisterFilePath(KDialerWidgetWidgetml); + HbStyleLoader::unregisterFilePath(KDialerWidgetCss); +} + +void HsDialerWidget::onEngineException(const int& exc) +{ + Q_UNUSED(exc); + emit error(); +} + +void HsDialerWidget::onMissedCallsCountChange(const int& count) +{ + m_text->setText( QLocale::system().toString(count)); + if ( count ){ + m_text->setVisible(true); + m_badgeBackground->setVisible(true); + } else { + m_text->setVisible(false); + m_badgeBackground->setVisible(false); + } } /*! @@ -218,26 +202,73 @@ \sa startDialer() */ void HsDialerWidget::mouseReleaseEvent(QGraphicsSceneMouseEvent* event) -{ +{ Q_UNUSED(event); startDialer(); } -void HsDialerWidget::setItemPositions() +HsWidget::StartResult HsDialerWidget::onStart() +{ + return StartResultRunning; +} +HsWidget::StopResult HsDialerWidget::onStop() +{ + return StopResultFinished; +} +HsWidget::SuspendResult HsDialerWidget::onSuspend() +{ + return SuspendResultSuspended; +} +HsWidget::ResumeResult HsDialerWidget::onResume() { - HbIcon icon(KDialerWidgetIcon); - setPreferredWidth(icon.width()); - int badgeSize = 20; - if ( m_shortcutBadge->isVisible()){ - m_backgroud->setGeometry(QRectF(QPointF(0,badgeSize / 2 ), - QSizeF(icon.width(),icon.height()))); - m_shortcutBadge->setGeometry(QRectF( - QPointF(m_backgroud->boundingRect().width() - (badgeSize / 2),0 ), - QSizeF(badgeSize, badgeSize))); - setPreferredHeight(icon.height()+(badgeSize / 2)); - } else { - m_backgroud->setGeometry(QRectF(QPointF(0,0), - QSizeF(icon.width(),icon.height()))); - setPreferredHeight(icon.height()); + return ResumeResultRunning; +} + +void HsDialerWidget::createPrimitives() +{ + setPreferredSize(100,100); + // Background + if (!m_background) { + HbFrameDrawer *drawer = new HbFrameDrawer( + KDialerWidgetIcon, HbFrameDrawer::OnePiece); + m_background = new HbFrameItem(drawer, this); + style()->setItemName(m_background, /*QLatin1String(*/"background"/*)*/); + m_background->moveBy(0,10); + m_background->resize(81,81); + } + + // Badge background + if (!m_badgeBackground) { + HbFrameDrawer *badgedrawer = new HbFrameDrawer( + KMissedCallShortcutBadge, HbFrameDrawer::ThreePiecesHorizontal); + m_badgeBackground = new HbFrameItem(badgedrawer, this); + style()->setItemName(m_background, QLatin1String("badgeBackground")); + m_badgeBackground->resize(20,20); + m_badgeBackground->moveBy(70,0); + m_badgeBackground->setVisible(true); + m_badgeBackground->setVisible( false ); + } + + // Text + if (!m_text) { + m_text = new HbTextItem(this); + style()->setItemName(m_text, QLatin1String("text")); + m_text->resize(20,20); + m_text->moveBy(76,0); + m_text->setVisible(true); + HbFontSpec *textFont = new HbFontSpec(HbFontSpec::Primary); + textFont->setTextHeight(3*HbDeviceProfile::current().unitValue()); + m_text->setFontSpec(*textFont); + m_text->setText("0"); + m_text->setVisible( false); + } + + // Touch Area + if (!m_touchArea) { + m_touchArea = new HbTouchArea(this); + m_touchArea->installEventFilter(this); + style()->setItemName(m_touchArea, QLatin1String("touch_area")); + m_touchArea->moveBy(0,10); + m_touchArea->resize(81,81); } } diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/inc/infowidgetlogging.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/inc/infowidgetlogging.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,75 @@ +/* + * 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 INFOWIDGETLOGGING_H +#define INFOWIDGETLOGGING_H + +#include + + +/*! + Define MSG_OUTPUT_RDEBUG + for enabling RDebug prints in development tracing. + Shouldn't be used in release code. + */ +#undef MSG_OUTPUT_RDEBUG + + +#ifdef MSG_OUTPUT_RDEBUG +#ifdef Q_OS_SYMBIAN +#include + +static void infoWidgetMsgOutput(QtMsgType type, const char *msg) +{ + switch (type) { + + case QtDebugMsg: + RDebug::Printf("InfoWidget Debug: %s\n", msg); + break; + case QtWarningMsg: + RDebug::Printf("InfoWidget Warning: %s\n", msg); + break; + case QtCriticalMsg: + RDebug::Printf("InfoWidget Critical: %s\n", msg); + break; + case QtFatalMsg: + RDebug::Printf("InfoWidget Fatal: %s\n", msg); + abort(); + } +} + + #define INSTALL_TRACE_MSG_HANDLER qInstallMsgHandler(infoWidgetMsgOutput) + #define UNINSTALL_TRACE_MSG_HANDLER qInstallMsgHandler(0) +#endif //Q_OS_SYMBIAN +#else + #define INSTALL_TRACE_MSG_HANDLER + #define UNINSTALL_TRACE_MSG_HANDLER +#endif //MSG_OUTPUT_RDEBUG + +/*! + Debug macros + */ +#if _DEBUG +#define DPRINT qDebug() << __PRETTY_FUNCTION__ +#else +#define DPRINT if(0) qDebug() +#endif +#define DWARNING qWarning() << __PRETTY_FUNCTION__ +#define DCRITICAL qCritical() << __PRETTY_FUNCTION__ + +#endif // INFOWIDGETLOGGING + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/inc/infowidgetplugin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/inc/infowidgetplugin.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: + * + */ + +#ifndef INFOWIDGETPLUGIN_H +#define INFOWIDGETPLUGIN_H + +#include +#include + +QTM_USE_NAMESPACE + +class InfoWidgetPlugin : public QObject, public QServicePluginInterface +{ + Q_OBJECT + Q_INTERFACES(QtMobility::QServicePluginInterface) + +public: + QObject *createInstance(const QServiceInterfaceDescriptor &descriptor, + QServiceContext *context, + QAbstractSecuritySession *session); + +}; + +#endif // INFOWIDGETPLUGIN_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidget/inc/infowidget.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/infowidget/inc/infowidget.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,176 @@ +/* + * 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 INFOWIDGET_H +#define INFOWIDGET_H + +#include +#include +#include +#include "infowidgetlayoutmanager.h" +#include "infowidgetengine.h" +#include "infowidgetpreferences.h" + +// Forward declarations +class QGraphicsSceneMouseEvent; +class QGraphicsLinearLayout; +class QTranslator; +class HbDialog; +class HbIconItem; +class HbMarqueeItem; +class HbLabel; +class HbCheckBox; +class HbPushButton; +class HbFrameItem; +class HbAction; +class InfoWidgetEngine; +class InfoWidgetPreferences; + +// Class declaration +class InfoWidget : public HbWidget +{ + Q_OBJECT + +public: + + // State for animation + enum AnimationState { + AnimationIdle, + AnimationStarting, + AnimationOngoing + } m_animationState; + + // Delay for animation start + enum AnimationStartDelay { + StartNoDelay, + StartDelayed + }; + +public: + InfoWidget(QGraphicsItem *parent = 0, Qt::WindowFlags flags = 0); + ~InfoWidget(); + +public: // From QGraphicsItem. + QRectF boundingRect() const; + QSizeF sizeHint(Qt::SizeHint which, const QSizeF & constraint) const; + QSizePolicy sizePolicy () const; + +public: // Property definitions + Q_PROPERTY(QString homeZoneDisplay READ homeZoneDisplay WRITE setHomeZoneDisplay) + Q_PROPERTY(QString mcnDisplay READ mcnDisplay WRITE setMcnDisplay) + Q_PROPERTY(QString activeLineDisplay READ activeLineDisplay WRITE setActiveLineDisplay) + Q_PROPERTY(QString satDisplay READ satDisplay WRITE setSatDisplay) + Q_PROPERTY(QString spnDisplay READ spnDisplay WRITE setSpnDisplay) + QString homeZoneDisplay(); + void setHomeZoneDisplay(QString value); + QString mcnDisplay(); + void setMcnDisplay(QString value); + QString activeLineDisplay(); + void setActiveLineDisplay(QString value); + QString satDisplay(); + void setSatDisplay(QString value); + QString spnDisplay(); + void setSpnDisplay(QString value); + +protected: + void mousePressEvent(QGraphicsSceneMouseEvent *event); + void mouseReleaseEvent(QGraphicsSceneMouseEvent *event); + void mouseMoveEvent(QGraphicsSceneMouseEvent *event); + void changeEvent(QEvent *event); + void timerEvent(QTimerEvent *event); + + void updateInfoDisplay(); + bool readPersistentPreferences(); + void initializeCheckBoxStates(); + bool installTranslator(QString translationFile); + void removeTranslators(); + +private: + void updateItemsVisibility(); + void layoutInfoDisplay(); + void updateInfoDisplayItem( + InfoWidgetLayoutManager::LayoutItemRole itemRole, + QString text); + void layoutSettingsDialog(); + void initializeSettingsDialogItems(); + void startChanges(); + void endChanges(); + +public slots: + // Slots for Homescreen FW callbacks + void onInitialize(); + void onUninitialize(); + void onShow(); + void onHide(); + + // Info widget specific slots + void readModel(); + void handleModelError(int operation,int errorCode); + void spnDisplaySettingChanged(int state); + void mcnDisplaySettingChanged(int state); + void satDisplaySettingChanged(int state); + + void settingsEditingFinished(); + void settingsEditingCancelled(); + void settingsValidationFailed(); + void settingsDialogClosed(HbAction* action); + + bool startMarquees(AnimationStartDelay delay = StartNoDelay); + void stopMarquees(); + void marqueeNext(); + +signals: + void setPreferences(const QStringList &names); + +private: + Q_DISABLE_COPY(InfoWidget) + + // Engine for widget, owned + QScopedPointer m_engine; + + // Widget preference store, owned + QScopedPointer m_preferences; + + // Layout manager for widget, owned + QScopedPointer m_layoutManager; + + // Translators, owned + QList m_translators; + + // Current widget layout, not owned + QGraphicsLinearLayout *m_layout; + + // Currently animating item(s), not owned + HbMarqueeItem *m_animatingItem; + QList m_animatingItems; + + // Background frame drawer, not owned + HbFrameItem *m_backgroundFrameItem; + + // Id of active timer + int m_timerId; + + // Flags + bool m_layoutChanging; + bool m_dragEvent; + bool m_initialized; + +}; + + +#endif // INFOWIDGET_H + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidget/inc/infowidgetengine.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/infowidget/inc/infowidgetengine.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,121 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: + * + */ + +#ifndef INFOWIDGETENGINE_H_ +#define INFOWIDGETENGINE_H_ + +#include +#include +#include "infowidgetpreferences.h" + +// Forward declarations +class InfoWidgetNetworkHandler; +class InfoWidgetSatHandler; +class InfoWidgetLineHandler; + +// Class declaration +class InfoWidgetEngine : public QObject + { + Q_OBJECT + +public: + + enum HandlerEntity { + NotDefined = 0, + NetworkHandler, + SatHandler, + LineHandler + }; + + class ModelData { + public: + int mcnIndicatorType() const { return m_mcnIndicatorType; }; + void setMcnIndicatorType(const int type){ m_mcnIndicatorType = type; }; + + int homeZoneIndicatorType() const { return m_homeZoneIndicatorType; }; + void setHomeZoneIndicatorType(const int type){ m_homeZoneIndicatorType = type; }; + + int activeLine() const { return m_activeLine; }; + void setActiveLine(const int line){ m_activeLine = line; }; + + const QString& mcnName() const { return m_mcnName; }; + void setMcnName(const QString& name){ m_mcnName = name; }; + + const QString& serviceProviderName() const { return m_serviceProviderName; }; + void setServiceProviderName(const QString& name){ m_serviceProviderName = name; }; + + bool serviceProviderNameDisplayRequired() const { + return m_serviceProviderNameDisplayRequired; }; + void setServiceProviderNameDisplayRequired(bool required){ + m_serviceProviderNameDisplayRequired = required; }; + + const QString& homeZoneTextTag() const { return m_homeZoneTextTag; }; + void setHomeZoneTextTag(const QString& tag){ m_homeZoneTextTag = tag; }; + + const QString& satDisplayText() const { return m_satDisplayText; }; + void setSatDisplayText(const QString& text){ m_satDisplayText = text; }; + + private: + int m_mcnIndicatorType; + int m_homeZoneIndicatorType; + int m_activeLine; + bool m_serviceProviderNameDisplayRequired; + + QString m_mcnName; + QString m_serviceProviderName; + QString m_homeZoneTextTag; + QString m_satDisplayText; + }; + +public: + InfoWidgetEngine(QObject *parent = NULL); + ~InfoWidgetEngine(); + + const InfoWidgetEngine::ModelData &modelData() const; + +signals: + void modelError(int operation, int errorCode); + void modelChanged(); + +public slots: + void updateNetworkDataToModel(); + void updateSatDataToModel(); + void updateLineDataToModel(); + + void handleNetworkError( + int operation, + int errorCode); + void handleSatError(int operation, int errorCode); + void handleLineError(int operation, int errorCode); + + void suspend(); + void resume(); + + void handlePreferencesChanged( + InfoWidgetPreferences::Options options); + +private: + ModelData m_modelData; + + // Own + QScopedPointer m_networkHandler; + QScopedPointer m_satHandler; + }; + +#endif /* INFOWIDGETENGINE_H_ */ + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidget/inc/infowidgetlayoutmanager.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/infowidget/inc/infowidgetlayoutmanager.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,143 @@ +/* + * 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 INFOWIDGETLAYOUTMANAGER_H +#define INFOWIDGETLAYOUTMANAGER_H + +#include +#include +#include +#include +#include +#include +#include +#include + +class QGraphicsLayout; +class QGraphicsWidget; +class HbLabel; +class HbIconItem; +class HbPushButton; +class HbMarqueeItem; +class HbCheckBox; + +// Class declaration +class InfoWidgetDocumentLoader : public HbDocumentLoader +{ +public: + InfoWidgetDocumentLoader(); + virtual QObject *createObject(const QString& type, + const QString &name); +}; + +// Class declaration +class InfoWidgetLayoutManager : public QObject +{ + Q_OBJECT + +public: + + enum LayoutItemRole { + RoleUndefined = 0, + // Content widget, the main widget from document + RoleContent, + // Marquee items + RoleSpnMarqueeItem, + RoleMcnMarqueeItem, + RoleSatMarqueeItem, + // Icons + RoleSpnIcon, + RoleMcnIcon, + RoleSatTextIcon, + // Check boxes + RoleSpnCheckBox, + RoleMcnCheckBox, + RoleSatTextCheckBox, + // Dialogs + RoleSettingsDialog, + // Actions + RoleOkAction, + RoleCancelAction, + // List widgets + RoleSettingsList, + // Layout containers + RoleContainer, + RoleSettingsContainer, + // Must be the last enumeration, + RoleLastEnum + }; + + enum DisplayRole { + InfoDisplay, + SettingsDialog + }; + + InfoWidgetLayoutManager(QObject *parent = 0); + ~InfoWidgetLayoutManager(); + + DisplayRole currentDisplayRole(); + QList currentWidgetRoles(); + + QGraphicsLayout* layoutInfoDisplay(); + QGraphicsLayout* layoutSettingsDialog(); + + const QList widgetRoles( + DisplayRole displayRole) const; + + bool loadWidgets(const DisplayRole displayRole, + const QList &displayWidgets, + QMap &widgetMap); + bool reloadWidgets(const DisplayRole displayRole); + + QGraphicsWidget* loadWidget(InfoWidgetDocumentLoader &loader, + DisplayRole displayRole, + LayoutItemRole widgetRole); + QGraphicsWidget* getWidget(LayoutItemRole itemRole); + + QObject* loadObject(InfoWidgetDocumentLoader &loader, + DisplayRole displayRole, + LayoutItemRole objectRole); + QObject* getObject(LayoutItemRole itemRole); + + QGraphicsWidget* contentWidget(); + QList marqueeItems(); + + void removeWidget(LayoutItemRole itemRole, + bool deleteLater = false); + void destroyWidgets(); + + int layoutRows() const; + void setLayoutRows(int rows); + + qreal layoutRowHeight() const; + bool textFitsToRect(QString text, QFont font, QRectF rect); + +private: + QMap m_widgets; + QMap m_infoDisplayWidgets; + QMap m_settingsDialogWidgets; + QMap m_objects; + + InfoWidgetDocumentLoader *m_documentLoader; + DisplayRole m_displayRole; + int m_layoutRows; + +}; + + +#endif // INFOWIDGETLAYOUTMANAGER_H + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidget/inc/infowidgetlinehandler.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/infowidget/inc/infowidgetlinehandler.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,45 @@ +/* + * 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 INFOWIDGETLINEHANDLER_H_ +#define INFOWIDGETLINEHANDLER_H_ + +#include + +// Class declaration +class InfoWidgetLineHandler: public QObject + { + Q_OBJECT + +public: + InfoWidgetLineHandler(QObject *parent = NULL); + ~InfoWidgetLineHandler(); + + int activeLine() const; + +signals: + void handleMessage(int message); + void handleError(int operation, int errorCode); + +private: + int m_activeLine; + + }; + +#endif /* INFOWIDGETLINEHANDLER_H_ */ + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidget/inc/infowidgetnetworkhandler.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/infowidget/inc/infowidgetnetworkhandler.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,72 @@ +/* + * 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 INFOWIDGETNETWORKHANDLER_H_ +#define INFOWIDGETNETWORKHANDLER_H_ + +#include +#include +#include + +// Class declaration +class InfoWidgetNetworkHandler : public QObject, public MNWMessageObserver + { + Q_OBJECT + +public: + InfoWidgetNetworkHandler(QObject *parent = NULL); + ~InfoWidgetNetworkHandler(); + + bool createSession(); + bool sessionExists(); + + QString serviceProviderName() const; + bool serviceProviderNameDisplayRequired() const; + QString homeZoneTextTag() const; + int homeZoneIndicatorType() const; + QString mcnName() const; + int mcnIndicatorType() const; + int networkRegistrationStatus() const; + bool isOnline() const; + +public: // From MNWMessageObserver + void HandleNetworkMessage(const TNWMessages aMessage); + void HandleNetworkError(const TNWOperation aOperation, TInt aErrorCode); + +public slots: + void suspend(); + void resume(); + + void enableMcn(); + void disableMcn(); + +protected: + void writeMcnDisplayState(bool enabled); + bool readMcnDisplayState(); + +signals: + void networkDataChanged(); + void networkError(int operation, int errorCode); + +private: + TNWInfo m_nwInfo; + QScopedPointer m_nwSession; + }; + +#endif /* INFOWIDGETNETWORKHANDLER_H_ */ + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidget/inc/infowidgetpreferences.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/infowidget/inc/infowidgetpreferences.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,78 @@ +/* + * 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 INFOWIDGETPREFERENCES_H +#define INFOWIDGETPREFERENCES_H + +#include +#include +#include + +// Preference string values +const char DISPLAY_SETTING_ON[] = "On"; +const char DISPLAY_SETTING_OFF[] = "Off"; + +// Class declaration +class InfoWidgetPreferences : public QObject +{ + Q_OBJECT + +public: + enum DisplaySetting { + DisplayOff = 0, + DisplayOn + }; + + enum Option { + DisplayHomeZone = 0x1, + DisplayMcn = 0x2, + DisplayActiveLine = 0x4, + DisplaySatText = 0x8, + DisplaySpn = 0x10 + }; + Q_DECLARE_FLAGS(Options, Option) + +public: + InfoWidgetPreferences(QObject *parent = NULL); + ~InfoWidgetPreferences(); + + bool storePreferences(); + void restorePreferences(); + QStringList preferenceNames(); + + bool isPreferenceSet(Option preferenceId) const; + QString preference(Option preferenceId) const; + InfoWidgetPreferences::Options preferences() const; + void setPreference(Option preferenceId, const QString &preferenceString); + + bool validate(); + int visibleItemCount(); + +signals: + void preferencesChanged(InfoWidgetPreferences::Options options); + +private: + Q_DISABLE_COPY(InfoWidgetPreferences) + + InfoWidgetPreferences::Options m_options; + InfoWidgetPreferences::Options m_validatedOptions; +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(InfoWidgetPreferences::Options) + +#endif // INFOWIDGETPREFERENCES_H + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidget/inc/infowidgetsathandler.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/infowidget/inc/infowidgetsathandler.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,57 @@ +/* + * 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 INFOWIDGETSATHANDLER_H_ +#define INFOWIDGETSATHANDLER_H_ + +#include +#include +#include +#include "infowidgetsathandlerprivate.h" + +// Class declaration +class InfoWidgetSatHandler: public QObject + { + Q_OBJECT + +public: + InfoWidgetSatHandler(QObject *parent = NULL); + ~InfoWidgetSatHandler(); + + void connect(bool connect); + + const QString& satDisplayText() const; + void setSatDisplayText(const QString& displayText); + + void handleIdleModeTxtMessage(int idleResult); + void handleSatError(int operation, int errorCode); + +signals: + void handleMessage(int message); + void handleError(int operation, int errorCode); + +private: + QScopedPointer m_satHandlerPrivate; + RSatService m_satService; + QString m_displayText; + + bool m_connected; + }; + +#endif /* INFOWIDGETSATHANDLER_H_ */ + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidget/inc/infowidgetsathandlerprivate.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/infowidget/inc/infowidgetsathandlerprivate.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,60 @@ +/* + * 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 INFOWIDGETSATHANDLERPRIVATE_H_ +#define INFOWIDGETSATHANDLERPRIVATE_H_ + +#include +#include +#include + +// Forward declarations +class InfoWidgetSatHandler; + +// Class declaration +class InfoWidgetSatHandlerPrivate: public CActive +{ +public: + + InfoWidgetSatHandlerPrivate(InfoWidgetSatHandler *iwSatHandler, RSatService& iSatService); + ~InfoWidgetSatHandlerPrivate(); + + void startObserving(); + + bool connect(); + int disconnect(); + +private: + + void activate(); + void getIdleModeData(); + + void RunL(); + void DoCancel(); + +private: // Data + + InfoWidgetSatHandler *q_ptr; + RSatService& m_satService; + RSatSession m_satSession; + RSatService::TSATIdleResult m_idleResult; + + QString m_idleTxt; +}; + +#endif // INFOWIDGETSATHANDLERPRIVATE_H_ + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidget/src/infowidget.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/infowidget/src/infowidget.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,1124 @@ +/* + * 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 "infowidget.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "infowidgetlogging.h" +#include "infowidgetengine.h" +#include "infowidgetlayoutmanager.h" +#include "infowidgetpreferences.h" + +/*! + \class InfoWidget + \brief Operator info widget main class. + + Implements HomeScreen specific slots and + graphical representation of the + Operator Info widget. + + Derived from HbWidget. + +*/ + +// Local constants +const int INFOWIDGET_DEFAULT_HEIGHT = 100; +const int INFOWIDGET_DEFAULT_WIDTH = 200; +const char *TS_FILE_OPERATOR_WIDGET = "operator_widget"; +const char *TS_FILE_COMMON = "common"; +const char *BACKGROUND_FRAME_NAME = "qtg_fr_hswidget_normal"; + +/*! + InfoWidget::InfoWidget() +*/ +InfoWidget::InfoWidget(QGraphicsItem* parent, Qt::WindowFlags flags) + : HbWidget(parent, flags), + m_animationState(AnimationIdle), + m_engine(NULL), + m_preferences(NULL), + m_layoutManager(NULL), + m_layout(NULL), + m_backgroundFrameItem(NULL), + m_timerId(0), + m_layoutChanging(false), + m_dragEvent(false), + m_initialized(false) +{ + INSTALL_TRACE_MSG_HANDLER; + + DPRINT << ": IN"; + + // Localization file loading + installTranslator(TS_FILE_OPERATOR_WIDGET); + installTranslator(TS_FILE_COMMON); + + // Create layout & child-widget manager + m_layoutManager.reset(new InfoWidgetLayoutManager); + + // Create widget engine + m_engine.reset(new InfoWidgetEngine); + + // Create preference store and start listening signal(s) + m_preferences.reset(new InfoWidgetPreferences); + QObject::connect(m_preferences.data(), + SIGNAL(preferencesChanged(InfoWidgetPreferences::Options)), + m_engine.data(), + SLOT(handlePreferencesChanged( + InfoWidgetPreferences::Options))); + + // Setup widget main layout + m_layout = new QGraphicsLinearLayout; + m_layout->setSpacing(0); + m_layout->setContentsMargins(0,0,0,0); + setLayout(m_layout); + + // Create and set background frame drawer + QScopedPointer backgroundFrameDrawer( + new HbFrameDrawer( + BACKGROUND_FRAME_NAME, + HbFrameDrawer::NinePieces)); + Q_ASSERT(!backgroundFrameDrawer.isNull()); + + // Set widget initial size + resize(INFOWIDGET_DEFAULT_WIDTH, + INFOWIDGET_DEFAULT_HEIGHT); + + // Ownership of frame drawer is + // transferred for frame item + m_backgroundFrameItem = new HbFrameItem( + backgroundFrameDrawer.take(), this); + + setBackgroundItem(m_backgroundFrameItem); + + DPRINT << ": OUT"; +} + +/*! + InfoWidget::~InfoWidget() +*/ +InfoWidget::~InfoWidget() +{ + DPRINT << ": IN"; + + // Force layout manager to delete widgets + // before InfoWidget is destroyed + m_layoutManager->destroyWidgets(); + + // Remove and delete language translators + removeTranslators(); + + DPRINT << ": OUT"; + UNINSTALL_TRACE_MSG_HANDLER; +} + +/*! + InfoWidget::onInitialize() + + Called by HS framework, saved preference data + is available when onInitialize() is called and + meta-object data reading should be done here +*/ +void InfoWidget::onInitialize() +{ + DPRINT << ": IN"; + + m_initialized = true; + + // Initialize preferences from meta-object data + if (!readPersistentPreferences()) { + + // Reading failed, initialize default values + m_preferences->setPreference(InfoWidgetPreferences::DisplaySpn, + DISPLAY_SETTING_ON); + m_preferences->setPreference(InfoWidgetPreferences::DisplayMcn, + DISPLAY_SETTING_ON); + m_preferences->setPreference(InfoWidgetPreferences::DisplaySatText, + DISPLAY_SETTING_ON); + } + m_preferences->storePreferences(); + + // Layout components + layoutInfoDisplay(); + + // Update background frame size + m_backgroundFrameItem->resize(size()); + + // Listen for model changes + QObject::connect(m_engine.data(), SIGNAL(modelChanged()), + this, SLOT(readModel()), Qt::UniqueConnection); + + DPRINT << ": OUT"; +} + +/*! + InfoWidget::onUninitialize() +*/ +void InfoWidget::onUninitialize() +{ + DPRINT << ": IN"; + stopMarquees(); + m_initialized = false; + m_engine->suspend(); + DPRINT << ": OUT"; +} + +/*! + InfoWidget::onShow() +*/ +void InfoWidget::onShow() +{ + DPRINT; + if (m_initialized) { + m_engine->resume(); + updateInfoDisplay(); + } +} + +/*! + InfoWidget::onHide() +*/ +void InfoWidget::onHide() +{ + DPRINT; + if (m_initialized) { + m_engine->suspend(); + stopMarquees(); + } +} + +/*! + InfoWidget::timerEvent() +*/ +void InfoWidget::timerEvent(QTimerEvent *event) +{ + Q_UNUSED(event); + + if (m_animationState == AnimationStarting) { + // Execute delayed start of marquee animation + if (m_animatingItem) { + m_animationState = AnimationOngoing; + m_animatingItem->startAnimation(); + } + } + + if (m_timerId) { + killTimer(m_timerId); + m_timerId = 0; + } +} + +/*! + InfoWidget::installTranslator() +*/ +bool InfoWidget::installTranslator(QString translationFile) +{ + DPRINT << ": IN"; + + QString lang = QLocale::system().name(); + QString path = "z:/resource/qt/translations/"; + bool translatorLoaded(false); + + QScopedPointer widgetTranslator; + widgetTranslator.reset(new QTranslator); + translatorLoaded = widgetTranslator->load( + path + translationFile + "_" + lang); + if (translatorLoaded) { + qApp->installTranslator(widgetTranslator.data()); + m_translators.append(widgetTranslator.take()); + DPRINT << ": translator installed: " << translationFile; + } + + DPRINT << ": OUT"; + return translatorLoaded; +} + +/*! + InfoWidget::removeTranslators() + + Remove translators from qApp and delete objects +*/ +void InfoWidget::removeTranslators() +{ + DPRINT << ": IN"; + + foreach (QTranslator *translator, m_translators) { + qApp->removeTranslator(translator); + } + qDeleteAll(m_translators); + m_translators.clear(); + + DPRINT << ": OUT"; +} + +/*! + InfoWidget::boundingRect() +*/ +QRectF InfoWidget::boundingRect() const +{ + return rect(); +} + +/*! + InfoWidget::sizeHint() + + Calculate size hint based on visible rows count +*/ +QSizeF InfoWidget::sizeHint(Qt::SizeHint which, const QSizeF & constraint) const +{ + Q_UNUSED(which); + Q_UNUSED(constraint); + + QSizeF requiredSize( + INFOWIDGET_DEFAULT_WIDTH, + INFOWIDGET_DEFAULT_HEIGHT); + + if (m_initialized) { + // Read size hint from docml content + requiredSize = m_layoutManager->contentWidget()->minimumSize(); + // Height according number of rows, if 0 or 1 row use minimum size + int rowCount = m_preferences->visibleItemCount(); + if (1 < rowCount) { + requiredSize.rheight() += (rowCount-1)* + m_layoutManager->layoutRowHeight(); + } + + // Update background frame size + // if widget size is changing + if (size() != requiredSize) { + m_backgroundFrameItem->resize(requiredSize); + } + } + + DPRINT << ": returning size: " << requiredSize; + return requiredSize; +} + +/*! + InfoWidget::sizePolicy() +*/ +QSizePolicy InfoWidget::sizePolicy () const +{ + DPRINT; + return QSizePolicy( + QSizePolicy::Fixed, + QSizePolicy::Fixed); +} + +/*! + InfoWidget::updateItemsVisibility() +*/ +void InfoWidget::updateItemsVisibility() +{ + DPRINT <<": IN"; + int layoutRows = 0; + QList widgetsToHide; + + // Update layout according to item visibility settings + if (m_preferences->preference(InfoWidgetPreferences::DisplaySpn).compare( + DISPLAY_SETTING_ON) == 0) { + layoutRows++; + } else { + m_layoutManager->removeWidget(InfoWidgetLayoutManager::RoleSpnMarqueeItem); + m_layoutManager->removeWidget(InfoWidgetLayoutManager::RoleSpnIcon); + } + + if (m_preferences->preference(InfoWidgetPreferences::DisplayMcn).compare( + DISPLAY_SETTING_ON) == 0) { + layoutRows++; + } else { + m_layoutManager->removeWidget(InfoWidgetLayoutManager::RoleMcnMarqueeItem); + m_layoutManager->removeWidget(InfoWidgetLayoutManager::RoleMcnIcon); + } + + if (m_preferences->preference(InfoWidgetPreferences::DisplaySatText).compare( + DISPLAY_SETTING_ON) == 0) { + layoutRows++; + } else { + m_layoutManager->removeWidget(InfoWidgetLayoutManager::RoleSatMarqueeItem); + m_layoutManager->removeWidget(InfoWidgetLayoutManager::RoleSatTextIcon); + } + + DPRINT << ": visible layout rows count: " << layoutRows; + m_layoutManager->setLayoutRows(layoutRows); +} + +/*! + InfoWidget::layoutInfoDisplay() + + Layout info display +*/ +void InfoWidget::layoutInfoDisplay() +{ + DPRINT << ": IN"; + + QGraphicsLayout *infoDisplayLayout = + m_layoutManager->layoutInfoDisplay(); + + if (!m_layout->count()) { + QGraphicsWidget *contentWidget = + m_layoutManager->contentWidget(); + if (contentWidget) { + // Add content widget to main layout + m_layout->addItem(contentWidget); + } + } + + updateItemsVisibility(); + + endChanges(); + DPRINT << ": OUT"; +} + +/*! + InfoWidget::layoutSettingsDialog() + + Layout and display settings dialog +*/ +void InfoWidget::layoutSettingsDialog() +{ + DPRINT << ": IN"; + startChanges(); + + m_layoutManager->reloadWidgets(InfoWidgetLayoutManager::SettingsDialog); + QGraphicsLayout *settingDialogLayout = + m_layoutManager->layoutSettingsDialog(); + + if (settingDialogLayout) { + HbDialog *settingsDialog = qobject_cast( + m_layoutManager->getWidget(InfoWidgetLayoutManager:: + RoleSettingsDialog)); + + if (settingsDialog) { + DPRINT << ": settingsDialog has been returned from layout manager"; + initializeSettingsDialogItems(); + + settingsDialog->setDismissPolicy(HbDialog::NoDismiss); + settingsDialog->setTimeout(HbDialog::NoTimeout); + settingsDialog->open(this, + SLOT(settingsDialogClosed(HbAction *))); + } + } + DPRINT << ": OUT"; +} + +/*! + InfoWidget::initializeSettingsDialogItems() + + Set up initial check box states + and connect signals to local slots +*/ +void InfoWidget::initializeSettingsDialogItems() +{ + DPRINT << ": IN"; + + // Connect display setting check boxes + HbCheckBox *spnCheckBox = + qobject_cast(m_layoutManager->getWidget( + InfoWidgetLayoutManager::RoleSpnCheckBox)); + if (spnCheckBox) { + spnCheckBox->setChecked(m_preferences->isPreferenceSet( + InfoWidgetPreferences::DisplaySpn)); + + QObject::connect(spnCheckBox, SIGNAL(stateChanged(int)), + this, SLOT(spnDisplaySettingChanged(int)), + Qt::UniqueConnection); + } + + HbCheckBox *mcnCheckBox = + qobject_cast(m_layoutManager->getWidget( + InfoWidgetLayoutManager::RoleMcnCheckBox)); + if (mcnCheckBox) { + mcnCheckBox->setChecked(m_preferences->isPreferenceSet( + InfoWidgetPreferences::DisplayMcn)); + + QObject::connect(mcnCheckBox, SIGNAL(stateChanged(int)), + this, SLOT(mcnDisplaySettingChanged(int)), + Qt::UniqueConnection); + } + + HbCheckBox *satTextCheckBox = + qobject_cast(m_layoutManager->getWidget( + InfoWidgetLayoutManager::RoleSatTextCheckBox)); + if (satTextCheckBox) { + satTextCheckBox->setChecked(m_preferences->isPreferenceSet( + InfoWidgetPreferences::DisplaySatText)); + + QObject::connect(satTextCheckBox, SIGNAL(stateChanged(int)), + this, SLOT(satDisplaySettingChanged(int)), + Qt::UniqueConnection); + } + + DPRINT << ": OUT"; +} + +/*! + InfoWidget::updateInfoDisplayItem() + + Fetch widget based on item role and update + item specific data. +*/ +void InfoWidget::updateInfoDisplayItem( + InfoWidgetLayoutManager::LayoutItemRole itemRole, + QString text) +{ + DPRINT; + HbMarqueeItem *marqueeItem = qobject_cast( + m_layoutManager->getWidget(itemRole)); + + if (marqueeItem) { + marqueeItem->setText(text); + marqueeItem->setTextColor( HbColorScheme::color( + "qtc_hs_list_item_title_normal")); + + // Update widget effective size if not already set + marqueeItem->adjustSize(); + if (!m_layoutManager->textFitsToRect( + text, + marqueeItem->font(), + marqueeItem->rect())) { + DPRINT << ": enable marquee animation"; + m_animatingItems.append(marqueeItem); + } + } +} + +/*! + InfoWidget::updateInfoDisplay() + + Model or visibility data has changed, + update info display widgets accordingly. +*/ +void InfoWidget::updateInfoDisplay() +{ + DPRINT << ": IN"; + + if (m_initialized) { + stopMarquees(); + + if (m_layoutManager->currentDisplayRole() == + InfoWidgetLayoutManager::InfoDisplay ) + { + QString text; + InfoWidgetEngine::ModelData modelData = m_engine->modelData(); + + // Update service provider name item + text = modelData.serviceProviderName(); + updateInfoDisplayItem(InfoWidgetLayoutManager::RoleSpnMarqueeItem, text); + + // Update MCN name item + text = modelData.mcnName(); + updateInfoDisplayItem(InfoWidgetLayoutManager::RoleMcnMarqueeItem, text); + + // Update SAT display text item + text = modelData.satDisplayText(); + updateInfoDisplayItem(InfoWidgetLayoutManager::RoleSatMarqueeItem, text); + } + + if (m_animatingItems.count() > 0) { + startMarquees(StartDelayed); + } + } +} + +/*! + InfoWidget::readModel() + + Read model data. Model's modelChanged - signal is connected to this slot. +*/ +void InfoWidget::readModel() +{ + DPRINT << ": IN"; + + if (m_layoutManager->currentDisplayRole() == + InfoWidgetLayoutManager::InfoDisplay) { + updateInfoDisplay(); + } + DPRINT << ": OUT"; +} + +/*! + InfoWidget::handleModelError() + + Model error signal is connected to this slot +*/ +void InfoWidget::handleModelError(int operation,int errorCode) +{ + DWARNING << ": operation: " << operation << " error: " << errorCode; +} + +/*! + InfoWidget::mousePressEvent() +*/ +void InfoWidget::mousePressEvent(QGraphicsSceneMouseEvent *event) +{ + Q_UNUSED(event); + + // Clear flag + m_dragEvent = false; +} + +/*! + InfoWidget::mouseReleaseEvent() +*/ +void InfoWidget::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) +{ + Q_UNUSED(event); + + // If in info display and widget wasn't dragged + // layout and open settings dialog + if ((!m_dragEvent) && + m_layoutManager->currentDisplayRole() == + InfoWidgetLayoutManager::InfoDisplay) { + DPRINT << ": layout and display settings dialog"; + layoutSettingsDialog(); + } + + // Clear flag + m_dragEvent = false; + +} + +/*! + InfoWidget::mouseMoveEvent() +*/ +void InfoWidget::mouseMoveEvent(QGraphicsSceneMouseEvent *event) +{ + Q_UNUSED(event); + + // Mouse is moving + // after mouse press event + m_dragEvent = true; +} + +/*! + InfoWidget::spnDisplaySettingChanged() +*/ +void InfoWidget::spnDisplaySettingChanged(int state) +{ + DPRINT << ": state: " << state; + if (state == Qt::Checked){ + m_preferences->setPreference( + InfoWidgetPreferences::DisplaySpn, DISPLAY_SETTING_ON); + } else { + m_preferences->setPreference( + InfoWidgetPreferences::DisplaySpn, DISPLAY_SETTING_OFF); + } +} + +/*! + InfoWidget::mcnDisplaySettingChanged() +*/ +void InfoWidget::mcnDisplaySettingChanged(int state) +{ + DPRINT << ": state: " << state; + if (state == Qt::Checked){ + m_preferences->setPreference( + InfoWidgetPreferences::DisplayMcn, DISPLAY_SETTING_ON); + } else { + m_preferences->setPreference( + InfoWidgetPreferences::DisplayMcn, DISPLAY_SETTING_OFF); + } +} + +/*! + InfoWidget::satDisplaySettingChanged() +*/ +void InfoWidget::satDisplaySettingChanged(int state) +{ + DPRINT << ": state: " << state; + if (state == Qt::Checked){ + m_preferences->setPreference( + InfoWidgetPreferences::DisplaySatText, DISPLAY_SETTING_ON); + } else { + m_preferences->setPreference( + InfoWidgetPreferences::DisplaySatText, DISPLAY_SETTING_OFF); + } +} + +/*! + InfoWidget::mcnDisplay() + + Getter function for Meta-object property "mcnDisplay" +*/ +QString InfoWidget::mcnDisplay() +{ + DPRINT; + return m_preferences->preference( + InfoWidgetPreferences::DisplayMcn); +} + +/*! + InfoWidget::setMcnDisplay() + + Setter function for Meta-object property "mcnDisplay" +*/ +void InfoWidget::setMcnDisplay(QString value) +{ + DPRINT; + m_preferences->setPreference( + InfoWidgetPreferences::DisplayMcn, value); + } + +/*! + InfoWidget::homeZoneDisplay() + + Getter function for Meta-object property "homeZoneDisplay" +*/ +QString InfoWidget::homeZoneDisplay() +{ + DPRINT; + return m_preferences->preference( + InfoWidgetPreferences::DisplayHomeZone); +} + +/*! + InfoWidget::setHomeZoneDisplay() + + Setter function for Meta-object property "homeZoneDisplay" +*/ +void InfoWidget::setHomeZoneDisplay(QString value) +{ + DPRINT; + m_preferences->setPreference( + InfoWidgetPreferences::DisplayHomeZone, value); +} + +/*! + InfoWidget::activeLineDisplay() + + Getter function for Meta-object property "activeLineDisplay" +*/ +QString InfoWidget::activeLineDisplay() +{ + DPRINT; + return m_preferences->preference( + InfoWidgetPreferences::DisplayActiveLine); +} + +/*! + InfoWidget::setActiveLineDisplay() + + Setter function for Meta-object property "activeLineDisplay" +*/ +void InfoWidget::setActiveLineDisplay(QString value) +{ + DPRINT; + m_preferences->setPreference( + InfoWidgetPreferences::DisplayActiveLine, value); +} + +/*! + InfoWidget::satDisplay() + + Getter function for Meta-object property "satDisplay" +*/ +QString InfoWidget::satDisplay() +{ + DPRINT; + return m_preferences->preference( + InfoWidgetPreferences::DisplaySatText); +} + +/*! + InfoWidget::setSatDisplay() + + Setter function for Meta-object property "satDisplay" +*/ +void InfoWidget::setSatDisplay(QString value) +{ + DPRINT; + m_preferences->setPreference( + InfoWidgetPreferences::DisplaySatText, value); +} + +/*! + InfoWidget::spnDisplay() + + Getter function for Meta-object property "spnDisplay" +*/ +QString InfoWidget::spnDisplay() +{ + DPRINT; + return m_preferences->preference( + InfoWidgetPreferences::DisplaySpn); +} + +/*! + InfoWidget::setSpnDisplay() + + Setter function for Meta-object property "spnDisplay" +*/ +void InfoWidget::setSpnDisplay(QString value) +{ + DPRINT; + m_preferences->setPreference( + InfoWidgetPreferences::DisplaySpn, value); +} + +/*! + InfoWidget::readPersistentPreferences() + + Read Meta-object properties and store to preference handler. + Restores preferences from previous session. +*/ +bool InfoWidget::readPersistentPreferences() +{ + DPRINT; + bool changed(false); + + QString propertyValue = QObject::property("homeZoneDisplay").toString(); + m_preferences->setPreference(InfoWidgetPreferences::DisplayHomeZone, + propertyValue); + + propertyValue = QObject::property("mcnDisplay").toString(); + m_preferences->setPreference(InfoWidgetPreferences::DisplayMcn, + propertyValue); + + propertyValue = QObject::property("activeLineDisplay").toString(); + m_preferences->setPreference(InfoWidgetPreferences::DisplayActiveLine, + propertyValue); + + propertyValue = QObject::property("satDisplay").toString(); + m_preferences->setPreference(InfoWidgetPreferences::DisplaySatText, + propertyValue); + + propertyValue = QObject::property("spnDisplay").toString(); + m_preferences->setPreference(InfoWidgetPreferences::DisplaySpn, + propertyValue); + + // Check that at least one item is set visible and + // store preferences if true + if (m_preferences->validate()) { + changed = m_preferences->storePreferences(); + } + + return changed; +} + +/*! + InfoWidget::initializeCheckBoxStates() + + Read display settings from preference store + and set check box initial states accordingly. +*/ +void InfoWidget::initializeCheckBoxStates() +{ + DPRINT; + HbCheckBox *spnCheckBox = qobject_cast(m_layoutManager->getWidget( + InfoWidgetLayoutManager::RoleSpnCheckBox)); + if (spnCheckBox) { + spnCheckBox->setChecked(m_preferences->isPreferenceSet( + InfoWidgetPreferences::DisplaySpn)); + } + + HbCheckBox *mcnCheckBox = qobject_cast(m_layoutManager->getWidget( + InfoWidgetLayoutManager::RoleMcnCheckBox)); + if (mcnCheckBox) { + mcnCheckBox->setChecked(m_preferences->isPreferenceSet( + InfoWidgetPreferences::DisplayMcn)); + } + + HbCheckBox *satTextCheckBox = qobject_cast(m_layoutManager->getWidget( + InfoWidgetLayoutManager::RoleSatTextCheckBox)); + if (satTextCheckBox) { + satTextCheckBox->setChecked(m_preferences->isPreferenceSet( + InfoWidgetPreferences::DisplaySatText)); + } +} + +/*! + InfoWidget::settingsEditingFinished() +*/ +void InfoWidget::settingsEditingFinished() +{ + DPRINT << ": IN"; + + // Save settings data if validation succeeds + if (m_preferences->validate()) { + DPRINT << ": switching to info display"; + + // Signal HS framework to store Meta-object + // preferences if changed + if (m_preferences->storePreferences()) { + emit setPreferences( + m_preferences->preferenceNames()); + } + + // Visible item configuration changed, reload + // widgets. Restores deleted items. + m_layoutManager->reloadWidgets( + InfoWidgetLayoutManager::InfoDisplay); + m_layoutManager->removeWidget( + InfoWidgetLayoutManager::RoleSettingsDialog, + true); + + } else { + DPRINT << ": settings validation failed"; + // Cancel edit mode + settingsEditingCancelled(); + + // Display warning note + settingsValidationFailed(); + } + + DPRINT << ": OUT"; +} + +/*! + InfoWidget::settingsEditingCancelled() + + Slot to be called when settings editing + shouldn't cause change set of visible items. + Restores previous state. +*/ +void InfoWidget::settingsEditingCancelled() +{ + DPRINT; + m_preferences->restorePreferences(); + + m_layoutManager->reloadWidgets( + InfoWidgetLayoutManager::InfoDisplay); + m_layoutManager->removeWidget( + InfoWidgetLayoutManager::RoleSettingsDialog, + true); +} + +/*! + InfoWidget::settingsDialogClosed() + + Slot to be called when settings dialog is about to close +*/ +void InfoWidget::settingsDialogClosed(HbAction* action) +{ + DPRINT << ": IN"; + if (action) { + if (action->text() == hbTrId("txt_common_button_ok")) { + settingsEditingFinished(); + } else if (action->text() == hbTrId("txt_common_button_cancel") ) { + settingsEditingCancelled(); + } + } else { + DPRINT << ": null action"; + settingsEditingCancelled(); + } + + // Switch to info display + layoutInfoDisplay(); + DPRINT << ": OUT"; +} + +/*! + InfoWidget::startChanges() +*/ +void InfoWidget::startChanges() +{ + DPRINT; + m_layoutChanging = true; + if (m_animationState != AnimationIdle) { + stopMarquees(); + } +} + +/*! + InfoWidget::endChanges() +*/ +void InfoWidget::endChanges() +{ + DPRINT; + updateGeometry(); + updateInfoDisplay(); + + m_layoutChanging = false; +} + +/*! + \reimp +*/ +void InfoWidget::changeEvent(QEvent *event) +{ + DPRINT; + if (event->type() == HbEvent::ThemeChanged) { + DPRINT << ": HbEvent::ThemeChanged"; + updateInfoDisplay(); + } + HbWidget::changeEvent(event); +} + +/*! + InfoWidget::settingsValidationFailed() + + Slot to be called when preference validation has failed. + Displays warning message box +*/ +void InfoWidget::settingsValidationFailed() +{ + DPRINT; + if (m_initialized) { + HbMessageBox::warning( + hbTrId("txt_operatorwidget_info_select_one")); + } +} + +/*! + InfoWidget::startMarquees() + + Start marquee animations. + First find existing marquee items and + enable marquee sequence +*/ +bool InfoWidget::startMarquees(AnimationStartDelay delay) +{ + DPRINT; + bool started(true); + + if (m_animationState == AnimationOngoing || + m_animationState == AnimationStarting) { + return false; + } + + int animatingItemsCount = m_animatingItems.count(); + if (animatingItemsCount > 0) { + HbMarqueeItem *marqueeItem(NULL); + foreach (marqueeItem, m_animatingItems) { + if (animatingItemsCount > 1) { + // Multiple items, connect to marqueeNext() + // sequence logic + QObject::connect( + marqueeItem,SIGNAL(animationStopped()), + this, SLOT(marqueeNext()), + Qt::UniqueConnection); + marqueeItem->setLoopCount(1); + } else if (animatingItemsCount ==1 ){ + // Single item, set continuous marquee mode + marqueeItem->setLoopCount(-1); + } + } + + // Store marquee sequence start item + m_animatingItem = m_animatingItems.first(); + + if (delay == StartNoDelay) { + m_animationState = AnimationOngoing; + m_animatingItem->startAnimation(); + } else if (delay == StartDelayed && !m_timerId) { + m_animationState = AnimationStarting; + m_timerId = startTimer(100); + } + + } else { + // No animating items, not started + DWARNING << ": not done, no animating items"; + m_animatingItem = NULL; + started = false; + } + + return started; +} + +/*! + InfoWidget::stopMarquees() + + Stop all marquee animations and reset + animation state +*/ +void InfoWidget::stopMarquees() +{ + DPRINT; + if (m_animationState != AnimationIdle && + m_animatingItems.count() > 0) { + HbMarqueeItem *marqueeItem(NULL); + + foreach (marqueeItem, m_animatingItems) { + + // Disconnect if more than one item, + // single animator doesn't connect to animationStopped() + if (m_animatingItems.count() > 1) { + QObject::disconnect( + marqueeItem, SIGNAL(animationStopped()), + this, SLOT(marqueeNext())); + } + + if (marqueeItem->isAnimating()) { + marqueeItem->stopAnimation(); + } + } + } + + // Stop timer + if (m_timerId) { + killTimer(m_timerId); + m_timerId = 0; + } + + m_animationState = AnimationIdle; + m_animatingItems.clear(); + m_animatingItem = NULL; +} + +/*! + InfoWidget::marqueeNext() + + Starts marquee animation for + next item in sequence. +*/ +void InfoWidget::marqueeNext() +{ + DPRINT; + if (m_animationState == AnimationOngoing) { + QListIterator i(m_animatingItems); + if (i.findNext(m_animatingItem)) { + if (i.hasNext()) { + m_animatingItem = i.peekNext(); + } else { + // Was last item, loop back to first item + i.toFront(); + m_animatingItem = i.peekNext(); + } + } else { + DWARNING << ": animating item not found from list"; + m_animatingItem = NULL; + } + + if (m_animatingItem) { + if (!m_animatingItem->isAnimating()) { + m_animatingItem->setLoopCount(1); + m_animatingItem->startAnimation(); + } + } + } + +} + +// End of File. + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidget/src/infowidgetengine.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/infowidget/src/infowidgetengine.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,222 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: + * + */ + +#include +#include "infowidgetengine.h" +#include "infowidgetnetworkhandler.h" +#include "infowidgetsathandler.h" +#include "infowidgetlogging.h" +#include "infowidgetpreferences.h" + +/*! + \class InfoWidgetEngine + \brief Engine functionality of + Operator info widget +*/ + + +/*! + InfoWidgetEngine::InfoWidgetEngine + */ +InfoWidgetEngine::InfoWidgetEngine(QObject *parent): + QObject(parent), + m_networkHandler(new InfoWidgetNetworkHandler), + m_satHandler(new InfoWidgetSatHandler) +{ + DPRINT << ": IN"; + + // Connect network handler signals + QObject::connect( + m_networkHandler.data(), SIGNAL(networkError(int, int)), + this, SLOT(handleNetworkError(int, int))); + QObject::connect( + m_networkHandler.data(), SIGNAL(networkDataChanged()), + this, SLOT(updateNetworkDataToModel())); + + // Connect SAT handler signals + QObject::connect(m_satHandler.data(), + SIGNAL(handleError(int, int)), + this, SLOT(handleSatError(int, int))); + QObject::connect(m_satHandler.data(), + SIGNAL(handleMessage(int)), + this, SLOT(updateSatDataToModel())); + + // Update initial model data + updateNetworkDataToModel(); + updateSatDataToModel(); + + DPRINT << ": OUT"; +} + +/*! + InfoWidgetEngine::~InfoWidgetEngine + */ +InfoWidgetEngine::~InfoWidgetEngine() +{ + DPRINT; +} + +/*! + InfoWidgetEngine::modelData + + Getter for model data. + */ +const InfoWidgetEngine::ModelData& InfoWidgetEngine::modelData() const +{ + DPRINT; + return m_modelData; +} + +/*! + InfoWidgetEngine::updateNetworkDataToModel + + Updates Network Handler's network data to model. + */ +void InfoWidgetEngine::updateNetworkDataToModel() +{ + DPRINT << ": IN"; + + if (m_networkHandler->sessionExists() && + m_networkHandler->isOnline()) { + + m_modelData.setServiceProviderName( + m_networkHandler->serviceProviderName()); + m_modelData.setServiceProviderNameDisplayRequired( + m_networkHandler->serviceProviderNameDisplayRequired()); + + m_modelData.setMcnName(m_networkHandler->mcnName()); + m_modelData.setMcnIndicatorType( + m_networkHandler->mcnIndicatorType()); + + m_modelData.setHomeZoneIndicatorType( + m_networkHandler->homeZoneIndicatorType()); + m_modelData.setHomeZoneTextTag( + m_networkHandler->homeZoneTextTag()); + } else { + // Not registered to network, clear data + m_modelData.setServiceProviderName(QString("")); + m_modelData.setMcnName(QString("")); + m_modelData.setHomeZoneTextTag(QString("")); + } + + emit modelChanged(); + + DPRINT << ": OUT"; +} + +/*! + InfoWidgetEngine::updateSatDataToModel + + Updates SAT handler's SAT data to model. + */ +void InfoWidgetEngine::updateSatDataToModel() +{ + DPRINT; + if (m_satHandler) { + m_modelData.setSatDisplayText( + m_satHandler->satDisplayText()); + + emit modelChanged(); + } +} + +/*! + InfoWidgetEngine::updateLineDataToModel + */ +void InfoWidgetEngine::updateLineDataToModel() +{ + DPRINT; +} + +/*! + InfoWidgetEngine::handleNetworkError + */ +void InfoWidgetEngine::handleNetworkError( + int operation, int errorCode) +{ + DWARNING << ": operation: " << operation << + " error code: " << errorCode; +} + +/*! + InfoWidgetEngine::handleSatError + */ +void InfoWidgetEngine::handleSatError( + int operation, int errorCode) +{ + DWARNING << ": operation: " << operation << + " error code: " << errorCode; +} + +/*! + InfoWidgetEngine::handleLineError + */ +void InfoWidgetEngine::handleLineError( + int operation, int errorCode) +{ + DWARNING << ": operation: " << + operation << " error code: " << errorCode; +} + +/*! + InfoWidgetEngine::handlePreferencesChanged + */ +void InfoWidgetEngine::handlePreferencesChanged( + InfoWidgetPreferences::Options options) +{ + DPRINT; + if (options.testFlag(InfoWidgetPreferences::DisplayMcn)){ + m_networkHandler->enableMcn(); + } else { + m_networkHandler->disableMcn(); + } + + if (options.testFlag(InfoWidgetPreferences::DisplaySatText)){ + m_satHandler->connect(true); + } else { + m_satHandler->connect(false); + } +} + +/*! + InfoWidgetEngine::suspend + + Called when widget is deactivated + and widget should suspend all + possible activities + */ +void InfoWidgetEngine::suspend() +{ + DPRINT; + m_networkHandler->suspend(); +} + +/*! + InfoWidgetEngine::preferenceChanged + + Called when widget is activated + and widget can resume activities + */ +void InfoWidgetEngine::resume() +{ + DPRINT; + m_networkHandler->resume(); +} + + +// End of File. + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidget/src/infowidgetengine_s.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/infowidget/src/infowidgetengine_s.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,125 @@ +/* + * 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 "infowidgetengine.h" +#include "infowidgetlogging.h" + +/*! + InfoWidgetEngine::InfoWidgetEngine + */ +InfoWidgetEngine::InfoWidgetEngine(QObject *parent): + QObject(parent) +{ + DPRINT; +} + +/*! + InfoWidgetEngine::~InfoWidgetEngine + */ +InfoWidgetEngine::~InfoWidgetEngine() +{ + DPRINT; +} + +/*! + InfoWidgetEngine::logModelData + + Utility function for logging model data + */ +void InfoWidgetEngine::logModelData() +{ + DPRINT << ": mcn name: " << m_modelData.mcnName(); + DPRINT << ": service provider name: " << m_modelData.serviceProviderName(); + DPRINT << ": homezone text tag: " << m_modelData.homeZoneTextTag(); + + DPRINT << ": mcn type: " << m_modelData.mcnIndicatorType(); + DPRINT << ": active line: " << m_modelData.activeLine(); + DPRINT << ": homezone indicator type: " << m_modelData.homeZoneIndicatorType(); +} + +/*! + InfoWidgetEngine::modelData + + Getter for model data. + */ +const InfoWidgetEngine::ModelData& InfoWidgetEngine::modelData() const +{ + DPRINT; + return m_modelData; +} + +/*! + InfoWidgetEngine::setModelData + + Enables setting model initial data to engine. + */ +void InfoWidgetEngine::setModelData(const InfoWidgetEngine::ModelData &data) +{ + DPRINT; + m_modelData = data; +} + +/*! + InfoWidgetEngine::updateNetworkDataToModel + */ +void InfoWidgetEngine::updateNetworkDataToModel() +{ + DPRINT; +} + +/*! + InfoWidgetEngine::updateSatDataToModel + */ +void InfoWidgetEngine::updateSatDataToModel() +{ + DPRINT; +} + +/*! + InfoWidgetEngine::updateLineDataToModel + */ +void InfoWidgetEngine::updateLineDataToModel() +{ + DPRINT; +} + +/*! + InfoWidgetEngine::handleNetworkError + */ +void InfoWidgetEngine::handleNetworkError(int operation, int errorCode) +{ + DPRINT << ": operation: " << operation << " error code: " << errorCode; +} + +/*! + InfoWidgetEngine::handleSatError + */ +void InfoWidgetEngine::handleSatError(int operation, int errorCode) +{ + DPRINT << ": operation: " << operation << " error code: " << errorCode; +} + +/*! + InfoWidgetEngine::handleLineError + */ +void InfoWidgetEngine::handleLineError(int operation, int errorCode) +{ + DPRINT << ": operation: " << operation << " error code: " << errorCode; +} + +// End of File. + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidget/src/infowidgetlayoutmanager.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/infowidget/src/infowidgetlayoutmanager.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,666 @@ +/* + * 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 "infowidgetlayoutmanager.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "infowidgetlogging.h" + +/*! + \class InfoWidgetDocumentLoader + \brief Custom document loader for Operator info widget + + Derived from HbDocumentLoader. + +*/ + +/*! + \class InfoWidgetLayoutManager + \brief Layout manager class for Operator info widget. + + Handles layout document loading and accessing the loaded + widgets. + +*/ + +// Local constants +const char INFOWIDGET_DOCML_FILE[] = ":/resource/infowidget.docml"; +const char SETTINGS_DIALOG_DOCML_FILE[] = ":/resource/settingsdialog.docml"; + +const char LAYOUT_PREFIX_INFO_DISPLAY[] = "id:"; +const char LAYOUT_PREFIX_SETTINGS_DIALOG[] = "sd:"; +const char LAYOUT_NAME_CONTENT[] = "content"; +const char LAYOUT_NAME_MCNMARQUEEITEM[] = "mcnMarqueeItem"; +const char LAYOUT_NAME_SPNMARQUEEITEM[] = "spnMarqueeItem"; +const char LAYOUT_NAME_SATMARQUEEITEM[] = "satMarqueeItem"; +const char LAYOUT_NAME_SPNICON[] = "spnIcon"; +const char LAYOUT_NAME_MCNICON[] = "mcnIcon"; +const char LAYOUT_NAME_SATTEXTICON[] = "satTextIcon"; +const char LAYOUT_NAME_SPNCHECKBOX[] = "spnCheckBox"; +const char LAYOUT_NAME_MCNCHECKBOX[] = "mcnCheckBox"; +const char LAYOUT_NAME_SATTEXTCHECKBOX[] = "satTextCheckBox"; +const char LAYOUT_NAME_OKACTION[] = "okAction"; +const char LAYOUT_NAME_CANCELACTION[] = "cancelAction"; +const char LAYOUT_NAME_SETTINGSDIALOG[] = "settingsDialog"; +const char LAYOUT_NAME_SETTINGSCONTAINER[] = "settingsContainer"; +const char LAYOUT_NAME_CONTAINER[] = "container"; + +/*! + InfoWidgetDocumentLoader::InfoWidgetDocumentLoader() + */ +InfoWidgetDocumentLoader::InfoWidgetDocumentLoader() +{ +} + +/*! + InfoWidgetDocumentLoader::createObject() + */ +QObject *InfoWidgetDocumentLoader::createObject( + const QString &type, + const QString &name) +{ + DPRINT << ": IN"; + + DPRINT << ": type: "<< type; + DPRINT << ": name: "<< name; + + if ( type == HbMarqueeItem::staticMetaObject.className() ) { + DPRINT << ": HbMarqueeItem"; + QObject *object = new HbMarqueeItem; + object->setObjectName(name); + DPRINT << ": HbMarqueeitem found, OUT"; + return object; + } + + DPRINT << ": OUT"; + return HbDocumentLoader::createObject(type, name); +} + +/*! + InfoWidgetLayoutManager::InfoWidgetLayoutManager() +*/ +InfoWidgetLayoutManager::InfoWidgetLayoutManager(QObject *parent) +: QObject(parent), + m_documentLoader(NULL), + m_displayRole(InfoDisplay), + m_layoutRows(0) +{ + DPRINT << ": IN"; + + // Fill supported layout item roles for info display + QList displayWidgetRoles = widgetRoles(InfoDisplay); + + // Try to load all widgets in list by widget role + bool loadResult = loadWidgets(InfoDisplay, + displayWidgetRoles, + m_infoDisplayWidgets); + DPRINT << ": info display widget load result: " << loadResult; + + // Fill supported layout item roles for settings display + displayWidgetRoles = widgetRoles(SettingsDialog); + + // Try to load all widgets in list by widget role + loadResult = loadWidgets(SettingsDialog, + displayWidgetRoles, + m_settingsDialogWidgets); + DPRINT << ": settings dialog widget load result: " << loadResult; + + DPRINT << ": OUT"; +} + +/*! + InfoWidgetLayoutManager::~InfoWidgetLayoutManager() +*/ +InfoWidgetLayoutManager::~InfoWidgetLayoutManager() +{ + DPRINT << ": IN"; + + if (m_documentLoader) { + delete m_documentLoader; + } + + DPRINT << ": OUT"; +} + +/*! + InfoWidgetLayoutManager::destroyWidgets() +*/ +void InfoWidgetLayoutManager::destroyWidgets() +{ + DPRINT << ": IN"; + + // Destroy parent items + removeWidget(RoleContent); + removeWidget(RoleSettingsDialog); + + DPRINT << ": OUT"; +} + +/*! + InfoWidgetLayoutManager::currentDisplayRole() +*/ +InfoWidgetLayoutManager::DisplayRole InfoWidgetLayoutManager::currentDisplayRole() +{ + DPRINT; + return m_displayRole; +} + +/*! + InfoWidgetLayoutManager::currentWidgetRoles() +*/ +QList InfoWidgetLayoutManager::currentWidgetRoles() +{ + DPRINT; + return m_widgets.keys(); +} + +/*! + InfoWidgetLayoutManager::layoutRows() +*/ +int InfoWidgetLayoutManager::layoutRows() const +{ + DPRINT; + return m_layoutRows; +} + +/*! + InfoWidgetLayoutManager::setLayoutRows() +*/ +void InfoWidgetLayoutManager::setLayoutRows(int rows) +{ + DPRINT; + m_layoutRows = rows; +} + +/*! + InfoWidgetLayoutManager::layoutRowHeight() + + Read size from style, currently graphics icon size used + as it defines row height in layout. Real font height + and layout spacing could be used instead. +*/ +qreal InfoWidgetLayoutManager::layoutRowHeight() const +{ + DPRINT; + HbStyle style; + qreal rowHeight; + + bool ok = style.parameter("hb-param-graphic-size-primary-small", + rowHeight); + if (!ok) { + DWARNING << ": Paremeters reading failed!! Using default"; + rowHeight = 26.8; + } + + DPRINT << ": rowHeight: " << rowHeight; + return rowHeight; +} + +/*! + InfoWidgetLayoutManager::textFitsToRect() + + Check if text fits to given rect width. Return true also if + text width is null, or text width AND rect width is null. +*/ +bool InfoWidgetLayoutManager::textFitsToRect(QString text, + QFont font, QRectF rect) +{ + bool fits(true); + if (!rect.isEmpty()) { + QFontMetricsF metrics(font); + qreal width = metrics.boundingRect(text).width(); + if (width > rect.width() ) { + fits = false; + } + } + + DPRINT << ": fits: " << fits; + return fits; +} + +/*! + InfoWidgetLayoutManager::contentWidget() +*/ +QGraphicsWidget* InfoWidgetLayoutManager::contentWidget() +{ + DPRINT; + return getWidget(RoleContent); +} + +/*! + InfoWidgetLayoutManager::marqueeItems() +*/ +QList InfoWidgetLayoutManager::marqueeItems() +{ + DPRINT; + QList items; + + QList marqueeItemRoles; + marqueeItemRoles.append(RoleSpnMarqueeItem); + marqueeItemRoles.append(RoleMcnMarqueeItem); + marqueeItemRoles.append(RoleSatMarqueeItem); + + LayoutItemRole role; + HbMarqueeItem *item(NULL); + QGraphicsWidget *widget(NULL); + foreach (role, marqueeItemRoles) { + widget = getWidget(role); + if (widget) { + item = qobject_cast(widget); + if (item) { + items.append(item); + item = NULL; + } + } + } + DPRINT << ": count of marquee items: " << items.count(); + return items; +} + +/*! + InfoWidgetLayoutManager::getWidget(); +*/ +QGraphicsWidget* InfoWidgetLayoutManager::getWidget(LayoutItemRole itemRole) +{ + DPRINT << ": item role: " << itemRole; + + QGraphicsWidget *widget = m_widgets.value(itemRole); + if (widget) { + DPRINT << ": widget: " << widget; + } + + return widget; +} + +/*! + InfoWidgetLayoutManager::getObject(); +*/ +QObject* InfoWidgetLayoutManager::getObject(LayoutItemRole itemRole) +{ + DPRINT << ": item role: " << itemRole; + + QObject *object = m_objects.value(itemRole); + if (object) { + DPRINT << ": object: " << object; + } + + return object; +} + +/*! + InfoWidgetLayoutManager::removeWidget(); +*/ +void InfoWidgetLayoutManager::removeWidget(LayoutItemRole itemRole, + bool deleteLater) +{ + DPRINT << ": item role: " << itemRole; + + QGraphicsWidget *widget = m_widgets.value(itemRole); + if (widget) { + DPRINT << ": removing widget: " << widget; + m_widgets.remove(itemRole); + if (!deleteLater) { + delete widget; + } else { + widget->deleteLater(); + } + } + + widget = m_infoDisplayWidgets.value(itemRole); + if (widget) { + DPRINT << ": removing widget from m_infoDisplayWidgets"; + m_infoDisplayWidgets.remove(itemRole); + } + + widget = m_settingsDialogWidgets.value(itemRole); + if (widget) { + DPRINT << ": removing widget from m_settingsDialogWidgets"; + m_settingsDialogWidgets.remove(itemRole); + } +} + +/*! + InfoWidgetLayoutManager::layoutInfoDisplay() +*/ +QGraphicsLayout* InfoWidgetLayoutManager::layoutInfoDisplay() +{ + DPRINT << ": IN"; + + m_displayRole = InfoDisplay; + m_widgets = m_infoDisplayWidgets; + + QGraphicsLayout *activeLayout(NULL); + DPRINT << ": getting content item and using its layout for activeLayout"; + QGraphicsWidget *content = getWidget(RoleContent); + if (content) { + DPRINT << ": content found, getting layout"; + activeLayout = content->layout(); + } + + DPRINT << ": OUT"; + return activeLayout; +} + +/*! + InfoWidgetLayoutManager::layoutSettingsDialog() +*/ +QGraphicsLayout* InfoWidgetLayoutManager::layoutSettingsDialog() +{ + DPRINT << ": IN"; + + m_displayRole = SettingsDialog; + m_widgets = m_settingsDialogWidgets; + + QGraphicsLayout *activeLayout(NULL); + DPRINT << ": getting settingsDialog item"; + QGraphicsWidget *dialog = getWidget(RoleSettingsDialog); + if (dialog) { + DPRINT << ": dialog found, getting layout"; + activeLayout = dialog->layout(); + + HbAction *okAction = qobject_cast(getObject(RoleOkAction)); + if (okAction) { + dialog->addAction(okAction); + } + + HbAction *cancelAction = qobject_cast(getObject(RoleCancelAction)); + if (cancelAction) { + dialog->addAction(cancelAction); + } + } + + DPRINT << ": OUT"; + return activeLayout; +} + +/*! + InfoWidgetLayoutManager::loadWidgets() +*/ +bool InfoWidgetLayoutManager::loadWidgets(const DisplayRole displayRole, + const QList &displayWidgets, + QMap &widgetMap) +{ + DPRINT << ": IN"; + bool loadResult(true); + + // Cleanup previously loaded content in case of any data + widgetMap.clear(); + + if (!m_documentLoader) { + m_documentLoader = new InfoWidgetDocumentLoader; + } + + Q_ASSERT(m_documentLoader); + + bool loaded = true; + if (displayRole != SettingsDialog) { + m_documentLoader->load(INFOWIDGET_DOCML_FILE, &loaded); + } else { + m_documentLoader->load(SETTINGS_DIALOG_DOCML_FILE, &loaded); + } + + Q_ASSERT_X(loaded, + "InfoWidgetLayoutManager", + "Invalid docml file"); + + QGraphicsWidget *widget(NULL); + LayoutItemRole currentWidgetRole; + bool allWidgetsLoaded(true); + + foreach (currentWidgetRole, displayWidgets) { + widget = loadWidget(*m_documentLoader, displayRole, currentWidgetRole); + if (widget) { + widgetMap.insert(currentWidgetRole, widget); + widget = NULL; + } else { + allWidgetsLoaded = false; + DWARNING << ": widget not found!"; + } + } + + DPRINT << ": allWidgetsLoaded: " << allWidgetsLoaded; + + int widgetCount = widgetMap.count(); + if (widgetCount == displayWidgets.count()) { + loadResult = true; + } else { + DWARNING << ": all widgets were not loaded!"; + loadResult = false; + } + + if (displayRole == SettingsDialog) { + m_objects.clear(); + QObject *okAction = + loadObject(*m_documentLoader, + displayRole, + RoleOkAction); + m_objects.insert(RoleOkAction, okAction); + QObject *cancelAction = + loadObject(*m_documentLoader, + displayRole, + RoleCancelAction); + m_objects.insert(RoleCancelAction, cancelAction); + } + + DPRINT << ": OUT"; + return loadResult; +} + +/*! + InfoWidgetLayoutManager::reloadWidgets() +*/ +bool InfoWidgetLayoutManager::reloadWidgets(const DisplayRole displayRole) +{ + QList displayWidgetRoles = widgetRoles(displayRole); + bool loadResult(false); + + switch (displayRole) { + case InfoDisplay: + loadResult = loadWidgets(displayRole, + displayWidgetRoles, + m_infoDisplayWidgets); + break; + case SettingsDialog: + loadResult = loadWidgets(displayRole, + displayWidgetRoles, + m_settingsDialogWidgets); + break; + default: + break; + } + return loadResult; +} + +/*! + InfoWidgetLayoutManager::loadWidget() + + Initialize loader with corresponding document file + before calling this single widget loader utility +*/ +QGraphicsWidget* InfoWidgetLayoutManager::loadWidget(InfoWidgetDocumentLoader &loader, + DisplayRole displayRole, + LayoutItemRole widgetRole) +{ + DPRINT << ": IN"; + + QString widgetPrefix; + if (displayRole == InfoDisplay) { + widgetPrefix = LAYOUT_PREFIX_INFO_DISPLAY; + } else if (displayRole == SettingsDialog) { + widgetPrefix = LAYOUT_PREFIX_SETTINGS_DIALOG; + } + + QGraphicsWidget *widget(NULL); + QString widgetName = widgetPrefix; + + switch (widgetRole) + { + case RoleContent: + widgetName.append(LAYOUT_NAME_CONTENT); + break; + case RoleMcnMarqueeItem: + widgetName.append(LAYOUT_NAME_MCNMARQUEEITEM); + break; + case RoleSpnMarqueeItem: + widgetName.append(LAYOUT_NAME_SPNMARQUEEITEM); + break; + case RoleSatMarqueeItem: + widgetName.append(LAYOUT_NAME_SATMARQUEEITEM); + break; + case RoleSpnIcon: + widgetName.append(LAYOUT_NAME_SPNICON); + break; + case RoleMcnIcon: + widgetName.append(LAYOUT_NAME_MCNICON); + break; + case RoleSatTextIcon: + widgetName.append(LAYOUT_NAME_SATTEXTICON); + break; + case RoleSpnCheckBox: + widgetName.append(LAYOUT_NAME_SPNCHECKBOX); + break; + case RoleMcnCheckBox: + widgetName.append(LAYOUT_NAME_MCNCHECKBOX); + break; + case RoleSatTextCheckBox: + widgetName.append(LAYOUT_NAME_SATTEXTCHECKBOX); + break; + case RoleSettingsDialog: + widgetName.append(LAYOUT_NAME_SETTINGSDIALOG); + break; + case RoleContainer: + widgetName.append(LAYOUT_NAME_CONTAINER); + break; + case RoleSettingsContainer: + widgetName.append(LAYOUT_NAME_SETTINGSCONTAINER); + break; + + case RoleUndefined: // Fall through + default: + break; + } + + DPRINT << ": widget name: " << widgetName; + widget = qobject_cast(loader.findWidget(widgetName)); + + if (widget) { + DPRINT << ": widget found: " << widgetName; + } else { + DPRINT << ": ERROR, widget not found!"; + } + + DPRINT << ": OUT"; + return widget; +} + +/*! + InfoWidgetLayoutManager::loadObject() + + Initialize loader with corresponding document + file before calling this single object loader utility +*/ +QObject* InfoWidgetLayoutManager::loadObject(InfoWidgetDocumentLoader &loader, + DisplayRole displayRole, + LayoutItemRole objectRole) +{ + DPRINT << ": IN"; + + QString objectPrefix; + if (displayRole == InfoDisplay) { + objectPrefix = LAYOUT_PREFIX_INFO_DISPLAY; + } else if (displayRole == SettingsDialog) { + objectPrefix = LAYOUT_PREFIX_SETTINGS_DIALOG; + } + + QObject *object(NULL); + QString objectName = objectPrefix; + + switch (objectRole) + { + case RoleOkAction: + objectName.append(LAYOUT_NAME_OKACTION); + break; + case RoleCancelAction: + objectName.append(LAYOUT_NAME_CANCELACTION); + break; + + case RoleUndefined: // Fall through + default: + break; + } + + DPRINT << ": object name: " << objectName; + object = qobject_cast(loader.findObject(objectName)); + + if (object) { + DPRINT << ": object found: " << objectName; + } else { + DPRINT << ": ERROR, object not found!"; + } + + DPRINT << ": OUT"; + return object; +} + + +/*! + InfoWidgetLayoutManager::widgetRoles() + + Returns supported widget roles for specific display +*/ +const QList InfoWidgetLayoutManager::widgetRoles( + DisplayRole displayRole) const +{ + QList widgetRoles; + switch (displayRole) { + case InfoDisplay: + // Fill supported layout item roles for info display + widgetRoles.append(RoleContent); + widgetRoles.append(RoleSpnIcon); + widgetRoles.append(RoleSpnMarqueeItem); + widgetRoles.append(RoleMcnIcon); + widgetRoles.append(RoleMcnMarqueeItem); + widgetRoles.append(RoleSatTextIcon); + widgetRoles.append(RoleSatMarqueeItem); + break; + case SettingsDialog: + // Fill supported layout item roles for settings display + widgetRoles.append(RoleSettingsDialog); + widgetRoles.append(RoleSettingsContainer); + widgetRoles.append(RoleSpnCheckBox); + widgetRoles.append(RoleMcnCheckBox); + widgetRoles.append(RoleSatTextCheckBox); + break; + + default: + break; + } + + DPRINT << ": widgetRoles.count() : " << widgetRoles.count(); + return widgetRoles; +} + +// End of File. + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidget/src/infowidgetlinehandler.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/infowidget/src/infowidgetlinehandler.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -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 "infowidgetlinehandler.h" +#include "infowidgetlogging.h" + + +/*! + */ +InfoWidgetLineHandler::InfoWidgetLineHandler(QObject *parent): + QObject(parent), + m_activeLine(1) +{ + DPRINT; +} + +/*! + */ +InfoWidgetLineHandler::~InfoWidgetLineHandler() +{ + DPRINT; +} + +/*! + */ +int InfoWidgetLineHandler::activeLine() const +{ + DPRINT << ": active line: " << m_activeLine; + return m_activeLine; +} + + +// End of File. + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidget/src/infowidgetnetworkhandler.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/infowidget/src/infowidgetnetworkhandler.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,349 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: + * + */ + +#include +#include +#include +#include +#include +#include "infowidgetnetworkhandler.h" +#include "infowidgetlogging.h" + +/*! + \class InfoWidgetNetworkHandler + \brief Handles network specific functionality of + Operator info widget +*/ + +// Local constants +const int KMcnValueOff = 0; +const int KMcnValueOn = 1; + +/*! + InfoWidgetNetworkHandler::InfoWidgetNetworkHandler() +*/ +InfoWidgetNetworkHandler::InfoWidgetNetworkHandler(QObject *parent) + : + QObject(parent), + m_nwSession(NULL) +{ + DPRINT; + + if (!createSession()) { + DCRITICAL << ": session creation failed!"; + } +} + +/*! + InfoWidgetNetworkHandler::~InfoWidgetNetworkHandler() +*/ +InfoWidgetNetworkHandler::~InfoWidgetNetworkHandler() +{ + DPRINT; + + // Disable MCN setting, + // display client is being deleted + disableMcn(); +} + +/*! + InfoWidgetNetworkHandler::createSession() +*/ +bool InfoWidgetNetworkHandler::createSession() +{ + DPRINT; + bool success(false); + if (!m_nwSession) { + try { + QT_TRAP_THROWING(m_nwSession.reset( + CreateL(*this, m_nwInfo))); + } catch (const std::exception& ex) { + DCRITICAL << ": exception " << ex.what(); + } + + if (!m_nwSession.isNull()) { + DPRINT << ": session created"; + success = true; + } + } else { + DWARNING << ": session already created!"; + } + + return success; +} + +/*! + InfoWidgetNetworkHandler::sessionExists() +*/ +bool InfoWidgetNetworkHandler::sessionExists() +{ + return !m_nwSession.isNull(); +} + +/*! + InfoWidgetNetworkHandler::suspend() +*/ +void InfoWidgetNetworkHandler::suspend() +{ + DPRINT; +} + +/*! + InfoWidgetNetworkHandler::resume() +*/ +void InfoWidgetNetworkHandler::resume() +{ + DPRINT; +} + +/*! + InfoWidgetNetworkHandler::serviceProviderName() +*/ +QString InfoWidgetNetworkHandler::serviceProviderName() const +{ + QString qBuf; + qBuf = QString((QChar*)m_nwInfo.iSPName.Ptr(), + m_nwInfo.iSPName.Length()); + DPRINT << ": serviceProviderName: " << qBuf; + + return qBuf; +} + +/*! + InfoWidgetNetworkHandler::serviceProviderNameDisplayRequired() +*/ +bool InfoWidgetNetworkHandler::serviceProviderNameDisplayRequired() const +{ + bool displayRequired(true); + if (m_nwInfo.iServiceProviderNameDisplayReq == + RMobilePhone::KDisplaySPNNotRequired) { + displayRequired = false; + } + return displayRequired; +} + +/*! + InfoWidgetNetworkHandler::homeZoneTextTag() +*/ +QString InfoWidgetNetworkHandler::homeZoneTextTag() const +{ + QString qBuf; + qBuf = QString((QChar*)m_nwInfo.iViagTextTag.Ptr(), + m_nwInfo.iViagTextTag.Length()); + return qBuf; +} + +/*! + InfoWidgetNetworkHandler::homeZoneIndicatorType() +*/ +int InfoWidgetNetworkHandler::homeZoneIndicatorType() const +{ + int indicatorType = m_nwInfo.iViagIndicatorType; + return indicatorType; +} + +/*! + InfoWidgetNetworkHandler::enableMcn() +*/ +void InfoWidgetNetworkHandler::enableMcn() +{ + DPRINT; + if (!readMcnDisplayState()) { + DPRINT << ": enabling mcn display cenrep"; + writeMcnDisplayState(true); + } +} + +/*! + InfoWidgetNetworkHandler::disableMcn() +*/ +void InfoWidgetNetworkHandler::disableMcn() +{ + DPRINT; + if (readMcnDisplayState()) { + DPRINT << ": disabling mcn display cenrep"; + writeMcnDisplayState(false); + } +} + +/*! + InfoWidgetNetworkHandler::mcnName() +*/ +QString InfoWidgetNetworkHandler::mcnName() const +{ + QString qBuf; + qBuf = QString((QChar*)m_nwInfo.iMCNName.Ptr(), + m_nwInfo.iMCNName.Length()); + DPRINT << ": mcnName: " << qBuf; + return qBuf; +} + +/*! + InfoWidgetNetworkHandler::mcnIndicatorType() +*/ +int InfoWidgetNetworkHandler::mcnIndicatorType() const +{ + DPRINT << ": mcnIndicatorType: " << m_nwInfo.iMCNIndicatorType; + return m_nwInfo.iMCNIndicatorType; +} + +/*! + InfoWidgetNetworkHandler::networkRegistrationStatus() +*/ +int InfoWidgetNetworkHandler::networkRegistrationStatus() const +{ + DPRINT << ": networkRegistrationStatus: " + << static_cast(m_nwInfo.iRegistrationStatus); + return static_cast(m_nwInfo.iRegistrationStatus); +} + +/*! + InfoWidgetNetworkHandler::isOnline() + + Check if network registration status is registered and + return status accordingly +*/ +bool InfoWidgetNetworkHandler::isOnline() const +{ + bool online(false); + + switch (networkRegistrationStatus()) { + case ENWRegisteredBusy: // Fall through + case ENWRegisteredOnHomeNetwork: // Fall through + case ENWRegisteredRoaming: + online = true; + break; + default: + break; + } + + DPRINT << ": online: " << online; + return online; +} + +/*! + InfoWidgetNetworkHandler::HandleNetworkMessage() + + Implementation for MNWMessageObserver callback + function +*/ +void InfoWidgetNetworkHandler::HandleNetworkMessage( + const TNWMessages aMessage ) +{ + DPRINT << ": message: " << aMessage; + + bool acceptedMessage = false; + switch (aMessage) { + case ENWMessageCurrentCellInfoMessage: // Fall through + case ENWMessageServiceProviderNameChange: // Fall through + case ENWMessageNetworkRegistrationStatusChange: // Fall through + acceptedMessage = true; + break; + default: + // not interesting message, filter out + DPRINT << ": message filtered out"; + acceptedMessage = false; + } + + if (acceptedMessage) { + int result = 0; + QT_TRYCATCH_ERROR(result, emit networkDataChanged()); + if (0 != result) { + DPRINT << ": Exception occured while emitting signal:" << result; + } + } +} + +/*! + InfoWidgetNetworkHandler::HandleNetworkError() + + Implementation for MNWMessageObserver callback + function +*/ +void InfoWidgetNetworkHandler::HandleNetworkError( + const TNWOperation aOperation, + TInt aErrorCode ) +{ + DPRINT << ": operation: " << aOperation << + " error code: " << aErrorCode; + + // Reset invalid data + switch (aOperation) { + case MNWMessageObserver::ENWGetServiceProviderName: + m_nwInfo.iServiceProviderNameDisplayReq = + RMobilePhone::KDisplaySPNNotRequired; + m_nwInfo.iSPName.Zero(); + break; + default: + break; + } + + // Emit error signal + int result = 0; + QT_TRYCATCH_ERROR(result, emit networkError( + static_cast(aOperation), static_cast(aErrorCode))); + if (0 != result) { + DPRINT << ": Exception occured while emitting signal:" << result; + } +} + +/*! + InfoWidgetNetworkHandler::writeMcnDisplayState() + + Handler for cenrep key writing +*/ +void InfoWidgetNetworkHandler::writeMcnDisplayState(bool enabled) +{ + QScopedPointer settingsManager(new XQSettingsManager); + XQSettingsKey settingsKey(XQSettingsKey::TargetCentralRepository, + KCRUidNetworkSettings.iUid, KSettingsMcnDisplay); + int value; + if (enabled) { + value = KMcnValueOn; + } else { + value = KMcnValueOff; + } + + bool result = settingsManager->writeItemValue(settingsKey, value); + DPRINT << ": write success: " << result << " mcn enabled: " << enabled; + +} + +/*! + InfoWidgetNetworkHandler::readMcnDisplayState() +*/ +bool InfoWidgetNetworkHandler::readMcnDisplayState() +{ + QScopedPointer settingsManager(new XQSettingsManager); + XQSettingsKey settingsKey(XQSettingsKey::TargetCentralRepository, + KCRUidNetworkSettings.iUid, KSettingsMcnDisplay); + bool success(false); + int value = settingsManager->readItemValue( + settingsKey, + XQSettingsManager::TypeInt).toInt(&success); + + bool mcnEnabled(false); + if (success && value == KMcnValueOn) { + mcnEnabled = true; + } + + DPRINT << ": read success: " << success << " mcn enabled: " << mcnEnabled; + return mcnEnabled; +} + + +// End of File. diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidget/src/infowidgetpreferences.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/infowidget/src/infowidgetpreferences.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,184 @@ +/* + * 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 "infowidgetpreferences.h" +#include "infowidgetlogging.h" + +/*! + \class InfoWidgetPreferences + \brief Preference store for widget + display etc. options +*/ + + +/*! + InfoWidgetPreferences::InfoWidgetPreferences() +*/ +InfoWidgetPreferences::InfoWidgetPreferences(QObject *parent): + QObject(parent) +{ + DPRINT; +} + +/*! + InfoWidgetPreferences::~InfoWidgetPreferences() +*/ +InfoWidgetPreferences::~InfoWidgetPreferences() +{ + DPRINT; +} + +/*! + InfoWidgetPreferences::storePreferences() + + Store acceptable preference set +*/ +bool InfoWidgetPreferences::storePreferences() +{ + DPRINT; + bool changed(false); + + if (validate() && + m_validatedOptions != m_options){ + m_validatedOptions = m_options; + changed = true; + emit preferencesChanged(m_validatedOptions); + } + else if (visibleItemCount() <= 0) { + DPRINT << ": invalid options, restoring initial options"; + restorePreferences(); + } + + return changed; +} + +/*! + InfoWidgetPreferences::restorePreferences() + + Restores last acceptable preference set +*/ +void InfoWidgetPreferences::restorePreferences() +{ + DPRINT; + m_options = m_validatedOptions; +} + +/*! + InfoWidgetPreferences::preference() +*/ +QString InfoWidgetPreferences::preference(Option preferenceId) const +{ + DPRINT << ": preference id: " << static_cast(preferenceId); + + QString preferenceString; + if (m_options.testFlag(preferenceId)) { + preferenceString = DISPLAY_SETTING_ON; + } else { + preferenceString = DISPLAY_SETTING_OFF; + } + + return preferenceString; +} + +/*! + InfoWidgetPreferences::isPreferenceSet() +*/ +bool InfoWidgetPreferences::isPreferenceSet(Option preferenceId) const +{ + DPRINT << ": preference id: " << static_cast(preferenceId); + return m_options.testFlag(preferenceId); +} + +/*! + InfoWidgetPreferences::preferences() +*/ +InfoWidgetPreferences::Options InfoWidgetPreferences::preferences() const +{ + return m_options; +} + +/*! + InfoWidgetPreferences::setPreference() +*/ +void InfoWidgetPreferences::setPreference(Option preferenceId, + const QString& preferenceString) +{ + DPRINT << ": preference id: " << static_cast(preferenceId); + DPRINT << ": preference string: " << preferenceString; + DPRINT << ": initial options: " << m_options; + + if (preferenceString.compare(DISPLAY_SETTING_ON) == 0) { + m_options |= preferenceId; + } else { + m_options &= ~preferenceId; + } + + DPRINT << ": modified options: " << m_options; +} + +/*! + InfoWidgetPreferences::visibleItemCount() +*/ +int InfoWidgetPreferences::visibleItemCount() +{ + DPRINT << ": IN"; + + int visibleItems = 0; + if (m_options.testFlag(DisplayHomeZone)){ + visibleItems++; + } + if (m_options.testFlag(DisplayMcn)){ + visibleItems++; + } + if (m_options.testFlag(DisplayActiveLine)){ + visibleItems++; + } + if (m_options.testFlag(DisplaySatText)){ + visibleItems++; + } + if (m_options.testFlag(DisplaySpn)){ + visibleItems++; + } + + DPRINT << ": visible item count: " << visibleItems; + return visibleItems; +} + +/*! + InfoWidgetPreferences::validate() +*/ +bool InfoWidgetPreferences::validate() +{ + return visibleItemCount() > 0; +} + +/*! + InfoWidgetPreferences::preferenceNames() + + Convenience function for getting all preference names +*/ +QStringList InfoWidgetPreferences::preferenceNames() +{ + QStringList preferenceList; + preferenceList << "spnDisplay" << "homeZoneDisplay" << + "activeLineDisplay" << "satDisplay" << "mcnDisplay"; + return preferenceList; +} + + +// End of File. + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidget/src/infowidgetpreferences_s.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/infowidget/src/infowidgetpreferences_s.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,100 @@ +/* + * 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 "infowidgetpreferences.h" +#include "infowidgetlogging.h" + +/*! + InfoWidgetPreferences::InfoWidgetPreferences() +*/ +InfoWidgetPreferences::InfoWidgetPreferences(IHsWidgetPreferenceService &preferenceService, + QObject* parent) + : QObject(parent) +{ + DPRINT << "DUMMY IMPLEMENTATION"; + + m_options = InfoWidgetPreferences::DisplayActiveLine| + InfoWidgetPreferences::DisplayMcn| + InfoWidgetPreferences::DisplaySatText| + InfoWidgetPreferences::DisplayHomeZone; +} + +/*! + InfoWidgetPreferences::~InfoWidgetPreferences() +*/ +InfoWidgetPreferences::~InfoWidgetPreferences() +{ + DPRINT << "DUMMY IMPLEMENTATION"; +} + +/*! + InfoWidgetPreferences::loadPreferences() +*/ +void InfoWidgetPreferences::loadPreferences() +{ + DPRINT << "DUMMY IMPLEMENTATION"; +} + +/*! + InfoWidgetPreferences::storePreferences() +*/ +void InfoWidgetPreferences::storePreferences() +{ + DPRINT << "DUMMY IMPLEMENTATION"; +} + +/*! + InfoWidgetPreferences::preference() +*/ +QString InfoWidgetPreferences::preference(Option preferenceId) +{ + DPRINT << "DUMMY IMPLEMENTATION"; + DPRINT << ": preference id: " << static_cast(preferenceId); + + QString preferenceString; + if (m_options.testFlag(preferenceId)) { + preferenceString = DISPLAY_SETTING_ON; + } else { + preferenceString = DISPLAY_SETTING_OFF; + } + + return preferenceString; +} + +/*! + InfoWidgetPreferences::setPreference() +*/ +void InfoWidgetPreferences::setPreference(Option preferenceId, + QString preferenceString) +{ + DPRINT << "DUMMY IMPLEMENTATION"; + DPRINT << ": preference id: " << static_cast(preferenceId); + DPRINT << ": preference string: " << preferenceString; + + DPRINT << ": initial options: " << m_options; + + if (preferenceString.compare(DISPLAY_SETTING_ON) == 0) { + m_options |= preferenceId; + } else { + m_options &= ~preferenceId; + } + + DPRINT << ": modified options: " << m_options; +} + +// End of File. + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidget/src/infowidgetsathandler.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/infowidget/src/infowidgetsathandler.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,122 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: + * + */ + + +#include "infowidgetsathandler.h" +#include "infowidgetlogging.h" +#include + +/*! + \class InfoWidgetSatHandler + \brief Handles SIM Application Toolkit specific functionality of + Operator info widget +*/ + +/*! + InfoWidgetSatHandler::InfoWidgetSatHandler + */ +InfoWidgetSatHandler::InfoWidgetSatHandler(QObject *parent): + QObject(parent), + m_satHandlerPrivate(NULL), + m_connected(false) +{ + DPRINT << ": IN"; + m_satHandlerPrivate.reset( + new InfoWidgetSatHandlerPrivate(this, m_satService)); + DPRINT << ": OUT"; +} + +/*! + InfoWidgetSatHandler::~InfoWidgetSatHandler + */ +InfoWidgetSatHandler::~InfoWidgetSatHandler() +{ + DPRINT; +} + +/*! + InfoWidgetSatHandler::connect + */ +void InfoWidgetSatHandler::connect(bool connect) +{ + DPRINT << ": IN : connected = " << m_connected + << " : connect = " << connect; + + if (connect && !m_connected) { + DPRINT << "connect and startObserving() "; + m_connected = m_satHandlerPrivate->connect(); + if(m_connected){ + m_satHandlerPrivate->startObserving(); + } + }else if (!connect && m_connected){ + DPRINT << "disconnect and stopObserving() "; + m_connected = m_satHandlerPrivate->disconnect(); + } + DPRINT << ": OUT : connected = " << m_connected; +} + +/*! + InfoWidgetSatHandler::satDisplayText + */ +const QString& InfoWidgetSatHandler::satDisplayText() const +{ + DPRINT << ": text: " << m_displayText; + return m_displayText; +} + +/*! + InfoWidgetSatHandler::setSatDisplayText + */ +void InfoWidgetSatHandler::setSatDisplayText(const QString& displayText) +{ + DPRINT << ": display text: " << displayText; + m_displayText = displayText; +} + +/*! + InfoWidgetSatHandler::handleIdleModeTxtMessage + */ +void InfoWidgetSatHandler::handleIdleModeTxtMessage(int idleResult) +{ + DPRINT << ": handleIdleModeTxtMessage: " << idleResult; + if(m_connected){ + m_satService.SetIdleModeTextResponse( + (RSatService::TSATIdleResult)idleResult); + } + else{ + m_satService.SetIdleModeTextResponse( + RSatService::ESATIdleCmdBeyondMeCapabilities ); + } + + //Pass the result + emit handleMessage(idleResult); +} + +/*! + InfoWidgetSatHandler::handleSatError + */ +void InfoWidgetSatHandler::handleSatError(int operation, int errorCode) +{ + DPRINT << ": satError : operation: " << + operation << ": errorCode: "< +#include "infowidgetsathandlerprivate.h" +#include "infowidgetsathandler.h" +#include "infowidgetlogging.h" + +/*! + \class InfoWidgetSatHandlerPrivate + \brief Private implementation of InfoWidgetSatHandler +*/ + +/*! + InfoWidgetSatHandlerPrivate::InfoWidgetSatHandlerPrivate + */ +InfoWidgetSatHandlerPrivate::InfoWidgetSatHandlerPrivate( + InfoWidgetSatHandler *iwSatHandler, RSatService& satService) + : CActive(CActive::EPriorityStandard), + q_ptr(iwSatHandler), + m_satService(satService) +{ + DPRINT << ": IN"; + CActiveScheduler::Add(this); + DPRINT << ": OUT"; +} + +/*! + InfoWidgetSatHandlerPrivate::~InfoWidgetSatHandlerPrivate +*/ +InfoWidgetSatHandlerPrivate::~InfoWidgetSatHandlerPrivate() +{ + DPRINT << ": IN"; + Cancel(); + DPRINT << ": OUT"; +} + +/*! + InfoWidgetSatHandlerPrivate::connect + */ +bool InfoWidgetSatHandlerPrivate::connect() +{ + TInt err( KErrNone ); + bool connected(false); + + TRAP(err, m_satSession.ConnectL()); + if (KErrNone != err) { + DPRINT << ": Exception occured while connecting SatSession:" << err; + } + else{ + TRAP(err, m_satService.OpenL(m_satSession)); + if (KErrNone != err) { + DCRITICAL << ": Exception occured while opening SatService:" << err; + DCRITICAL << ": closing SAT session"; + m_satSession.Close(); + } else { + connected = true; + } + } + + return connected; +} + +/*! + InfoWidgetSatHandlerPrivate::startObserving + + To get initial content if any and start listening + */ +void InfoWidgetSatHandlerPrivate::startObserving() +{ + //not observing yet but + getIdleModeData(); + // in case there were content, there is need to send response to SAT + if(!m_idleTxt.isEmpty()){ + q_ptr->handleIdleModeTxtMessage( m_idleResult ); + } + // Start observing for changes + activate(); +} + +/*! + InfoWidgetSatHandlerPrivate::disconnect + */ +int InfoWidgetSatHandlerPrivate::disconnect() +{ + DPRINT << ": IN"; + m_idleTxt = ""; + Cancel(); + m_satService.NotifySetupIdleModeTextChangeCancel(); + m_satService.Close(); + m_satSession.Close(); + + DPRINT << ": OUT"; + return 0;//TODO:Fixme +} + +/*! + InfoWidgetSatHandlerPrivate::getIdleModeData + */ +void InfoWidgetSatHandlerPrivate::getIdleModeData() +{ + HBufC* string( NULL ); + TUint8 recordId( NULL ); + RSatService::TSatIconQualifier iconQualifier( + RSatService::ESatIconNoIcon ); + + // Get setup idle mode text, icon qualifier and record id. + TInt result( KErrNotFound ); + TRAP(result, m_satService.GetSetupIdleModeTextL( string, iconQualifier, recordId )); + if (0 != result) { + DPRINT << ": Exception occured while GetSetupIdleModeTextL :" << result; + m_idleResult = RSatService::ESATIdleMeUnableToProcessCmd; + } + else{ + DPRINT << "string->Length() : " << string->Length(); + if(RSatService::ESatIconSelfExplanatory != iconQualifier){ + m_idleTxt = QString((QChar*)string->Des().Ptr(), string->Length()); + }else{ + m_idleTxt = ""; + } + //determine result + if(RSatService::ESatIconNoIcon != iconQualifier + && !m_idleTxt.isEmpty()){ + //icon requested but we don't have icon support + m_idleResult = RSatService::ESATIdleSuccessRequestedIconNotDisplayed; + }else if(RSatService::ESatIconNoIcon == iconQualifier + && !m_idleTxt.isEmpty()){ + m_idleResult = RSatService::ESATIdleSuccess; + }else{ //got empty string, could be permanen problem as well? + //m_idleResult = RSatService::ESATIdleCmdBeyondMeCapabilities + m_idleResult = RSatService::ESATIdleMeUnableToProcessCmd; + } + } + delete string; + q_ptr->setSatDisplayText(m_idleTxt);//empty in case of selexplanatory icon +} + +/*! + InfoWidgetSatHandlerPrivate::RunL + */ +void InfoWidgetSatHandlerPrivate::RunL() +{ + DPRINT << ": IN"; + if ( KErrNone == iStatus.Int() ) + { + getIdleModeData(); + q_ptr->handleIdleModeTxtMessage( m_idleResult ); + } else { + q_ptr->handleSatError(1,iStatus.Int()); + } + if ( !IsActive() ) + { + activate(); + } + DPRINT << ": OUT"; +} + +/*! + InfoWidgetSatHandlerPrivate::DoCancel + */ +void InfoWidgetSatHandlerPrivate::DoCancel() +{ + DPRINT << ": IN"; + m_satService.NotifySetupIdleModeTextChangeCancel(); + DPRINT << ": OUT"; +} + +/*! + InfoWidgetSatHandlerPrivate::activate + */ +void InfoWidgetSatHandlerPrivate::activate() +{ + DPRINT << ": IN"; + Cancel(); + TInt error = m_satService.NotifySetupIdleModeTextChange( iStatus ); + + if ( KErrNone == error ) + { + SetActive(); + } + DPRINT << ": OUT"; +} + +// End of File. + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetplugin.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/infowidgetplugin.pri Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,69 @@ +# +# 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: +# +# + +HEADERS += ./inc/infowidgetplugin.h \ + ./inc/infowidgetlogging.h \ + ./infowidget/inc/infowidget.h \ + ./infowidget/inc/infowidgetlayoutmanager.h \ + ./infowidget/inc/infowidgetpreferences.h \ + ./infowidget/inc/infowidgetengine.h \ + ./infowidget/inc/infowidgetsathandlerprivate.h + +symbian: { + HEADERS += ./infowidget/inc/infowidgetnetworkhandler.h \ + ./infowidget/inc/infowidgetsathandler.h \ + ./infowidget/inc/infowidgetlinehandler.h +} +SOURCES += infowidget/src/infowidgetsathandlerprivate.cpp \ + ./src/infowidgetplugin.cpp \ + ./infowidget/src/infowidget.cpp \ + ./infowidget/src/infowidgetlayoutmanager.cpp \ + ./infowidget/src/infowidgetengine.cpp + +symbian: { + SOURCES += ./infowidget/src/infowidgetpreferences.cpp \ + ./infowidget/src/infowidgetnetworkhandler.cpp \ + ./infowidget/src/infowidgetsathandler.cpp \ + ./infowidget/src/infowidgetlinehandler.cpp +} else: { + SOURCES += ./infowidget/src/infowidgetengine_s.cpp \ + ./infowidget/src/infowidgetpreferences_s.cpp +} + +defineTest(exportResources) { + symbian { + for(subdirs, 1) { + entries = $$files($$subdirs) + for(entry, entries) : BLD_INF_RULES.prj_exports += "./$$entry z:/$$replace(2, ^/,)/$$basename(entry)" + } + export ( BLD_INF_RULES.prj_exports) + } +} + +symbian: plugin { # copy qtstub and manifest + + pluginstub.sources = $${TARGET}.dll + pluginstub.path = $$PLUGIN_SUBDIR + + DEPLOYMENT += pluginstub + + qtplugins.path = $$PLUGIN_SUBDIR + qtplugins.sources += qmakepluginstubs/$${TARGET}.qtplugin + contains(MOBILITY, serviceframework):BLD_INF_RULES.prj_exports += "resource/$${TARGET}.xml z:$$qtplugins.path/$${TARGET}.xml" + + for(qtplugin, qtplugins.sources):BLD_INF_RULES.prj_exports += "./$$qtplugin z:$$qtplugins.path/$$basename(qtplugin)" +} diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetplugin.pro --- a/phoneplugins/infowidgetplugin/infowidgetplugin.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneplugins/infowidgetplugin/infowidgetplugin.pro Wed Jun 23 18:12:20 2010 +0300 @@ -10,14 +10,64 @@ # Nokia Corporation - initial contribution. # # Contributors: -# -# Description: Project file for building Phone components +# +# Description: # # + -TEMPLATE = subdirs -CONFIG += ordered +TEMPLATE = lib +CONFIG += plugin hb svg mobility +MOBILITY = serviceframework + +TRANSLATIONS = operator_widget.ts + +MOC_DIR = moc +RCC_DIR = rcc -SUBDIRS = infowidgetprovider infowidgetproviderinstaller +symbian: { +LIBS += -lhswidgetmodel \ + -lxqsettingsmanager \ + -lnetworkhandling \ + -lsatclient +} + +INCLUDEPATH += ./inc \ + ./infowidget/inc + +symbian: { + load(data_caging_paths) + INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE + TARGET.UID3 = 0x20029F28 + TARGET.EPOCALLOWDLLDATA = 1 + TARGET.CAPABILITY = ALL \ + -TCB + deploy.path = c: + + DEPLOYMENT += exportheaders + + BLD_INF_RULES.prj_exports += \ + "$${LITERAL_HASH}include " \ + "./rom/infowidgetplugin.iby CORE_APP_LAYER_IBY_EXPORT_PATH(infowidgetplugin.iby)" \ + "./rom/infowidgetplugin_resources.iby LANGUAGE_APP_LAYER_IBY_EXPORT_PATH(infowidgetplugin_resources.iby)" +} - \ No newline at end of file +RESOURCES = infowidgetplugin.qrc + +symbian: PLUGIN_SUBDIR = /private/20022F35/import/widgetregistry/20029F28 +OUTPUT_DIR = ./bin +SOURCE_DIR = ./inc +OBJECTS_DIR = $$OUTPUT_DIR/tmp/$$TARGET +DESTDIR = $$OUTPUT_DIR +MOC_DIR = $$OUTPUT_DIR/tmp/$$TARGET/moc +RCC_DIR = $$OUTPUT_DIR/tmp/$$TARGET/rcc +UI_DIR = $$OUTPUT_DIR/tmp/$$TARGET/ui +LIBS += -L$$DESTDIR +DEPENDPATH += . $$SOURCE_DIR +INCLUDEPATH += . $$SOURCE_DIR +INCLUDEPATH += $$MOC_DIR +plugin: !isEmpty(PLUGIN_SUBDIR): DESTDIR = $$OUTPUT_DIR/$$PLUGIN_SUBDIR + +include(infowidgetplugin.pri) + +exportResources(./resource/*.manifest, $$PLUGIN_SUBDIR) diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetplugin.qrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/infowidgetplugin.qrc Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,7 @@ + + + + resource/infowidget.docml + resource/settingsdialog.docml + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetplugin_hw.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/infowidgetplugin_hw.pkg Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,45 @@ +; +; 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: +; + +; Language +&EN + +; SIS header: name, uid, version +#{"infowidgetplugin"},(0x20029F28),1,0,0 + +; Localised Vendor name +%{"Vendor"} + +; Unique Vendor name +:"Vendor" + +; Manual PKG pre-rules from PRO files +; Default HW/platform dependencies +[0x101F7961],0,0,0,{"S60ProductID"} +[0x102032BE],0,0,0,{"S60ProductID"} +[0x102752AE],0,0,0,{"S60ProductID"} +[0x1028315F],0,0,0,{"S60ProductID"} + +;UNINSTALL +"/epoc32/data/z/private/20022F35/import/widgetregistry/20029F28/infowidgetplugin.manifest" - "!:/private/20022F35/import/widgetregistry/20029F28/infowidgetplugin.manifest",FM,"application/hs-widget-uninstall+xml",RR,RW + +; DEPLOYMENT +"/epoc32/release/armv5/urel/infowidgetplugin.dll" - "c:\sys\bin\infowidgetplugin.dll" +"/epoc32/data/z/private/20022F35/import/widgetregistry/20029F28/infowidgetplugin.qtplugin" - "c:/private/20022F35/import/widgetregistry/20029F28/infowidgetplugin.qtplugin" +"/epoc32/data/z/private/20022F35/import/widgetregistry/20029F28/infowidgetplugin.manifest" - "c:/private/20022F35/import/widgetregistry/20029F28/infowidgetplugin.manifest" + + +; Manual PKG post-rules from PRO files diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/inc/infowidgetlogging.h --- a/phoneplugins/infowidgetplugin/infowidgetprovider/inc/infowidgetlogging.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,71 +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: - * - */ - -#ifndef INFOWIDGETLOGGING_H -#define INFOWIDGETLOGGING_H - -#include - - -/*! - Define MSG_OUTPUT_RDEBUG - for enabling RDebug prints in development tracing. - Shouldn't be used in release code. - */ -#undef MSG_OUTPUT_RDEBUG - - -#ifdef MSG_OUTPUT_RDEBUG -#ifdef Q_OS_SYMBIAN -#include - -static void infoWidgetMsgOutput(QtMsgType type, const char *msg) -{ - switch (type) { - - case QtDebugMsg: - RDebug::Printf("InfoWidget Debug: %s\n", msg); - break; - case QtWarningMsg: - RDebug::Printf("InfoWidget Warning: %s\n", msg); - break; - case QtCriticalMsg: - RDebug::Printf("InfoWidget Critical: %s\n", msg); - break; - case QtFatalMsg: - RDebug::Printf("InfoWidget Fatal: %s\n", msg); - abort(); - } -} - - #define INSTALL_TRACE_MSG_HANDLER qInstallMsgHandler(infoWidgetMsgOutput) - #define UNINSTALL_TRACE_MSG_HANDLER qInstallMsgHandler(0) -#endif //Q_OS_SYMBIAN -#else - #define INSTALL_TRACE_MSG_HANDLER - #define UNINSTALL_TRACE_MSG_HANDLER -#endif //MSG_OUTPUT_RDEBUG - -/*! - Debug macros - */ -#define DPRINT qDebug() << __PRETTY_FUNCTION__ -#define DWARNING qWarning() << __PRETTY_FUNCTION__ -#define DCRITICAL qCritical() << __PRETTY_FUNCTION__ - -#endif // INFOWIDGETLOGGING - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/inc/infowidgetprovider.h --- a/phoneplugins/infowidgetplugin/infowidgetprovider/inc/infowidgetprovider.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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: - * - */ - -#ifndef INFOWIDGETPROVIDER_H -#define INFOWIDGETPROVIDER_H - -#include -#include - -QTM_USE_NAMESPACE - -class InfoWidgetProvider : public QObject, public QServicePluginInterface -{ - Q_OBJECT - Q_INTERFACES(QtMobility::QServicePluginInterface) - -public: - QObject *createInstance(const QServiceInterfaceDescriptor &descriptor, - QServiceContext *context, - QAbstractSecuritySession *session); - -}; - -#endif // INFOWIDGETPROVIDER_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/inc/infowidget.h --- a/phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/inc/infowidget.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,136 +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: - * - */ - -#ifndef INFOWIDGET_H -#define INFOWIDGET_H - -#include -#include -#include -#include -#include "infowidgetlayoutmanager.h" - -class QLabel; -class QGraphicsLinearLayout; -class QTranslator; -class HbDialog; -class HbIconItem; -class HbMarqueeItem; -class HbLabel; -class HbCheckBox; -class HbPushButton; -class HbFrameDrawer; -class InfoWidgetEngine; -class InfoWidgetPreferences; - - -class InfoWidget : public HbWidget -{ - Q_OBJECT - -public: - InfoWidget(QGraphicsItem *parent = 0, Qt::WindowFlags flags = 0); - ~InfoWidget(); - -public: // From QGraphicsItem. - QRectF boundingRect() const; - QPainterPath shape() const; - QSizeF sizeHint(Qt::SizeHint which, const QSizeF & constraint) const; - QSizePolicy sizePolicy () const; - -public: // Property definitions - Q_PROPERTY(QString homeZoneDisplay READ homeZoneDisplay WRITE setHomeZoneDisplay) - Q_PROPERTY(QString mcnDisplay READ mcnDisplay WRITE setMcnDisplay) - Q_PROPERTY(QString activeLineDisplay READ activeLineDisplay WRITE setActiveLineDisplay) - Q_PROPERTY(QString satDisplay READ satDisplay WRITE setSatDisplay) - Q_PROPERTY(QString spnDisplay READ spnDisplay WRITE setSpnDisplay) - QString homeZoneDisplay(); - void setHomeZoneDisplay(QString value); - QString mcnDisplay(); - void setMcnDisplay(QString value); - QString activeLineDisplay(); - void setActiveLineDisplay(QString value); - QString satDisplay(); - void setSatDisplay(QString value); - QString spnDisplay(); - void setSpnDisplay(QString value); - -protected: - void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); - void mousePressEvent(QGraphicsSceneMouseEvent *event); - void mouseReleaseEvent(QGraphicsSceneMouseEvent *event); - void mouseMoveEvent(QGraphicsSceneMouseEvent *event); - - void updateInfoDisplay(); - bool readPersistentPreferences(); - void initializeCheckBoxStates(); - void changeEvent(QEvent *event); - bool installTranslator(QString translationFile); - void removeTranslators(); - -private: - void updateItemsVisibility(); - void layoutInfoDisplay(); - void layoutSettingsDisplay(); - void initializeInfoDisplayItems(); - void initializeSettingsDisplayItems(); - void startChanges(); - void endChanges(); - -public slots: - // Slots from HsWidget - void onInitialize(); - void onUninitialize(); - void onShow(); - void onHide(); - - // Info widget specific slots - void readModel(); - void handleModelError(int operation,int errorCode); - void spnDisplaySettingChanged(int state); - void mcnDisplaySettingChanged(int state); - void satDisplaySettingChanged(int state); - void settingsEditingFinished(); - void settingsValidationFailed(); - -signals: - void setPreferences(const QStringList &names); - -private: - Q_DISABLE_COPY(InfoWidget) - - // Engine for widget - InfoWidgetEngine *m_engine; - - // Widget preference store - InfoWidgetPreferences *m_preferences; - - // Layout manager for widget - InfoWidgetLayoutManager *m_layoutManager; - - QGraphicsLinearLayout *m_layout; - QList m_translators; - QColor m_backGroundColor; - HbFrameDrawer *m_frameDrawer; - bool m_layoutChanging; - bool m_dragEvent; - bool m_initialized; -}; - - -#endif // INFOWIDGET_H - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/inc/infowidgetengine.h --- a/phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/inc/infowidgetengine.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,118 +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: - * - */ - -#ifndef INFOWIDGETENGINE_H_ -#define INFOWIDGETENGINE_H_ - - -#include -#include - -class InfoWidgetNetworkHandler; -class InfoWidgetSatHandler; -class InfoWidgetLineHandler; - -class InfoWidgetEngine : public QObject - { - Q_OBJECT - -public: - - enum HandlerEntity { - NotDefined = 0, - NetworkHandler, - SatHandler, - LineHandler - }; - - class ModelData { - public: - int mcnIndicatorType() const { return m_mcnIndicatorType; }; - void setMcnIndicatorType(const int type){ m_mcnIndicatorType = type; }; - - int homeZoneIndicatorType() const { return m_homeZoneIndicatorType; }; - void setHomeZoneIndicatorType(const int type){ m_homeZoneIndicatorType = type; }; - - int activeLine() const { return m_activeLine; }; - void setActiveLine(const int line){ m_activeLine = line; }; - - const QString& mcnName() const { return m_mcnName; }; - void setMcnName(const QString& name){ m_mcnName = name; }; - - const QString& serviceProviderName() const { return m_serviceProviderName; }; - void setServiceProviderName(const QString& name){ m_serviceProviderName = name; }; - - bool serviceProviderNameDisplayRequired() const { - return m_serviceProviderNameDisplayRequired; }; - void setServiceProviderNameDisplayRequired(bool required){ - m_serviceProviderNameDisplayRequired = required; }; - - const QString& homeZoneTextTag() const { return m_homeZoneTextTag; }; - void setHomeZoneTextTag(const QString& tag){ m_homeZoneTextTag = tag; }; - - const QString& satDisplayText() const { return m_satDisplayText; }; - void setSatDisplayText(const QString& text){ m_satDisplayText = text; }; - - private: - int m_mcnIndicatorType; - int m_homeZoneIndicatorType; - int m_activeLine; - bool m_serviceProviderNameDisplayRequired; - - QString m_mcnName; - QString m_serviceProviderName; - QString m_homeZoneTextTag; - QString m_satDisplayText; - }; - -public: - InfoWidgetEngine(QObject *parent = 0); - ~InfoWidgetEngine(); - - const InfoWidgetEngine::ModelData &modelData() const; - - void logModelData(); - -signals: - void modelError(int operation, int errorCode); - void modelChanged(); - -public slots: - void updateNetworkDataToModel(); - void updateSatDataToModel(); - void updateLineDataToModel(); - - void handleNetworkError(int operation, int errorCode); - void handleSatError(int operation, int errorCode); - void handleLineError(int operation, int errorCode); - - void suspend(); - void resume(); - - void preferenceChanged(int option, int displaySetting); - -private: - ModelData m_modelData; - - // Own - QScopedPointer m_networkHandler; - QScopedPointer m_satHandler; - }; - -#endif /* INFOWIDGETENGINE_H_ */ - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/inc/infowidgetlayoutmanager.h --- a/phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/inc/infowidgetlayoutmanager.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,134 +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: - * - */ - -#ifndef INFOWIDGETLAYOUTMANAGER_H -#define INFOWIDGETLAYOUTMANAGER_H - -#include -#include -#include -#include -#include -#include - -class QGraphicsLayout; -class QGraphicsWidget; -class HbLabel; -class HbIconItem; -class HbPushButton; -class HbMarqueeItem; -class HbCheckBox; - -/*! - */ -class InfoWidgetDocumentLoader : public HbDocumentLoader -{ -public: - InfoWidgetDocumentLoader(); - virtual QObject *createObject(const QString& type, - const QString &name); -}; - -class InfoWidgetLayoutManager : public QObject -{ - Q_OBJECT - -public: - - enum LayoutItemRole { - RoleUndefined = 0, - // Content widget, the main widget from document - RoleContent, - // Marquee items - RoleMcnMarqueeItem, - RoleSatMarqueeItem, - // Labels - RoleSpnLabel, - RoleMcnLabel, - RoleSatTextLabel, - // Icons - RoleSpnIcon, - RoleMcnIcon, - RoleSatTextIcon, - // Check boxes - RoleSpnCheckBox, - RoleMcnCheckBox, - RoleSatTextCheckBox, - // Buttons - RoleOkButton, - // Layout containers - RoleContainer, - RoleSettingsContainer, - // Must be the last enumeration - RoleLastEnum - }; - - enum DisplayRole { - InfoDisplay, - SettingsDisplay - }; - - InfoWidgetLayoutManager(QObject *parent = 0); - ~InfoWidgetLayoutManager(); - - void destroyObjects(); - - DisplayRole currentDisplayRole(); - QList currentWidgetRoles(); - - int layoutRows() const; - void setLayoutRows(int rows); - qreal rowHeight() const; - - QGraphicsLayout* layoutInfoDisplay(); - QGraphicsLayout* layoutSettingsDisplay(); - - const QList widgetRoles( - DisplayRole displayRole) const; - - bool loadWidgets(const DisplayRole displayRole, - const QList &displayWidgets, - QMap &widgetMap); - bool reloadWidgets(const DisplayRole displayRole); - - QGraphicsWidget* loadWidget(InfoWidgetDocumentLoader &loader, - DisplayRole displayRole, - LayoutItemRole widgetRole); - - QGraphicsWidget* getWidget(LayoutItemRole itemRole); - QGraphicsWidget* contentWidget(); - - void removeWidget(LayoutItemRole itemRole); - void hideWidget(LayoutItemRole itemRole); - void hideAll(); - void showAll(); - - -private: - QMap m_widgets; - QMap m_infoDisplayWidgets; - QMap m_settingsDisplayWidgets; - - InfoWidgetDocumentLoader *m_documentLoader; - DisplayRole m_displayRole; - int m_layoutRows; - -}; - - -#endif // INFOWIDGETLAYOUTMANAGER_H - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/inc/infowidgetlinehandler.h --- a/phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/inc/infowidgetlinehandler.h Fri Jun 04 10:19:18 2010 +0100 +++ /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 "Eclipse Public License v1.0" - * which accompanies 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 INFOWIDGETLINEHANDLER_H_ -#define INFOWIDGETLINEHANDLER_H_ - - -#include - -class InfoWidgetLineHandler: public QObject - { - Q_OBJECT - -public: - InfoWidgetLineHandler(QObject *parent = NULL); - ~InfoWidgetLineHandler(); - - void logCurrentInfo(); - - int activeLine() const; - void setActiveLine(int line); - -signals: - void handleMessage( int message ); - void handleError( int operation, int errorCode ); - -private: - int m_activeLine; - }; - -#endif /* INFOWIDGETLINEHANDLER_H_ */ - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/inc/infowidgetnetworkhandler.h --- a/phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/inc/infowidgetnetworkhandler.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,72 +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: - * - */ - -#ifndef INFOWIDGETNETWORKHANDLER_H_ -#define INFOWIDGETNETWORKHANDLER_H_ - - -#include -#include - -class CNWSession; - -class InfoWidgetNetworkHandler : public QObject, public MNWMessageObserver - { - Q_OBJECT - -public: - InfoWidgetNetworkHandler(QObject *parent = NULL); - ~InfoWidgetNetworkHandler(); - - QString serviceProviderName() const; - bool serviceProviderNameDisplayRequired() const; - QString homeZoneTextTag() const; - int homeZoneIndicatorType() const; - QString mcnName() const; - int mcnIndicatorType() const; - int networkRegistrationStatus() const; - bool isOnline() const; - - void logCurrentInfo(); - -public: // From MNWMessageObserver - void HandleNetworkMessage(const TNWMessages aMessage); - void HandleNetworkError(const TNWOperation aOperation, TInt aErrorCode); - -public slots: - void suspend(); - void resume(); - - void enableMcn(); - void disableMcn(); - -protected: - void writeMcnDisplayState(bool enabled); - bool readMcnDisplayState(); - -signals: - void networkDataChanged(); - void networkError(int operation, int errorCode); - -private: - TNWInfo m_nwInfo; - QScopedPointer m_nwSession; - }; - -#endif /* INFOWIDGETNETWORKHANDLER_H_ */ - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/inc/infowidgetpreferences.h --- a/phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/inc/infowidgetpreferences.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,77 +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: - * - */ - -#ifndef INFOWIDGETPREFERENCES_H -#define INFOWIDGETPREFERENCES_H - -#include -#include -#include - -// Preference string values -const char DISPLAY_SETTING_ON[] = "On"; -const char DISPLAY_SETTING_OFF[] = "Off"; - -class InfoWidgetPreferences : public QObject -{ - Q_OBJECT - -public: - enum DisplaySetting { - DisplayOff = 0, - DisplayOn - }; - - enum Option { - DisplayHomeZone = 0x1, - DisplayMcn = 0x2, - DisplayActiveLine = 0x4, - DisplaySatText = 0x8, - DisplaySpn = 0x10 - }; - Q_DECLARE_FLAGS(Options, Option) - -public: - InfoWidgetPreferences(QObject *parent = NULL); - ~InfoWidgetPreferences(); - - bool storePreferences(); - void restorePreferences(); - QStringList preferenceNames(); - - bool isPreferenceSet(Option preferenceId) const; - QString preference(Option preferenceId) const; - InfoWidgetPreferences::Options preferences() const; - void setPreference(Option preferenceId, const QString &preferenceString); - - bool validate(); - int visibleItemCount(); - -signals: - void prefChanged(int option,int displaySetting); - -private: - Q_DISABLE_COPY(InfoWidgetPreferences) - - InfoWidgetPreferences::Options m_options; - InfoWidgetPreferences::Options m_validatedOptions; -}; - -Q_DECLARE_OPERATORS_FOR_FLAGS(InfoWidgetPreferences::Options) - -#endif // INFOWIDGETPREFERENCES_H - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/inc/infowidgetsathandler.h --- a/phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/inc/infowidgetsathandler.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,62 +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: - * - */ - -#ifndef INFOWIDGETSATHANDLER_H_ -#define INFOWIDGETSATHANDLER_H_ - -#include -#include - - -class InfoWidgetSatHandlerPrivate; - -class InfoWidgetSatHandler: public QObject - { - Q_OBJECT - -public: - InfoWidgetSatHandler(QObject *parent = NULL); - ~InfoWidgetSatHandler(); - - void connect(bool connect); - - const QString& satDisplayText() const; - void setSatDisplayText(const QString& displayText); - - void logCurrentInfo(); - - void handleIdleModeTxtMessage( int idleResult ); - void handleSatError( int operation, int errorCode ); - -signals: - void handleMessage( int message ); - void handleError( int operation, int errorCode ); - - -private: - QString m_displayText; - - int m_connected; - - InfoWidgetSatHandlerPrivate *d_ptr; - RSatService m_satService; - - }; - -#endif /* INFOWIDGETSATHANDLER_H_ */ - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/inc/infowidgetsathandlerprivate.h --- a/phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/inc/infowidgetsathandlerprivate.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +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 -#include -#include - -class InfoWidgetSatHandler; - -class InfoWidgetSatHandlerPrivate: public CActive -{ -public: - - InfoWidgetSatHandlerPrivate(InfoWidgetSatHandler *iwSatHandler, RSatService& iSatService); - ~InfoWidgetSatHandlerPrivate(); - - void startObserving(); - - int connect(); - int disconnect(); - -private: - - void activate(); - void getIdleModeData(); - - void RunL(); - void DoCancel(); - -private: // Data - - InfoWidgetSatHandler *q_ptr; - RSatService& m_satService; - RSatSession m_satSession; - RSatService::TSATIdleResult m_idleResult; - - QString m_idleTxt; -}; diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/src/infowidget.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/src/infowidget.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,993 +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 "infowidget.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "infowidgetlogging.h" -#include "infowidgetengine.h" -#include "infowidgetlayoutmanager.h" -#include "infowidgetpreferences.h" - -const int INFOWIDGET_ROUNDING = 15; -const int INFOWIDGET_DEFAULT_HEIGHT = 100; -const int INFOWIDGET_DEFAULT_WIDTH = 100; -const char *TS_FILE_OPERATOR_WIDGET = "operator_widget"; -const char *TS_FILE_COMMON = "common"; -const char *BACKGROUND_COLOR_GROUP_ID = "qtc_default_popup_normal"; -const char *BACKGROUND_FRAME_NAME = "qtg_fr_hswidget_normal"; - -/*! - \class InfoWidget - \brief Operator info widget main class. - - Implements HomeScreen specific slots and - graphical representation of the - Operator Info widget. - - Derived from HbWidget. - -*/ - -/*! - InfoWidget::InfoWidget() -*/ -InfoWidget::InfoWidget(QGraphicsItem* parent, Qt::WindowFlags flags) - : HbWidget(parent, flags), - m_engine(NULL), - m_preferences(NULL), - m_layoutManager(NULL), - m_layout(NULL), - m_frameDrawer(NULL), - m_layoutChanging(false), - m_dragEvent(false), - m_initialized(false) -{ - INSTALL_TRACE_MSG_HANDLER; - - DPRINT << ": IN"; - - // Localization file loading - installTranslator(TS_FILE_OPERATOR_WIDGET); - installTranslator(TS_FILE_COMMON); - - m_layoutManager = new InfoWidgetLayoutManager(this); - Q_ASSERT(m_layoutManager); - - m_engine = new InfoWidgetEngine(this); - Q_ASSERT(m_engine); - - m_preferences = new InfoWidgetPreferences(this); - Q_ASSERT(m_preferences); - - QObject::connect( m_preferences, SIGNAL(prefChanged(int,int)), - m_engine, SLOT(preferenceChanged(int,int))); - - // Setup widget main layout - m_layout = new QGraphicsLinearLayout; - m_layout->setSpacing(0); - m_layout->setContentsMargins(0,0,0,0); - setLayout(m_layout); - - // Read color definitions - m_backGroundColor = HbColorScheme::color( - BACKGROUND_COLOR_GROUP_ID); - if (!m_backGroundColor.isValid()) { - m_backGroundColor = Qt::black; - } - - // Create background frame drawer - m_frameDrawer = new HbFrameDrawer( - BACKGROUND_FRAME_NAME, - HbFrameDrawer::NinePieces); - Q_ASSERT(m_frameDrawer); - - // Set widget initial size - resize(INFOWIDGET_DEFAULT_WIDTH, - INFOWIDGET_DEFAULT_HEIGHT); - - DPRINT << ": OUT"; -} - -/*! - InfoWidget::~InfoWidget() -*/ -InfoWidget::~InfoWidget() -{ - DPRINT << ": IN"; - - // Layout manager item cleanup - m_layoutManager->destroyObjects(); - - if (m_frameDrawer) { - delete m_frameDrawer; - m_frameDrawer = NULL; - } - - // Remove and delete language translators - removeTranslators(); - - DPRINT << ": OUT"; - UNINSTALL_TRACE_MSG_HANDLER; -} - -/*! - InfoWidget::onInitialize() - - Called by HS framework, saved preference data - is available when onInitialize() is called and - meta-object data reading should be done here -*/ -void InfoWidget::onInitialize() -{ - DPRINT << ": IN"; - - m_initialized = true; - - // Initialize preferences from meta-object data - if (!readPersistentPreferences()) { - - // Reading failed, initialize default values - m_preferences->setPreference(InfoWidgetPreferences::DisplaySpn, - DISPLAY_SETTING_ON); - m_preferences->setPreference(InfoWidgetPreferences::DisplayMcn, - DISPLAY_SETTING_ON); - m_preferences->setPreference(InfoWidgetPreferences::DisplaySatText, - DISPLAY_SETTING_ON); - } - m_preferences->storePreferences(); - - // Layout components - layoutInfoDisplay(); - m_layout->activate(); - - // Read initial data from model - updateInfoDisplay(); - - // Listen for model changes - QObject::connect(m_engine, SIGNAL(modelChanged()), - this, SLOT(readModel())); - - DPRINT << ": OUT"; -} - -/*! - InfoWidget::onUninitialize() -*/ -void InfoWidget::onUninitialize() -{ - DPRINT; - m_initialized = false; - m_engine->suspend(); -} - -/*! - InfoWidget::onShow() -*/ -void InfoWidget::onShow() -{ - DPRINT; - m_engine->resume(); -} - -/*! - InfoWidget::onHide() -*/ -void InfoWidget::onHide() -{ - DPRINT; - m_engine->suspend(); -} - -/*! - InfoWidget::installTranslator() const -*/ -bool InfoWidget::installTranslator(QString translationFile) -{ - DPRINT << ": IN"; - - QString lang = QLocale::system().name(); - QString path = "z:/resource/qt/translations/"; - bool translatorLoaded(false); - - QTranslator* widgetTranslator = new QTranslator; - translatorLoaded = widgetTranslator->load( - path + translationFile + "_" + lang); - if (translatorLoaded) { - qApp->installTranslator(widgetTranslator); - m_translators.append(widgetTranslator); - DPRINT << ": translator installed: " << translationFile; - } else { - delete widgetTranslator; - widgetTranslator = NULL; - } - - DPRINT << ": OUT"; - return translatorLoaded; -} - -/*! - InfoWidget::removeTranslators() const -*/ -void InfoWidget::removeTranslators() -{ - DPRINT << ": IN"; - - foreach (QTranslator *translator, m_translators) { - qApp->removeTranslator(translator); - } - qDeleteAll(m_translators); - m_translators.clear(); - - DPRINT << ": OUT"; -} - -/*! - InfoWidget::boundingRect() const -*/ -QRectF InfoWidget::boundingRect() const -{ - return rect(); -} - -/*! - InfoWidget::shape() const - - Return Operator widget's shape - according to currect display -*/ -QPainterPath InfoWidget::shape() const -{ - DPRINT; - - QPainterPath path; - if (m_layoutManager->currentDisplayRole() == - InfoWidgetLayoutManager::InfoDisplay) { - path.addRoundRect(boundingRect(), - INFOWIDGET_ROUNDING, - INFOWIDGET_ROUNDING); - } else { - path.addRect(boundingRect()); - } - return path; -} - -/*! - InfoWidget::sizeHint() -*/ -QSizeF InfoWidget::sizeHint(Qt::SizeHint which, const QSizeF & constraint) const -{ - Q_UNUSED(which); - Q_UNUSED(constraint); - - QSizeF requiredSize( - INFOWIDGET_DEFAULT_WIDTH, - INFOWIDGET_DEFAULT_HEIGHT); - - if (m_initialized) { - // Read size hint from docml content - if (m_layoutManager->currentDisplayRole() == - InfoWidgetLayoutManager::InfoDisplay) { - if (m_layoutManager->contentWidget()) { - requiredSize = m_layoutManager->contentWidget()->minimumSize(); - // Height according number of rows, if 0 or 1 row use minimum size - int rowCount = m_preferences->visibleItemCount(); - if (1 < rowCount) { - requiredSize.rheight() += (rowCount-1)* - m_layoutManager->rowHeight(); - } - } - } - else if (m_layoutManager->currentDisplayRole() == - InfoWidgetLayoutManager::SettingsDisplay) { - if (m_layoutManager->contentWidget()) { - requiredSize= m_layoutManager->contentWidget()->size(); - } - } - } - - DPRINT << ": returning size: " << requiredSize; - return requiredSize; -} - -/*! - InfoWidget::sizePolicy() -*/ -QSizePolicy InfoWidget::sizePolicy () const -{ - DPRINT; - return QSizePolicy( - QSizePolicy::Fixed, - QSizePolicy::Fixed); -} - -/*! - InfoWidget::updateItemsVisibility() -*/ -void InfoWidget::updateItemsVisibility() -{ - DPRINT <<": IN"; - int layoutRows = 0; - QList widgetsToHide; - - // Update layout according to item visibility settings - if (m_preferences->preference(InfoWidgetPreferences::DisplaySpn).compare( - DISPLAY_SETTING_ON) == 0) { - layoutRows++; - } else if (m_layoutManager->currentDisplayRole() != InfoWidgetLayoutManager::SettingsDisplay) { - m_layoutManager->removeWidget(InfoWidgetLayoutManager::RoleSpnLabel); - m_layoutManager->removeWidget(InfoWidgetLayoutManager::RoleSpnIcon); - } - - if (m_preferences->preference(InfoWidgetPreferences::DisplayMcn).compare( - DISPLAY_SETTING_ON) == 0) { - layoutRows++; - } else if (m_layoutManager->currentDisplayRole() != InfoWidgetLayoutManager::SettingsDisplay) { - m_layoutManager->removeWidget(InfoWidgetLayoutManager::RoleMcnMarqueeItem); - m_layoutManager->removeWidget(InfoWidgetLayoutManager::RoleMcnIcon); - } - - if (m_preferences->preference(InfoWidgetPreferences::DisplaySatText).compare( - DISPLAY_SETTING_ON) == 0) { - layoutRows++; - } else if (m_layoutManager->currentDisplayRole() != InfoWidgetLayoutManager::SettingsDisplay) { - m_layoutManager->removeWidget(InfoWidgetLayoutManager::RoleSatMarqueeItem); - m_layoutManager->removeWidget(InfoWidgetLayoutManager::RoleSatTextIcon); - } - - DPRINT << ": visible layout rows count: " << layoutRows; - m_layoutManager->setLayoutRows(layoutRows); -} - -/*! - InfoWidget::layoutInfoDisplay() - - Layout info display -*/ -void InfoWidget::layoutInfoDisplay() -{ - startChanges(); - - QGraphicsLayout *infoDisplayLayout = - m_layoutManager->layoutInfoDisplay(); - - DPRINT << ": IN"; - if (infoDisplayLayout) { - DPRINT << ": infoDisplayLayout has been returned from layout manager"; - - QGraphicsWidget *contentWidget = m_layoutManager->contentWidget(); - if (contentWidget) { - DPRINT << ": contentWidget has been returned from layout manager"; - - // Remove old data from layout. - for (int i=0; i < m_layout->count(); i++) { - DPRINT << ": item(" << i << ") removed from layout"; - m_layout->removeAt(i); - } - - // Add content widget to main layout - m_layout->addItem(contentWidget); - } - } - - m_layoutManager->showAll(); - updateItemsVisibility(); - m_layout->activate(); - - endChanges(); - - DPRINT << ": OUT"; -} - -/*! - InfoWidget::layoutSettingsDisplay() - - Switch to settings display layout -*/ -void InfoWidget::layoutSettingsDisplay() -{ - startChanges(); - - QGraphicsLayout *settingDisplayLayout = - m_layoutManager->layoutSettingsDisplay(); - - DPRINT << ": IN"; - if (settingDisplayLayout) { - DPRINT << ": settingDisplayLayout has been returned from layout manager"; - - QGraphicsWidget *contentWidget = m_layoutManager->contentWidget(); - if (contentWidget) { - DPRINT << ": contentWidget has been returned from layout manager"; - - // Remove old data from layout. - for (int i=0; i < m_layout->count(); i++) { - DPRINT << ": item(" << i << ") removed from layout"; - m_layout->removeAt(i); - } - - // Add content widget to main layout - m_layout->addItem(contentWidget); - } - - // Connect settings display widget signals - initializeSettingsDisplayItems(); - } - - m_layoutManager->showAll(); - endChanges(); - - DPRINT << ": OUT"; -} - -/*! - InfoWidget::initializeInfoDisplayItems() -*/ -void InfoWidget::initializeInfoDisplayItems() -{ - DPRINT; -} - -/*! - InfoWidget::initializeSettingsDisplayItems() - - Set up initial check box states, lock check boxes - if needed and connect signals to local slots -*/ -void InfoWidget::initializeSettingsDisplayItems() -{ - DPRINT << ": IN"; - - HbPushButton *okButton = qobject_cast(m_layoutManager->getWidget( - InfoWidgetLayoutManager::RoleOkButton)); - if (okButton) { - QObject::connect(okButton, SIGNAL(clicked()), - this, SLOT(settingsEditingFinished()), Qt::UniqueConnection); - } - - // Connect display setting check boxes - HbCheckBox *spnCheckBox = qobject_cast(m_layoutManager->getWidget( - InfoWidgetLayoutManager::RoleSpnCheckBox)); - if (spnCheckBox) { - spnCheckBox->setChecked(m_preferences->isPreferenceSet( - InfoWidgetPreferences::DisplaySpn)); - - QObject::connect(spnCheckBox, SIGNAL(stateChanged(int)), - this, SLOT(spnDisplaySettingChanged(int)), Qt::UniqueConnection); - } - - HbCheckBox *mcnCheckBox = qobject_cast(m_layoutManager->getWidget( - InfoWidgetLayoutManager::RoleMcnCheckBox)); - if (mcnCheckBox) { - mcnCheckBox->setChecked(m_preferences->isPreferenceSet( - InfoWidgetPreferences::DisplayMcn)); - - QObject::connect(mcnCheckBox, SIGNAL(stateChanged(int)), - this, SLOT(mcnDisplaySettingChanged(int)), Qt::UniqueConnection); - } - - HbCheckBox *satTextCheckBox = qobject_cast(m_layoutManager->getWidget( - InfoWidgetLayoutManager::RoleSatTextCheckBox)); - if (satTextCheckBox) { - satTextCheckBox->setChecked(m_preferences->isPreferenceSet( - InfoWidgetPreferences::DisplaySatText)); - - QObject::connect(satTextCheckBox, SIGNAL(stateChanged(int)), - this, SLOT(satDisplaySettingChanged(int)), Qt::UniqueConnection); - } - - DPRINT << ": OUT"; -} - -/*! - InfoWidget::updateInfoDisplay() -*/ -void InfoWidget::updateInfoDisplay() -{ - DPRINT << ": IN"; - - if (m_layoutManager->currentDisplayRole() == - InfoWidgetLayoutManager::InfoDisplay ) - { - QString text; - InfoWidgetEngine::ModelData modelData = m_engine->modelData(); - - HbLabel *spnLabel = qobject_cast(m_layoutManager->getWidget( - InfoWidgetLayoutManager::RoleSpnLabel)); - if (spnLabel) { - if (m_engine->modelData().serviceProviderNameDisplayRequired()) { - text = modelData.serviceProviderName(); - spnLabel->setPlainText(text); - } - } - - HbMarqueeItem *mcnMarqueeItem = qobject_cast(m_layoutManager->getWidget( - InfoWidgetLayoutManager::RoleMcnMarqueeItem)); - if (mcnMarqueeItem) { - text = modelData.mcnName(); - mcnMarqueeItem->setText(text); - - // Set marquee animation looping mode to infinite - mcnMarqueeItem->setLoopCount(-1); - - // Finally, start marquee animation - DPRINT << ": mcnMarqueeItem->isAnimating()"; - if (!mcnMarqueeItem->isAnimating()) { - DPRINT << ": mcnMarqueeItem->startAnimation()"; - mcnMarqueeItem->startAnimation(); - } - } - - HbMarqueeItem *satMarqueeItem = qobject_cast(m_layoutManager->getWidget( - InfoWidgetLayoutManager::RoleSatMarqueeItem)); - if (satMarqueeItem) { - text = modelData.satDisplayText(); - - satMarqueeItem->setText(text); - - // Set marquee animation looping mode to infinite - satMarqueeItem->setLoopCount(-1); - - // Finally, start marquee animation - DPRINT << ": satMarqueeItem->isAnimating()"; - if (!satMarqueeItem->isAnimating()) { - DPRINT << ": mcnMarqueeItem->startAnimation()"; - satMarqueeItem->startAnimation(); - } - } - } -} - -/*! - InfoWidget::readModel() - - Read model data. Model's modelChanged - signal is connected to this slot. -*/ -void InfoWidget::readModel() -{ - DPRINT << ": IN"; - - if (m_layoutManager->currentDisplayRole() == - InfoWidgetLayoutManager::InfoDisplay) { - updateInfoDisplay(); - } - DPRINT << ": OUT"; -} - -/*! - InfoWidget::handleModelError() - - Model error signal is connected to this slot -*/ -void InfoWidget::handleModelError(int operation,int errorCode) -{ - Q_UNUSED(operation); - Q_UNUSED(errorCode); - DPRINT; -} - -/*! - InfoWidget::paint() -*/ -void InfoWidget::paint(QPainter *painter, - const QStyleOptionGraphicsItem *option, - QWidget *widget) -{ - Q_UNUSED(option); - Q_UNUSED(widget); - DPRINT; - - if (!m_layoutChanging) { - painter->save(); - - if (m_layoutManager->currentDisplayRole() == - InfoWidgetLayoutManager::InfoDisplay) { - if (m_frameDrawer) { - m_frameDrawer->paint(painter,boundingRect()); - } - } else { - QBrush brush(Qt::black); - QPainterPath path; - path.addRoundRect(boundingRect(), - INFOWIDGET_ROUNDING, - INFOWIDGET_ROUNDING); - painter->fillPath(path, brush); - } - - painter->restore(); - } -} - -/*! - InfoWidget::mousePressEvent() -*/ -void InfoWidget::mousePressEvent(QGraphicsSceneMouseEvent *event) -{ - Q_UNUSED(event); - - // Clear flag - m_dragEvent = false; -} - -/*! - InfoWidget::mouseReleaseEvent() -*/ -void InfoWidget::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) -{ - Q_UNUSED(event); - - // If in info display and widget wasn't dragged - // change to settings display - if ((!m_dragEvent) && - m_layoutManager->currentDisplayRole() == - InfoWidgetLayoutManager::InfoDisplay) { - DPRINT << ": layout settings display"; - layoutSettingsDisplay(); - } - - // Clear flag - m_dragEvent = false; -} - -/*! - InfoWidget::mouseMoveEvent() -*/ -void InfoWidget::mouseMoveEvent(QGraphicsSceneMouseEvent *event) -{ - Q_UNUSED(event); - - // Mouse is moving - // after mouse press event - m_dragEvent = true; -} - -/*! - InfoWidget::spnDisplaySettingChanged() -*/ -void InfoWidget::spnDisplaySettingChanged(int state) -{ - DPRINT << ": state: " << state; - if (state == Qt::Checked){ - m_preferences->setPreference(InfoWidgetPreferences::DisplaySpn, DISPLAY_SETTING_ON); - } else { - m_preferences->setPreference(InfoWidgetPreferences::DisplaySpn, DISPLAY_SETTING_OFF); - } -} - -/*! - InfoWidget::mcnDisplaySettingChanged() -*/ -void InfoWidget::mcnDisplaySettingChanged(int state) -{ - DPRINT << ": state: " << state; - if (state == Qt::Checked){ - m_preferences->setPreference(InfoWidgetPreferences::DisplayMcn, DISPLAY_SETTING_ON); - } else { - m_preferences->setPreference(InfoWidgetPreferences::DisplayMcn, DISPLAY_SETTING_OFF); - } -} - -/*! - InfoWidget::satDisplaySettingChanged() -*/ -void InfoWidget::satDisplaySettingChanged(int state) -{ - DPRINT << ": state: " << state; - if (state == Qt::Checked){ - m_preferences->setPreference(InfoWidgetPreferences::DisplaySatText, DISPLAY_SETTING_ON); - } else { - m_preferences->setPreference(InfoWidgetPreferences::DisplaySatText, DISPLAY_SETTING_OFF); - } -} - -/*! - InfoWidget::mcnDisplay() - - Getter function for Meta-object property "mcnDisplay" -*/ -QString InfoWidget::mcnDisplay() -{ - DPRINT; - return m_preferences->preference(InfoWidgetPreferences::DisplayMcn); -} - -/*! - InfoWidget::setMcnDisplay() - - Setter function for Meta-object property "mcnDisplay" -*/ -void InfoWidget::setMcnDisplay(QString value) -{ - DPRINT; - m_preferences->setPreference(InfoWidgetPreferences::DisplayMcn, value); - } - -/*! - InfoWidget::homeZoneDisplay() - - Getter function for Meta-object property "homeZoneDisplay" -*/ -QString InfoWidget::homeZoneDisplay() -{ - DPRINT; - return m_preferences->preference(InfoWidgetPreferences::DisplayHomeZone); -} - -/*! - InfoWidget::setHomeZoneDisplay() - - Setter function for Meta-object property "homeZoneDisplay" -*/ -void InfoWidget::setHomeZoneDisplay(QString value) -{ - DPRINT; - m_preferences->setPreference(InfoWidgetPreferences::DisplayHomeZone, value); -} - -/*! - InfoWidget::activeLineDisplay() - - Getter function for Meta-object property "activeLineDisplay" -*/ -QString InfoWidget::activeLineDisplay() -{ - DPRINT; - return m_preferences->preference(InfoWidgetPreferences::DisplayActiveLine); -} - -/*! - InfoWidget::setActiveLineDisplay() - - Setter function for Meta-object property "activeLineDisplay" -*/ -void InfoWidget::setActiveLineDisplay(QString value) -{ - DPRINT; - m_preferences->setPreference(InfoWidgetPreferences::DisplayActiveLine, value); -} - -/*! - InfoWidget::satDisplay() - - Getter function for Meta-object property "satDisplay" -*/ -QString InfoWidget::satDisplay() -{ - DPRINT; - return m_preferences->preference(InfoWidgetPreferences::DisplaySatText); -} - -/*! - InfoWidget::setSatDisplay() - - Setter function for Meta-object property "satDisplay" -*/ -void InfoWidget::setSatDisplay(QString value) -{ - DPRINT; - m_preferences->setPreference(InfoWidgetPreferences::DisplaySatText, value); -} - -/*! - InfoWidget::spnDisplay() - - Getter function for Meta-object property "spnDisplay" -*/ -QString InfoWidget::spnDisplay() -{ - DPRINT; - return m_preferences->preference(InfoWidgetPreferences::DisplaySpn); -} - -/*! - InfoWidget::setSpnDisplay() - - Setter function for Meta-object property "spnDisplay" -*/ -void InfoWidget::setSpnDisplay(QString value) -{ - DPRINT; - m_preferences->setPreference(InfoWidgetPreferences::DisplaySpn, value); -} - -/*! - InfoWidget::readPersistentPreferences() - - Read Meta-object properties and store to preference handler. - Restores preferences from previous session. -*/ -bool InfoWidget::readPersistentPreferences() -{ - DPRINT << ": IN"; - bool changed(false); - - QString propertyValue; - - propertyValue = QObject::property("homeZoneDisplay").toString(); - m_preferences->setPreference(InfoWidgetPreferences::DisplayHomeZone, - propertyValue); - - propertyValue = QObject::property("mcnDisplay").toString(); - m_preferences->setPreference(InfoWidgetPreferences::DisplayMcn, - propertyValue); - - propertyValue = QObject::property("activeLineDisplay").toString(); - m_preferences->setPreference(InfoWidgetPreferences::DisplayActiveLine, - propertyValue); - - propertyValue = QObject::property("satDisplay").toString(); - m_preferences->setPreference(InfoWidgetPreferences::DisplaySatText, - propertyValue); - - propertyValue = QObject::property("spnDisplay").toString(); - m_preferences->setPreference(InfoWidgetPreferences::DisplaySpn, - propertyValue); - - // Check that at least one item is set visible and - // store preferences if true - if (m_preferences->validate()) { - changed = m_preferences->storePreferences(); - } - - DPRINT << ": OUT"; - return changed; -} - -/*! - InfoWidget::initializeCheckBoxStates() -*/ -void InfoWidget::initializeCheckBoxStates() -{ - DPRINT << ": IN"; - - HbCheckBox *spnCheckBox = qobject_cast(m_layoutManager->getWidget( - InfoWidgetLayoutManager::RoleSpnCheckBox)); - if (spnCheckBox) { - spnCheckBox->setChecked(m_preferences->isPreferenceSet( - InfoWidgetPreferences::DisplaySpn)); - } - - HbCheckBox *mcnCheckBox = qobject_cast(m_layoutManager->getWidget( - InfoWidgetLayoutManager::RoleMcnCheckBox)); - if (mcnCheckBox) { - mcnCheckBox->setChecked(m_preferences->isPreferenceSet( - InfoWidgetPreferences::DisplayMcn)); - } - - HbCheckBox *satTextCheckBox = qobject_cast(m_layoutManager->getWidget( - InfoWidgetLayoutManager::RoleSatTextCheckBox)); - if (satTextCheckBox) { - satTextCheckBox->setChecked(m_preferences->isPreferenceSet( - InfoWidgetPreferences::DisplaySatText)); - } - - DPRINT << ": OUT"; -} - -/*! - InfoWidget::settingsEditingFinished() -*/ -void InfoWidget::settingsEditingFinished() -{ - DPRINT << ": IN"; - - // Save settings data if validation succeeds - if (m_preferences->validate()) { - DPRINT << ": switching to info display"; - - // Store preferences if changed - if (m_preferences->storePreferences()) { - // Signal Homescreen FW - emit setPreferences( - m_preferences->preferenceNames()); - } - - // ToDo: do only if settings have really changed - m_layoutManager->reloadWidgets( - InfoWidgetLayoutManager::InfoDisplay); - - // Switch to info display - layoutInfoDisplay(); - updateInfoDisplay(); - - } else { - DPRINT << ": staying in settings display"; - // Display warning note - settingsValidationFailed(); - - // Restore check box states - initializeCheckBoxStates(); - } - - DPRINT << ": OUT"; -} - -/*! - InfoWidget::startChanges() -*/ -void InfoWidget::startChanges() -{ - DPRINT; - m_layoutChanging = true; -} - -/*! - InfoWidget::endChanges() -*/ -void InfoWidget::endChanges() -{ - DPRINT; - m_layoutChanging = false; -} - -/*! - \reimp -*/ -void InfoWidget::changeEvent(QEvent *event) -{ - DPRINT << ": IN"; - - if (event->type() == HbEvent::ThemeChanged) { - DPRINT << ": HbEvent::ThemeChanged"; - m_backGroundColor = HbColorScheme::color( - BACKGROUND_COLOR_GROUP_ID); - if (!m_backGroundColor.isValid()) { - m_backGroundColor = Qt::black; - } - } - HbWidget::changeEvent(event); - - DPRINT << ": OUT"; -} - -/*! - InfoWidget::settingsValidationFailed() -*/ -void InfoWidget::settingsValidationFailed() -{ - DPRINT << ": IN"; - - if (m_layoutManager->currentDisplayRole() == - InfoWidgetLayoutManager::SettingsDisplay) { - HbMessageBox::warning( - hbTrId("txt_operatorwidget_info_select_one")); - } - - DPRINT << ": OUT"; -} - - -// End of File. - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/src/infowidgetengine.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/src/infowidgetengine.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,249 +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 "infowidgetengine.h" -#include "infowidgetnetworkhandler.h" -#include "infowidgetsathandler.h" -#include -#include "infowidgetlogging.h" -#include "infowidgetpreferences.h" - -/*! - \class InfoWidgetEngine - \brief Engine functionality of - Operator info widget -*/ - - -/*! - InfoWidgetEngine::InfoWidgetEngine - */ -InfoWidgetEngine::InfoWidgetEngine(QObject *parent): - QObject(parent), - m_networkHandler(new InfoWidgetNetworkHandler), - m_satHandler(new InfoWidgetSatHandler) -{ - DPRINT << ": IN"; - - QObject::connect( - m_networkHandler.data(), SIGNAL(networkError(int, int)), - this, SLOT(handleNetworkError(int, int))); - - QObject::connect( - m_networkHandler.data(), SIGNAL(networkDataChanged()), - this, SLOT(updateNetworkDataToModel())); - - QObject::connect(m_satHandler.data(), - SIGNAL(handleError(int, int)), - this, SLOT(handleSatError(int, int))); - - QObject::connect(m_satHandler.data(), - SIGNAL(handleMessage(int)), - this, SLOT(updateSatDataToModel())); - - updateNetworkDataToModel(); - updateSatDataToModel(); - - DPRINT << ": OUT"; -} - -/*! - InfoWidgetEngine::~InfoWidgetEngine - */ -InfoWidgetEngine::~InfoWidgetEngine() -{ - DPRINT; -} - -/*! - InfoWidgetEngine::logModelData - - Utility function for logging model data - */ -void InfoWidgetEngine::logModelData() -{ - DPRINT << ": mcn name: " << m_modelData.mcnName(); - DPRINT << ": mcn type: " << m_modelData.mcnIndicatorType(); - DPRINT << ": service provider name: " << - m_modelData.serviceProviderName(); - DPRINT << ": service provider display required: " << - m_modelData.serviceProviderNameDisplayRequired(); - - DPRINT << ": homezone text tag: " << - m_modelData.homeZoneTextTag(); - DPRINT << ": homezone indicator type: " << - m_modelData.homeZoneIndicatorType(); - DPRINT << ": active line: " << - m_modelData.activeLine(); -} - -/*! - InfoWidgetEngine::modelData - - Getter for model data. - */ -const InfoWidgetEngine::ModelData& InfoWidgetEngine::modelData() const -{ - DPRINT; - return m_modelData; -} - -/*! - InfoWidgetEngine::updateNetworkDataToModel - */ -void InfoWidgetEngine::updateNetworkDataToModel() -{ - DPRINT << ": IN"; - - m_networkHandler->logCurrentInfo(); - - if (m_networkHandler->isOnline()) { - // Read network handler data to model data - m_modelData.setServiceProviderName( - m_networkHandler->serviceProviderName()); - m_modelData.setServiceProviderNameDisplayRequired( - m_networkHandler->serviceProviderNameDisplayRequired()); - - m_modelData.setMcnName(m_networkHandler->mcnName()); - m_modelData.setMcnIndicatorType( - m_networkHandler->mcnIndicatorType()); - - m_modelData.setHomeZoneIndicatorType( - m_networkHandler->homeZoneIndicatorType()); - m_modelData.setHomeZoneTextTag( - m_networkHandler->homeZoneTextTag()); - } else { - // Not registered to network, clear data - m_modelData.setServiceProviderName(QString("")); - m_modelData.setMcnName(QString("")); - m_modelData.setHomeZoneTextTag(QString("")); - } - - emit modelChanged(); - - DPRINT << ": OUT"; -} - -/*! - InfoWidgetEngine::updateSatDataToModel - */ -void InfoWidgetEngine::updateSatDataToModel() -{ - DPRINT << ": IN"; - - if (m_satHandler) { - // Log current network data - m_satHandler->logCurrentInfo(); - // Read SAT handler data to model data - m_modelData.setSatDisplayText( - m_satHandler->satDisplayText()); - - emit modelChanged(); - } - - DPRINT << ": OUT"; -} - -/*! - InfoWidgetEngine::updateLineDataToModel - */ -void InfoWidgetEngine::updateLineDataToModel() -{ - DPRINT; -} - -/*! - InfoWidgetEngine::handleNetworkError - */ -void InfoWidgetEngine::handleNetworkError( - int operation, int errorCode) -{ - DPRINT << ": operation: " << operation << - " error code: " << errorCode; -} - -/*! - InfoWidgetEngine::handleSatError - */ -void InfoWidgetEngine::handleSatError( - int operation, int errorCode) -{ - DPRINT << ": operation: " << operation << - " error code: " << errorCode; -} - -/*! - InfoWidgetEngine::handleLineError - */ -void InfoWidgetEngine::handleLineError( - int operation, int errorCode) -{ - DPRINT << ": operation: " << operation << " error code: " << errorCode; -} - -/*! - InfoWidgetEngine::preferenceChanged - */ -void InfoWidgetEngine::preferenceChanged( - int option, int displaySetting) -{ - DPRINT << "option: " << option << " displaySetting: " << displaySetting; - switch(option){ - case InfoWidgetPreferences::DisplayMcn: - if (displaySetting == InfoWidgetPreferences::DisplayOn) { - m_networkHandler->enableMcn(); - } else { - m_networkHandler->disableMcn(); - } - break; - case InfoWidgetPreferences::DisplaySatText: - m_satHandler->connect(displaySetting); - break; - default: - break; - } - DPRINT << ": OUT"; -} - -/*! - InfoWidgetEngine::suspend - - Called when widget is deactivated - and widget should suspend all - possible activities - */ -void InfoWidgetEngine::suspend() -{ - DPRINT; - m_networkHandler->suspend(); -} - -/*! - InfoWidgetEngine::preferenceChanged - - Called when widget is activated - and widget can resume activities - */ -void InfoWidgetEngine::resume() -{ - DPRINT; - m_networkHandler->resume(); -} - - -// End of File. - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/src/infowidgetengine_s.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/src/infowidgetengine_s.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,125 +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 "infowidgetengine.h" -#include "infowidgetlogging.h" - -/*! - InfoWidgetEngine::InfoWidgetEngine - */ -InfoWidgetEngine::InfoWidgetEngine(QObject *parent): - QObject(parent) -{ - DPRINT; -} - -/*! - InfoWidgetEngine::~InfoWidgetEngine - */ -InfoWidgetEngine::~InfoWidgetEngine() -{ - DPRINT; -} - -/*! - InfoWidgetEngine::logModelData - - Utility function for logging model data - */ -void InfoWidgetEngine::logModelData() -{ - DPRINT << ": mcn name: " << m_modelData.mcnName(); - DPRINT << ": service provider name: " << m_modelData.serviceProviderName(); - DPRINT << ": homezone text tag: " << m_modelData.homeZoneTextTag(); - - DPRINT << ": mcn type: " << m_modelData.mcnIndicatorType(); - DPRINT << ": active line: " << m_modelData.activeLine(); - DPRINT << ": homezone indicator type: " << m_modelData.homeZoneIndicatorType(); -} - -/*! - InfoWidgetEngine::modelData - - Getter for model data. - */ -const InfoWidgetEngine::ModelData& InfoWidgetEngine::modelData() const -{ - DPRINT; - return m_modelData; -} - -/*! - InfoWidgetEngine::setModelData - - Enables setting model initial data to engine. - */ -void InfoWidgetEngine::setModelData(const InfoWidgetEngine::ModelData &data) -{ - DPRINT; - m_modelData = data; -} - -/*! - InfoWidgetEngine::updateNetworkDataToModel - */ -void InfoWidgetEngine::updateNetworkDataToModel() -{ - DPRINT; -} - -/*! - InfoWidgetEngine::updateSatDataToModel - */ -void InfoWidgetEngine::updateSatDataToModel() -{ - DPRINT; -} - -/*! - InfoWidgetEngine::updateLineDataToModel - */ -void InfoWidgetEngine::updateLineDataToModel() -{ - DPRINT; -} - -/*! - InfoWidgetEngine::handleNetworkError - */ -void InfoWidgetEngine::handleNetworkError(int operation, int errorCode) -{ - DPRINT << ": operation: " << operation << " error code: " << errorCode; -} - -/*! - InfoWidgetEngine::handleSatError - */ -void InfoWidgetEngine::handleSatError(int operation, int errorCode) -{ - DPRINT << ": operation: " << operation << " error code: " << errorCode; -} - -/*! - InfoWidgetEngine::handleLineError - */ -void InfoWidgetEngine::handleLineError(int operation, int errorCode) -{ - DPRINT << ": operation: " << operation << " error code: " << errorCode; -} - -// End of File. - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/src/infowidgetlayoutmanager.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/src/infowidgetlayoutmanager.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,564 +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 "infowidgetlayoutmanager.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include "infowidgetlogging.h" - - -const char INFOWIDGET_DOCML_FILE[] = ":/resource/infowidget.docml"; - -// Docml widget name mappings -const char LAYOUT_PREFIX_INFO_DISPLAY[] = "id:"; -const char LAYOUT_PREFIX_SETTINGS_DISPLAY[] = "sd:"; -const char LAYOUT_NAME_CONTENT[] = "content"; -const char LAYOUT_NAME_MCNMARQUEEITEM[] = "mcnMarqueeItem"; -const char LAYOUT_NAME_SPNLABEL[] = "spnLabel"; -const char LAYOUT_NAME_SATMARQUEEITEM[] = "satMarqueeItem"; -const char LAYOUT_NAME_SPNICON[] = "spnIcon"; -const char LAYOUT_NAME_MCNICON[] = "mcnIcon"; -const char LAYOUT_NAME_SATTEXTICON[] = "satTextIcon"; -const char LAYOUT_NAME_SPNCHECKBOX[] = "spnCheckBox"; -const char LAYOUT_NAME_MCNCHECKBOX[] = "mcnCheckBox"; -const char LAYOUT_NAME_SATTEXTCHECKBOX[] = "satTextCheckBox"; -const char LAYOUT_NAME_OKBUTTON[] = "okButton"; -const char LAYOUT_NAME_CONTAINER[] = "container"; -const char LAYOUT_NAME_SETTINGSCONTAINER[] = "settingsContainer"; - - -/*! - \class InfoWidgetDocumentLoader - \brief Custom document loader for Operator info widget - - Derived from HbDocumentLoader. - -*/ - -/*! - InfoWidgetDocumentLoader::InfoWidgetDocumentLoader() - */ -InfoWidgetDocumentLoader::InfoWidgetDocumentLoader() -{ -} - -/*! - InfoWidgetDocumentLoader::createObject() - */ -QObject *InfoWidgetDocumentLoader::createObject( - const QString &type, - const QString &name) -{ - DPRINT << ": IN"; - - DPRINT << ": type: "<< type; - DPRINT << ": name: "<< name; - - if ( type == HbMarqueeItem::staticMetaObject.className() ) { - DPRINT << ": HbMarqueeItem"; - QObject *object = new HbMarqueeItem; - object->setObjectName(name); - DPRINT << ": HbMarqueeitem found, OUT"; - return object; - } - - DPRINT << ": OUT"; - return HbDocumentLoader::createObject(type, name); -} - - -/*! - \class InfoWidgetLayoutManager - \brief Layout manager class for Operator info widget. - - Handles layout document loading and accessing the loaded - widgets. - -*/ - -/*! - InfoWidgetLayoutManager::InfoWidgetLayoutManager() -*/ -InfoWidgetLayoutManager::InfoWidgetLayoutManager(QObject *parent) -: QObject(parent), - m_documentLoader(NULL), - m_displayRole(InfoDisplay), - m_layoutRows(0) -{ - DPRINT << ": IN"; - - // Fill supported layout item roles for info display - QList displayWidgetRoles = widgetRoles(InfoDisplay); - - // Try to load all widgets in list by widget role - bool loadResult = loadWidgets(InfoDisplay, - displayWidgetRoles, - m_infoDisplayWidgets); - DPRINT << ": info display widget load result: " << loadResult; - - // Fill supported layout item roles for settings display - displayWidgetRoles = widgetRoles(SettingsDisplay); - - // Try to load all widgets in list by widget role - loadResult = loadWidgets(SettingsDisplay, - displayWidgetRoles, - m_settingsDisplayWidgets); - DPRINT << ": settings display widget load result: " << loadResult; - - DPRINT << ": OUT"; -} - -/*! - InfoWidgetLayoutManager::~InfoWidgetLayoutManager() -*/ -InfoWidgetLayoutManager::~InfoWidgetLayoutManager() -{ - DPRINT << ": IN"; - - if (m_documentLoader) { - delete m_documentLoader; - } - - DPRINT << ": OUT"; -} - -/*! - InfoWidgetLayoutManager::destroyObjects() - - Call on destruction for freeing - loaded objects. Parent items are deleted - causing deletion of corresponding object tree -*/ -void InfoWidgetLayoutManager::destroyObjects() -{ - DPRINT << ": IN"; - - // Destroy parent items - QGraphicsWidget *contentInfoDisplay = - m_infoDisplayWidgets.value(RoleContent); - if (contentInfoDisplay) { - delete contentInfoDisplay; - m_infoDisplayWidgets.clear(); - } - - QGraphicsWidget *contentSettingsDisplay= - m_settingsDisplayWidgets.value(RoleContent); - if (contentSettingsDisplay) { - delete contentSettingsDisplay; - m_settingsDisplayWidgets.clear(); - } - - DPRINT << ": OUT"; -} - - -/*! - InfoWidgetLayoutManager::currentDisplayRole() -*/ -InfoWidgetLayoutManager::DisplayRole InfoWidgetLayoutManager::currentDisplayRole() -{ - DPRINT; - return m_displayRole; -} - -/*! - InfoWidgetLayoutManager::currentWidgetRoles() -*/ -QList InfoWidgetLayoutManager::currentWidgetRoles() -{ - DPRINT; - return m_widgets.keys(); -} - -/*! - InfoWidgetLayoutManager::layoutRows() -*/ -int InfoWidgetLayoutManager::layoutRows() const -{ - DPRINT; - return m_layoutRows; -} - -/*! - InfoWidgetLayoutManager::setLayoutRows() -*/ -void InfoWidgetLayoutManager::setLayoutRows(int rows) -{ - DPRINT; - m_layoutRows = rows; -} - -/*! - InfoWidgetLayoutManager::rowHeight() -*/ -qreal InfoWidgetLayoutManager::rowHeight() const -{ - DPRINT; - HbStyle style; - qreal rowHeight; - - bool ok = style.parameter("hb-param-graphic-size-primary-small", - rowHeight); - if (!ok) { - DPRINT << ": ERROR! Paremeters reading failed!! Using default"; - rowHeight = 26.8; - } - - DPRINT << ": rowHeight: " << rowHeight; - return rowHeight; -} - -/*! - InfoWidgetLayoutManager::contentWidget() -*/ -QGraphicsWidget* InfoWidgetLayoutManager::contentWidget() -{ - DPRINT; - return getWidget(RoleContent); -} - -/*! - InfoWidgetLayoutManager::getWidget(); -*/ -QGraphicsWidget* InfoWidgetLayoutManager::getWidget(LayoutItemRole itemRole) -{ - DPRINT << ": item role: " << itemRole; - - QGraphicsWidget *widget = m_widgets.value(itemRole); - if (widget) { - DPRINT << ": widget: " << widget; - } - - return widget; -} - -/*! - InfoWidgetLayoutManager::removeWidget(); -*/ -void InfoWidgetLayoutManager::removeWidget(LayoutItemRole itemRole) -{ - DPRINT << ": item role: " << itemRole; - - QGraphicsWidget *widget = m_widgets.value(itemRole); - if (widget) { - DPRINT << ": removing widget: " << widget; - m_widgets.remove(itemRole); - delete widget; - } -} - -/*! - InfoWidgetLayoutManager::hideWidget(); -*/ -void InfoWidgetLayoutManager::hideWidget(LayoutItemRole itemRole) -{ - DPRINT << ": item role: " << itemRole; - - QGraphicsWidget *widget = m_widgets.value(itemRole); - if (widget) { - DPRINT << ": hiding widget: " << widget; - widget->hide(); - } -} - -/*! - InfoWidgetLayoutManager::hideAll(); -*/ -void InfoWidgetLayoutManager::hideAll() -{ - DPRINT << ": IN"; - - QMapIterator iterator(m_widgets); - while (iterator.hasNext()) { - iterator.next(); - QGraphicsWidget *widget = iterator.value(); - if (widget) { - widget->hide(); - } - } - - DPRINT << ": OUT"; -} - -/*! - InfoWidgetLayoutManager::showAll(); -*/ -void InfoWidgetLayoutManager::showAll() -{ - DPRINT << ": IN"; - - QMapIterator iterator(m_widgets); - while (iterator.hasNext()) { - iterator.next(); - QGraphicsWidget *widget = iterator.value(); - if (widget) { - widget->show(); - } - } - - DPRINT << ": OUT"; -} - -/*! - InfoWidgetLayoutManager::layoutInfoDisplay() -*/ -QGraphicsLayout* InfoWidgetLayoutManager::layoutInfoDisplay() -{ - DPRINT << ": IN"; - - hideAll(); - - m_displayRole = InfoDisplay; - m_widgets = m_infoDisplayWidgets; - - QGraphicsLayout *activeLayout(NULL); - DPRINT << ": getting content item and using its layout for activeLayout"; - QGraphicsWidget *content = getWidget(RoleContent); - if (content) { - DPRINT << ": content found, getting layout"; - activeLayout = content->layout(); - } - - DPRINT << ": OUT"; - return activeLayout; -} - -/*! - InfoWidgetLayoutManager::layoutSettingsDisplay() -*/ -QGraphicsLayout* InfoWidgetLayoutManager::layoutSettingsDisplay() -{ - DPRINT << ": IN"; - - hideAll(); - - m_displayRole = SettingsDisplay; - m_widgets = m_settingsDisplayWidgets; - - QGraphicsLayout *activeLayout(NULL); - DPRINT << ": getting content item and using its layout for activeLayout"; - QGraphicsWidget *content = getWidget(RoleContent); - if (content) { - DPRINT << ": content found, getting layout"; - activeLayout = content->layout(); - } - - DPRINT << ": OUT"; - return activeLayout; -} - -/*! - InfoWidgetLayoutManager::loadWidgets() -*/ -bool InfoWidgetLayoutManager::loadWidgets(const DisplayRole displayRole, - const QList &displayWidgets, - QMap &widgetMap) -{ - DPRINT << ": IN"; - bool loadResult(false); - - // Cleanup previously loaded content in case of any data - widgetMap.clear(); - - if (!m_documentLoader) { - m_documentLoader = new InfoWidgetDocumentLoader; - } - Q_ASSERT(m_documentLoader); - - bool loaded = false; - m_documentLoader->load(INFOWIDGET_DOCML_FILE, &loaded); - - Q_ASSERT_X(loaded, - "InfoWidgetLayoutManager", - "Invalid docml file"); - - DPRINT << ": document " << INFOWIDGET_DOCML_FILE << " loaded successfully"; - - QGraphicsWidget *widget(NULL); - LayoutItemRole currentWidgetRole; - - foreach (currentWidgetRole, displayWidgets) { - DPRINT << ": iterating displayWidgets, current role: " << static_cast(currentWidgetRole); - - widget = loadWidget(*m_documentLoader, displayRole, currentWidgetRole); - if (widget) { - DPRINT << ": widget found, inserting to widget map"; - widgetMap.insert(currentWidgetRole, widget); - widget = NULL; - } else { - DCRITICAL << ": ERROR, widget not found!"; - } - } - - if (widgetMap.count() == displayWidgets.count()) { - DPRINT << ": all widgets loaded"; - loadResult = true; - } else { - DCRITICAL << ": error, all widgets were not loaded"; - } - - DPRINT << ": OUT"; - return loadResult; -} - -/*! - InfoWidgetLayoutManager::reloadWidgets() -*/ -bool InfoWidgetLayoutManager::reloadWidgets(const DisplayRole displayRole) -{ - QList displayWidgetRoles = widgetRoles(displayRole); - bool loadResult(false); - - switch (displayRole) { - case InfoDisplay: - loadResult = loadWidgets(displayRole, - displayWidgetRoles, - m_infoDisplayWidgets); - break; - case SettingsDisplay: // Fall through - default: - break; - } - return loadResult; -} - -/*! - InfoWidgetLayoutManager::loadWidget() - - Initialize loader with corresponding document file before calling this single widget loader utility -*/ -QGraphicsWidget* InfoWidgetLayoutManager::loadWidget(InfoWidgetDocumentLoader &loader, - DisplayRole displayRole, - LayoutItemRole widgetRole) -{ - DPRINT << ": IN"; - - QString widgetPrefix; - if (displayRole == InfoDisplay) { - widgetPrefix = LAYOUT_PREFIX_INFO_DISPLAY; - } else if (displayRole == SettingsDisplay) { - widgetPrefix = LAYOUT_PREFIX_SETTINGS_DISPLAY; - } - - QGraphicsWidget *widget(NULL); - QString widgetName = widgetPrefix; - - switch (widgetRole) - { - case RoleContent: - widgetName.append(LAYOUT_NAME_CONTENT); - break; - case RoleMcnMarqueeItem: - widgetName.append(LAYOUT_NAME_MCNMARQUEEITEM); - break; - case RoleSpnLabel: - widgetName.append(LAYOUT_NAME_SPNLABEL); - break; - case RoleSatMarqueeItem: - widgetName.append(LAYOUT_NAME_SATMARQUEEITEM); - break; - case RoleSpnIcon: - widgetName.append(LAYOUT_NAME_SPNICON); - break; - case RoleMcnIcon: - widgetName.append(LAYOUT_NAME_MCNICON); - break; - case RoleSatTextIcon: - widgetName.append(LAYOUT_NAME_SATTEXTICON); - break; - case RoleSpnCheckBox: - widgetName.append(LAYOUT_NAME_SPNCHECKBOX); - break; - case RoleMcnCheckBox: - widgetName.append(LAYOUT_NAME_MCNCHECKBOX); - break; - case RoleSatTextCheckBox: - widgetName.append(LAYOUT_NAME_SATTEXTCHECKBOX); - break; - case RoleOkButton: - widgetName.append(LAYOUT_NAME_OKBUTTON); - break; - case RoleContainer: - widgetName.append(LAYOUT_NAME_CONTAINER); - break; - case RoleSettingsContainer: - widgetName.append(LAYOUT_NAME_SETTINGSCONTAINER); - break; - - case RoleUndefined: // Fall through - default: - break; - } - - widget = qobject_cast(loader.findWidget(widgetName)); - if (!widget) { - DCRITICAL << ": ERROR, widget " << widgetName << " not found!"; - } - - DPRINT << ": OUT"; - return widget; -} - -/*! - InfoWidgetLayoutManager::widgetRoles() - - Returns supported widget roles for specific display -*/ -const QList InfoWidgetLayoutManager::widgetRoles( - DisplayRole displayRole) const -{ - DPRINT << ": IN"; - - QList widgetRoles; - - // Fill supported layout item roles for specific display - switch (displayRole) { - case SettingsDisplay: - widgetRoles.append(RoleContent); - widgetRoles.append(RoleSpnCheckBox); - widgetRoles.append(RoleMcnCheckBox); - widgetRoles.append(RoleSatTextCheckBox); - widgetRoles.append(RoleOkButton); - widgetRoles.append(RoleSettingsContainer); - break; - case InfoDisplay: - widgetRoles.append(RoleContent); - widgetRoles.append(RoleSpnIcon); - widgetRoles.append(RoleSpnLabel); - widgetRoles.append(RoleMcnIcon); - widgetRoles.append(RoleMcnMarqueeItem); - widgetRoles.append(RoleSatTextIcon); - widgetRoles.append(RoleSatMarqueeItem); - break; - default: - break; - } - - DPRINT << ": widgetRoles.count() : " << widgetRoles.count(); - DPRINT << ": OUT"; - return widgetRoles; -} - -// End of File. - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/src/infowidgetlinehandler.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/src/infowidgetlinehandler.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,63 +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 "infowidgetlinehandler.h" -#include "infowidgetlogging.h" - - -/*! - */ -InfoWidgetLineHandler::InfoWidgetLineHandler(QObject *parent): - QObject(parent), - m_activeLine(1) -{ - DPRINT; -} - -/*! - */ -InfoWidgetLineHandler::~InfoWidgetLineHandler() -{ - DPRINT; -} - -/*! - */ -void InfoWidgetLineHandler::logCurrentInfo() -{ - DPRINT; -} - -/*! - */ -int InfoWidgetLineHandler::activeLine() const -{ - DPRINT << ": active line: " << m_activeLine; - return m_activeLine; -} - -/*! - */ -void InfoWidgetLineHandler::setActiveLine(int line) -{ - DPRINT << ": active line: " << line; - m_activeLine = line; -} - -// End of File. - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/src/infowidgetnetworkhandler.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/src/infowidgetnetworkhandler.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,364 +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 -#include -#include -#include -#include -#include "infowidgetnetworkhandler.h" -#include "infowidgetlogging.h" - - -/*! - \class InfoWidgetNetworkHandler - \brief Handles network specific functionality of - Operator info widget -*/ - -/*! - InfoWidgetNetworkHandler::InfoWidgetNetworkHandler() -*/ -InfoWidgetNetworkHandler::InfoWidgetNetworkHandler(QObject *parent) - : - QObject(parent), - m_nwSession(0) -{ - DPRINT << ": IN"; - - // Initialize key - // ToDo: need to check if preference is ON initially - enableMcn(); - - CNWSession *session = 0; - QT_TRAP_THROWING(session = CreateL(*this, m_nwInfo)); - m_nwSession.reset(session); - - DPRINT << ": OUT"; -} - -/*! - InfoWidgetNetworkHandler::~InfoWidgetNetworkHandler() -*/ -InfoWidgetNetworkHandler::~InfoWidgetNetworkHandler() -{ - DPRINT; - - // Disable MCN setting, - // no display client - disableMcn(); -} - -/*! - InfoWidgetNetworkHandler::suspend() -*/ -void InfoWidgetNetworkHandler::suspend() -{ - DPRINT; - disableMcn(); -} - -/*! - InfoWidgetNetworkHandler::suspend() -*/ -void InfoWidgetNetworkHandler::resume() -{ - DPRINT; - enableMcn(); -} - -/*! - InfoWidgetNetworkHandler::serviceProviderName() -*/ -QString InfoWidgetNetworkHandler::serviceProviderName() const -{ - DPRINT; - QString qBuf; - qBuf = QString((QChar*)m_nwInfo.iSPName.Ptr(), - m_nwInfo.iSPName.Length()); - DPRINT << ": serviceProviderName: " << qBuf; - - return qBuf; -} - -/*! - InfoWidgetNetworkHandler::serviceProviderNameDisplayRequired() -*/ -bool InfoWidgetNetworkHandler::serviceProviderNameDisplayRequired() const -{ - DPRINT; - bool displayRequired(true); - - if (m_nwInfo.iServiceProviderNameDisplayReq == - RMobilePhone::KDisplaySPNNotRequired) { - displayRequired = false; - } - DPRINT << ": serviceProviderNameDisplayRequired: " << - displayRequired; - - return displayRequired; -} - -/*! - InfoWidgetNetworkHandler::homeZoneTextTag() -*/ -QString InfoWidgetNetworkHandler::homeZoneTextTag() const -{ - DPRINT; - QString qBuf; - qBuf = QString((QChar*)m_nwInfo.iViagTextTag.Ptr(), - m_nwInfo.iViagTextTag.Length()); - DPRINT << ": homeZoneTextTag: " << qBuf; - - return qBuf; -} - -/*! - InfoWidgetNetworkHandler::homeZoneIndicatorType() -*/ -int InfoWidgetNetworkHandler::homeZoneIndicatorType() const -{ - DPRINT; - int indicatorType = m_nwInfo.iViagIndicatorType; - DPRINT << ": homeZoneIndicatorType: " << indicatorType; - - return indicatorType; -} - -/*! - InfoWidgetNetworkHandler::enableMcn() -*/ -void InfoWidgetNetworkHandler::enableMcn() -{ - DPRINT; - if (!readMcnDisplayState()) { - DPRINT << ": enabling mcn display cenrep"; - writeMcnDisplayState(true); - } -} - -/*! - InfoWidgetNetworkHandler::disableMcn() -*/ -void InfoWidgetNetworkHandler::disableMcn() -{ - DPRINT; - if (readMcnDisplayState()) { - DPRINT << ": disabling mcn display cenrep"; - writeMcnDisplayState(false); - } -} - -/*! - InfoWidgetNetworkHandler::mcnName() -*/ -QString InfoWidgetNetworkHandler::mcnName() const -{ - DPRINT; - QString qBuf; - qBuf = QString((QChar*)m_nwInfo.iMCNName.Ptr(), - m_nwInfo.iMCNName.Length()); - DPRINT << ": mcnName: " << qBuf; - - return qBuf; -} - -/*! - InfoWidgetNetworkHandler::mcnIndicatorType() -*/ -int InfoWidgetNetworkHandler::mcnIndicatorType() const -{ - DPRINT; - int indicatorType = m_nwInfo.iMCNIndicatorType; - DPRINT << ": mcnIndicatorType: " << indicatorType; - - return indicatorType; -} - - -/*! - InfoWidgetNetworkHandler::networkRegistrationStatus() -*/ -int InfoWidgetNetworkHandler::networkRegistrationStatus() const -{ - DPRINT << ": registration status: " << - static_cast(m_nwInfo.iRegistrationStatus); - - return static_cast(m_nwInfo.iRegistrationStatus); -} - -/*! - InfoWidgetNetworkHandler::isOnline() - - Check if network registration status is registered and - return status accordingly -*/ -bool InfoWidgetNetworkHandler::isOnline() const -{ - bool online(false); - - switch (networkRegistrationStatus()) { - case ENWRegisteredBusy: // Fall through - case ENWRegisteredOnHomeNetwork: // Fall through - case ENWRegisteredRoaming: - online = true; - break; - default: - break; - } - - DPRINT << ": online: " << online; - return online; -} - -/*! - InfoWidgetNetworkHandler::logCurrentInfo() -*/ -void InfoWidgetNetworkHandler::logCurrentInfo() -{ - DPRINT << ": IN"; - - QString qBuf; - DPRINT << "iMCNIndicatorType " << m_nwInfo.iMCNIndicatorType; - qBuf = QString((QChar*)m_nwInfo.iMCNName.Ptr(), - m_nwInfo.iMCNName.Length()); - DPRINT << "iMCNName " << qBuf; - - qBuf = QString((QChar*)m_nwInfo.iSPName.Ptr(),m_nwInfo.iSPName.Length()); - DPRINT << "iSPName " << qBuf; - DPRINT << "iServiceProviderNameDisplayReq " - << m_nwInfo.iServiceProviderNameDisplayReq; - - DPRINT << "iViagIndicatorType " << m_nwInfo.iViagIndicatorType; - qBuf = QString((QChar*)m_nwInfo.iViagTextTag.Ptr(), - m_nwInfo.iViagTextTag.Length()); - DPRINT << "iViagTextTag " << qBuf; - - DPRINT << ": OUT"; -} - -/*! - InfoWidgetNetworkHandler::HandleNetworkMessage() -*/ -void InfoWidgetNetworkHandler::HandleNetworkMessage( - const TNWMessages aMessage ) -{ - DPRINT << ": message: " << aMessage; - - bool acceptedMessage = false; - switch (aMessage) { - case ENWMessageCurrentCellInfoMessage: // Fall through - case ENWMessageServiceProviderNameChange: // Fall through - case ENWMessageNetworkRegistrationStatusChange: // Fall through - acceptedMessage = true; - break; - default: - // not interesting message, filter out - DPRINT << ": message filtered out"; - acceptedMessage = false; - } - - if (acceptedMessage) { - int result = 0; - QT_TRYCATCH_ERROR(result, emit networkDataChanged()); - if (0 != result) { - DPRINT << ": Exception occured while emitting signal:" << result; - } - } -} - -/*! - InfoWidgetNetworkHandler::HandleNetworkError() -*/ -void InfoWidgetNetworkHandler::HandleNetworkError( - const TNWOperation aOperation, - TInt aErrorCode ) -{ - DPRINT << ": operation: " << aOperation << - " error code: " << aErrorCode; - - // Reset invalid data - switch (aOperation) { - case MNWMessageObserver::ENWGetServiceProviderName: - m_nwInfo.iServiceProviderNameDisplayReq = - RMobilePhone::KDisplaySPNNotRequired; - m_nwInfo.iSPName.Zero(); - break; - default: - break; - } - - // Emit error signal - int result = 0; - QT_TRYCATCH_ERROR(result, emit networkError( - static_cast(aOperation), static_cast(aErrorCode))); - if (0 != result) { - DPRINT << ": Exception occured while emitting signal:" << result; - } -} - -/*! - InfoWidgetNetworkHandler::writeMcnDisplayState() - - Handler for cenrep key writing -*/ -void InfoWidgetNetworkHandler::writeMcnDisplayState(bool enabled) -{ - DPRINT << ": IN"; - - XQSettingsManager *settingsManager = new XQSettingsManager(0); - XQSettingsKey settingsKey(XQSettingsKey::TargetCentralRepository, - KCRUidNetworkSettings.iUid, KSettingsMcnDisplay); - int value; - if (enabled) { - value = 1; - } else { - value = 0; - } - bool result = settingsManager->writeItemValue(settingsKey, value ); - delete settingsManager; - - DPRINT << ": OUT"; -} - -/*! - InfoWidgetNetworkHandler::readMcnDisplayState() -*/ -bool InfoWidgetNetworkHandler::readMcnDisplayState() -{ - DPRINT << ": IN"; - bool mcnDisplayKeyOn(false); - - XQSettingsManager *settingsManager = new XQSettingsManager(0); - XQSettingsKey settingsKey(XQSettingsKey::TargetCentralRepository, - KCRUidNetworkSettings.iUid, KSettingsMcnDisplay); - bool conversionOk(false); - int value = settingsManager->readItemValue( - settingsKey, - XQSettingsManager::TypeInt).toInt(&conversionOk); - - if (conversionOk && value == 1) { - mcnDisplayKeyOn = true; - } - delete settingsManager; - - DPRINT << ": OUT"; - return mcnDisplayKeyOn; -} - - -// End of File. diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/src/infowidgetpreferences.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/src/infowidgetpreferences.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,186 +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 "infowidgetpreferences.h" -#include "infowidgetlogging.h" - -/*! - \class InfoWidgetPreferences - \brief Preference store for widget - display etc. options -*/ - - -/*! - InfoWidgetPreferences::InfoWidgetPreferences() -*/ -InfoWidgetPreferences::InfoWidgetPreferences(QObject *parent): - QObject(parent) -{ - DPRINT; -} - -/*! - InfoWidgetPreferences::~InfoWidgetPreferences() -*/ -InfoWidgetPreferences::~InfoWidgetPreferences() -{ - DPRINT; -} - -/*! - InfoWidgetPreferences::storePreferences() - - Store acceptable preference set -*/ -bool InfoWidgetPreferences::storePreferences() -{ - DPRINT; - bool changed(false); - - if (validate() && - m_validatedOptions != m_options){ - DPRINT << ": preferences differ"; - changed = true; - m_validatedOptions = m_options; - } - else if (visibleItemCount() <= 0) { - DPRINT << ": invalid options, restoring initial options"; - restorePreferences(); - } - - return changed; -} - -/*! - InfoWidgetPreferences::restorePreferences() - - Restores last acceptable preference set -*/ -void InfoWidgetPreferences::restorePreferences() -{ - DPRINT; - m_options = m_validatedOptions; -} - -/*! - InfoWidgetPreferences::preference() -*/ -QString InfoWidgetPreferences::preference(Option preferenceId) const -{ - DPRINT << ": preference id: " << static_cast(preferenceId); - - QString preferenceString; - if (m_options.testFlag(preferenceId)) { - preferenceString = DISPLAY_SETTING_ON; - } else { - preferenceString = DISPLAY_SETTING_OFF; - } - - return preferenceString; -} - -/*! - InfoWidgetPreferences::isPreferenceSet() -*/ -bool InfoWidgetPreferences::isPreferenceSet(Option preferenceId) const -{ - DPRINT << ": preference id: " << static_cast(preferenceId); - return m_options.testFlag(preferenceId); -} - -/*! - InfoWidgetPreferences::preferences() -*/ -InfoWidgetPreferences::Options InfoWidgetPreferences::preferences() const -{ - return m_options; -} - -/*! - InfoWidgetPreferences::setPreference() -*/ -void InfoWidgetPreferences::setPreference(Option preferenceId, - const QString& preferenceString) -{ - DPRINT << ": preference id: " << static_cast(preferenceId); - DPRINT << ": preference string: " << preferenceString; - DPRINT << ": initial options: " << m_options; - - if (preferenceString.compare(DISPLAY_SETTING_ON) == 0) { - m_options |= preferenceId; - emit prefChanged(preferenceId,DisplayOn); - } else { - m_options &= ~preferenceId; - emit prefChanged(preferenceId,DisplayOff); - } - - DPRINT << ": modified options: " << m_options; -} - -/*! - InfoWidgetPreferences::visibleItemCount() -*/ -int InfoWidgetPreferences::visibleItemCount() -{ - DPRINT << ": IN"; - - int visibleItems = 0; - if (m_options.testFlag(DisplayHomeZone)){ - visibleItems++; - } - if (m_options.testFlag(DisplayMcn)){ - visibleItems++; - } - if (m_options.testFlag(DisplayActiveLine)){ - visibleItems++; - } - if (m_options.testFlag(DisplaySatText)){ - visibleItems++; - } - if (m_options.testFlag(DisplaySpn)){ - visibleItems++; - } - - DPRINT << ": visible item count: " << visibleItems; - return visibleItems; -} - -/*! - InfoWidgetPreferences::validate() -*/ -bool InfoWidgetPreferences::validate() -{ - return visibleItemCount() > 0; -} - -/*! - InfoWidgetPreferences::preferenceNames() - - Convenience function for getting all preference names -*/ -QStringList InfoWidgetPreferences::preferenceNames() -{ - QStringList preferenceList; - preferenceList << "spnDisplay" << "homeZoneDisplay" << - "activeLineDisplay" << "satDisplay" << "mcnDisplay"; - return preferenceList; -} - - -// End of File. - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/src/infowidgetpreferences_s.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/src/infowidgetpreferences_s.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,101 +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 "infowidgetpreferences.h" -#include "infowidgetlogging.h" - -// --------------------------------------------------------------------------- -// --------------------------------------------------------------------------- -// -InfoWidgetPreferences::InfoWidgetPreferences(IHsWidgetPreferenceService &preferenceService, - QObject* parent) - : QObject(parent) -{ - DPRINT << "DUMMY IMPLEMENTATION"; - - m_options = InfoWidgetPreferences::DisplayActiveLine| - InfoWidgetPreferences::DisplayMcn| - InfoWidgetPreferences::DisplaySatText| - InfoWidgetPreferences::DisplayHomeZone; -} - -// --------------------------------------------------------------------------- -// --------------------------------------------------------------------------- -// -InfoWidgetPreferences::~InfoWidgetPreferences() -{ - DPRINT << "DUMMY IMPLEMENTATION"; -} - -// --------------------------------------------------------------------------- -// --------------------------------------------------------------------------- -// -void InfoWidgetPreferences::loadPreferences() -{ - DPRINT << "DUMMY IMPLEMENTATION"; -} - -// --------------------------------------------------------------------------- -// --------------------------------------------------------------------------- -// -void InfoWidgetPreferences::storePreferences() -{ - DPRINT << "DUMMY IMPLEMENTATION"; -} - - -/*! - InfoWidgetPreferences::preference() -*/ -QString InfoWidgetPreferences::preference(Option preferenceId) -{ - DPRINT << "DUMMY IMPLEMENTATION"; - DPRINT << ": preference id: " << static_cast(preferenceId); - - QString preferenceString; - if (m_options.testFlag(preferenceId)) { - preferenceString = DISPLAY_SETTING_ON; - } else { - preferenceString = DISPLAY_SETTING_OFF; - } - - return preferenceString; -} - -/*! - InfoWidgetPreferences::setPreference() -*/ -void InfoWidgetPreferences::setPreference(Option preferenceId, - QString preferenceString) -{ - DPRINT << "DUMMY IMPLEMENTATION"; - DPRINT << ": preference id: " << static_cast(preferenceId); - DPRINT << ": preference string: " << preferenceString; - - DPRINT << ": initial options: " << m_options; - - if (preferenceString.compare(DISPLAY_SETTING_ON) == 0) { - m_options |= preferenceId; - } else { - m_options &= ~preferenceId; - } - - DPRINT << ": modified options: " << m_options; -} - -// End of File. - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/src/infowidgetsathandler.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/src/infowidgetsathandler.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,127 +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 "infowidgetsathandler.h" -#include "infowidgetsathandlerprivate.h" -#include "infowidgetlogging.h" -#include - -/*! - \class InfoWidgetSatHandler - \brief Handles SIM Application Toolkit specific functionality of - Operator info widget -*/ - -/*! - */ -InfoWidgetSatHandler::InfoWidgetSatHandler(QObject *parent): - QObject(parent) , m_connected(false) -{ - DPRINT << ": IN"; - - d_ptr = new InfoWidgetSatHandlerPrivate(this, m_satService); - - DPRINT << ": OUT"; -} - -/*! - */ -InfoWidgetSatHandler::~InfoWidgetSatHandler() -{ - DPRINT << ": IN"; - delete d_ptr; - DPRINT << ": OUT"; -} - -/*! - InfoWidgetSatHandler::connect - */ -void InfoWidgetSatHandler::connect(bool connect) -{ - DPRINT << ": IN : connected = " << m_connected << " : connect = " << connect; - if(connect && !m_connected){ - DPRINT << "connect and startObserving() "; - m_connected = d_ptr->connect(); - if(m_connected){ - d_ptr->startObserving(); - } - }else if (!connect && m_connected){ - DPRINT << "disconnect and stopObserving() "; - m_connected = d_ptr->disconnect(); - } - DPRINT << ": OUT : connected = " << m_connected; -} - -/*! - InfoWidgetSatHandler::logCurrentInfo - */ -void InfoWidgetSatHandler::logCurrentInfo() -{ - DPRINT << ": IN"; - DPRINT << "SAT IdleModeText: " << m_displayText; - DPRINT << ": OUT"; -} - -/*! - InfoWidgetSatHandler::satDisplayText - */ -const QString& InfoWidgetSatHandler::satDisplayText() const -{ - DPRINT << ": text: " << m_displayText; - return m_displayText; -} - -/*! - InfoWidgetSatHandler::setSatDisplayText - */ -void InfoWidgetSatHandler::setSatDisplayText(const QString& displayText) -{ - DPRINT << ": display text: " << displayText; - m_displayText = displayText; -} - -/*! - InfoWidgetSatHandler::handleIdleModeTxtMessage - */ -void InfoWidgetSatHandler::handleIdleModeTxtMessage( int idleResult ) -{ - DPRINT << ": handleIdleModeTxtMessage: " << idleResult; - if(m_connected){ - m_satService.SetIdleModeTextResponse((RSatService::TSATIdleResult)idleResult); - } - else{ - //TODO: What's correct response if widget isn't visible? For now it's permanen problem - m_satService.SetIdleModeTextResponse( RSatService::ESATIdleCmdBeyondMeCapabilities ); - } - - //Pass the result - emit handleMessage(idleResult); -} - -/*! - InfoWidgetSatHandler::handleSatError - */ -void InfoWidgetSatHandler::handleSatError( int operation, int errorCode ) -{ - DPRINT << ": satError : operation: " << operation << ": errorCode: "< - -#include "InfoWidgetSatHandlerPrivate.h" -#include "InfoWidgetSatHandler.h" -#include "infowidgetlogging.h" - -/*! - InfoWidgetSatHandlerPrivate::InfoWidgetSatHandlerPrivate - */ -InfoWidgetSatHandlerPrivate::InfoWidgetSatHandlerPrivate( - InfoWidgetSatHandler *iwSatHandler, RSatService& satService) - : CActive(CActive::EPriorityStandard), - q_ptr(iwSatHandler), - m_satService(satService) -{ - DPRINT << ": IN"; - CActiveScheduler::Add(this); - DPRINT << ": OUT"; -} -/*! - InfoWidgetSatHandlerPrivate::~InfoWidgetSatHandlerPrivate -*/ -InfoWidgetSatHandlerPrivate::~InfoWidgetSatHandlerPrivate() -{ - DPRINT << ": IN"; - Cancel(); - DPRINT << ": OUT"; -} -/*! - InfoWidgetSatHandlerPrivate::connect - */ -int InfoWidgetSatHandlerPrivate::connect() -{ - TInt result( KErrGeneral ); - TRAP(result, m_satSession.ConnectL()); - if (0 != result) { - DPRINT << ": Exception occured while connecting SatSession:" << result; - } - else{ - TRAP(result, m_satService.OpenL(m_satSession)); - if (0 != result) { - DPRINT << ": Exception occured while opening SatService:" << result; - } - } - return !result; -} -/*! - InfoWidgetSatHandlerPrivate::startObserving - - To get initial content if any and start listening - */ -void InfoWidgetSatHandlerPrivate::startObserving() -{ - //not observing yet but - getIdleModeData(); - // in case there were content, there is need to send response to SAT - if(!m_idleTxt.isEmpty()){ - q_ptr->handleIdleModeTxtMessage( m_idleResult ); - } - // Start observing for changes - activate(); -} -/*! - InfoWidgetSatHandlerPrivate::disconnect - */ -int InfoWidgetSatHandlerPrivate::disconnect() -{ - DPRINT << ": IN"; - m_idleTxt = ""; - Cancel(); - m_satService.NotifySetupIdleModeTextChangeCancel(); - m_satService.Close(); - m_satSession.Close(); - - DPRINT << ": OUT"; - return 0;//TODO:Fixme -} -/*! - InfoWidgetSatHandlerPrivate::getIdleModeData - */ -void InfoWidgetSatHandlerPrivate::getIdleModeData() -{ - HBufC* string( NULL ); - TUint8 recordId( NULL ); - RSatService::TSatIconQualifier iconQualifier( - RSatService::ESatIconNoIcon ); - - // Get setup idle mode text, icon qualifier and record id. - TInt result( KErrNotFound ); - TRAP(result, m_satService.GetSetupIdleModeTextL( string, iconQualifier, recordId )); - if (0 != result) { - DPRINT << ": Exception occured while GetSetupIdleModeTextL :" << result; - m_idleResult = RSatService::ESATIdleMeUnableToProcessCmd; - } - else{ - DPRINT << "string->Length() : " << string->Length(); - if(RSatService::ESatIconSelfExplanatory != iconQualifier){ - m_idleTxt = QString((QChar*)string->Des().Ptr(), string->Length()); - }else{ - m_idleTxt = ""; - } - //determine result - if(RSatService::ESatIconNoIcon != iconQualifier - && !m_idleTxt.isEmpty()){ - //icon requested but we don't have icon support - m_idleResult = RSatService::ESATIdleSuccessRequestedIconNotDisplayed; - }else if(RSatService::ESatIconNoIcon == iconQualifier - && !m_idleTxt.isEmpty()){ - m_idleResult = RSatService::ESATIdleSuccess; - }else{ //got empty string, could be permanen problem as well? - //m_idleResult = RSatService::ESATIdleCmdBeyondMeCapabilities - m_idleResult = RSatService::ESATIdleMeUnableToProcessCmd; - } - } - delete string; - q_ptr->setSatDisplayText(m_idleTxt);//empty in case of selexplanatory icon -} - -/*! - InfoWidgetSatHandlerPrivate::RunL - */ -void InfoWidgetSatHandlerPrivate::RunL() -{ - DPRINT << ": IN"; - if ( KErrNone == iStatus.Int() ) - { - getIdleModeData(); - q_ptr->handleIdleModeTxtMessage( m_idleResult ); - } else { - q_ptr->handleSatError(1,iStatus.Int()); - } - if ( !IsActive() ) - { - activate(); - } - DPRINT << ": OUT"; -} -/*! - InfoWidgetSatHandlerPrivate::DoCancel - */ -void InfoWidgetSatHandlerPrivate::DoCancel() -{ - DPRINT << ": IN"; - m_satService.NotifySetupIdleModeTextChangeCancel(); - DPRINT << ": OUT"; -} -/*! - InfoWidgetSatHandlerPrivate::activate - */ -void InfoWidgetSatHandlerPrivate::activate() -{ - DPRINT << ": IN"; - Cancel(); - TInt error = m_satService.NotifySetupIdleModeTextChange( iStatus ); - - if ( KErrNone == error ) - { - SetActive(); - } - DPRINT << ": OUT"; -} - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/infowidgetprovider.pri --- a/phoneplugins/infowidgetplugin/infowidgetprovider/infowidgetprovider.pri Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,69 +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: -# -# - -HEADERS += ./inc/infowidgetprovider.h \ - ./inc/infowidgetlogging.h \ - ./infowidget/inc/infowidget.h \ - ./infowidget/inc/infowidgetlayoutmanager.h \ - ./infowidget/inc/infowidgetpreferences.h \ - ./infowidget/inc/infowidgetengine.h \ - ./infowidget/inc/infowidgetsathandlerprivate.h - -symbian: { - HEADERS += ./infowidget/inc/infowidgetnetworkhandler.h \ - ./infowidget/inc/infowidgetsathandler.h \ - ./infowidget/inc/infowidgetlinehandler.h -} -SOURCES += infowidget/src/infowidgetsathandlerprivate.cpp \ - ./src/infowidgetprovider.cpp \ - ./infowidget/src/infowidget.cpp \ - ./infowidget/src/infowidgetlayoutmanager.cpp \ - ./infowidget/src/infowidgetengine.cpp - -symbian: { - SOURCES += ./infowidget/src/infowidgetpreferences.cpp \ - ./infowidget/src/infowidgetnetworkhandler.cpp \ - ./infowidget/src/infowidgetsathandler.cpp \ - ./infowidget/src/infowidgetlinehandler.cpp -} else: { - SOURCES += ./infowidget/src/infowidgetengine_s.cpp \ - ./infowidget/src/infowidgetpreferences_s.cpp -} - -defineTest(exportResources) { - symbian { - for(subdirs, 1) { - entries = $$files($$subdirs) - for(entry, entries) : BLD_INF_RULES.prj_exports += "./$$entry z:/$$replace(2, ^/,)/$$basename(entry)" - } - export ( BLD_INF_RULES.prj_exports) - } -} - -symbian: plugin { # copy qtstub and manifest - - pluginstub.sources = $${TARGET}.dll - pluginstub.path = $$PLUGIN_SUBDIR - - DEPLOYMENT += pluginstub - - qtplugins.path = $$PLUGIN_SUBDIR - qtplugins.sources += qmakepluginstubs/$${TARGET}.qtplugin - contains(MOBILITY, serviceframework):BLD_INF_RULES.prj_exports += "resource/$${TARGET}.s60xml z:$$qtplugins.path/$${TARGET}.xml" - - for(qtplugin, qtplugins.sources):BLD_INF_RULES.prj_exports += "./$$qtplugin z:$$qtplugins.path/$$basename(qtplugin)" -} diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/infowidgetprovider.pro --- a/phoneplugins/infowidgetplugin/infowidgetprovider/infowidgetprovider.pro Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,80 +0,0 @@ -# -# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -# All rights reserved. -# This component and the accompanying materials are made available -# under the terms of "Eclipse Public License v1.0" -# which accompanies this distribution, and is available -# at the URL "http://www.eclipse.org/legal/epl-v10.html". -# -# Initial Contributors: -# Nokia Corporation - initial contribution. -# -# Contributors: -# -# Description: -# -# - - -TEMPLATE = lib -CONFIG += plugin hb svg mobility -MOBILITY = serviceframework - -TRANSLATIONS = operator_widget.ts - -MOC_DIR = moc -RCC_DIR = rcc - -symbian: { -LIBS += -lhswidgetmodel \ - -lnetworkhandling \ - -lcbsclient \ - -lcbsmcnclient \ - -lxqsettingsmanager \ - -lsatclient -} - -INCLUDEPATH += ./inc \ - ./infowidget/inc - -symbian: { - load(data_caging_paths) - INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE - TARGET.UID3 = 0x20029F28 - TARGET.EPOCALLOWDLLDATA = 1 - TARGET.CAPABILITY = ALL \ - -TCB - deploy.path = c: - - DEPLOYMENT += exportheaders - - BLD_INF_RULES.prj_exports += \ - "$${LITERAL_HASH}include " \ - "./rom/infowidgetprovider.iby CORE_APP_LAYER_IBY_EXPORT_PATH(infowidgetprovider.iby)" \ - "./rom/infowidgetprovider_resources.iby LANGUAGE_APP_LAYER_IBY_EXPORT_PATH(infowidgetprovider_resources.iby)" -} -win32: { - INCLUDEPATH += ../../../../homescreensrv/homescreensrv_plat/hswidgetmodel_api - include(infowidgetprovider_installs_win32.pri) -} -RESOURCES = infowidgetprovider.qrc - -symbian: PLUGIN_SUBDIR = /private/20022F35/import/widgetregistry/20029F28 -win32: PLUGIN_SUBDIR = /hsresources/import/widgetregistry/20029F28 -OUTPUT_DIR = ./bin -SOURCE_DIR = ./inc -OBJECTS_DIR = $$OUTPUT_DIR/tmp/$$TARGET -DESTDIR = $$OUTPUT_DIR -MOC_DIR = $$OUTPUT_DIR/tmp/$$TARGET/moc -RCC_DIR = $$OUTPUT_DIR/tmp/$$TARGET/rcc -UI_DIR = $$OUTPUT_DIR/tmp/$$TARGET/ui -LIBS += -L$$DESTDIR -DEPENDPATH += . $$SOURCE_DIR -INCLUDEPATH += . $$SOURCE_DIR -INCLUDEPATH += $$MOC_DIR -plugin: !isEmpty(PLUGIN_SUBDIR): DESTDIR = $$OUTPUT_DIR/$$PLUGIN_SUBDIR - -include(infowidgetprovider.pri) - -exportResources(./resource/*.manifest, $$PLUGIN_SUBDIR) -exportResources(./resource/*.png, $$PLUGIN_SUBDIR) diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/infowidgetprovider.qrc --- a/phoneplugins/infowidgetplugin/infowidgetprovider/infowidgetprovider.qrc Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ - - - - resource/infowidget.png - resource/infowidget.docml - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/infowidgetprovider_hw.pkg --- a/phoneplugins/infowidgetplugin/infowidgetprovider/infowidgetprovider_hw.pkg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,42 +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: -; - -; Language -&EN - -; SIS header: name, uid, version -#{"infowidgetprovider"},(0x20029F28),1,0,0 - -; Localised Vendor name -%{"Vendor"} - -; Unique Vendor name -:"Vendor" - -; Manual PKG pre-rules from PRO files -; Default HW/platform dependencies -[0x101F7961],0,0,0,{"S60ProductID"} -[0x102032BE],0,0,0,{"S60ProductID"} -[0x102752AE],0,0,0,{"S60ProductID"} -[0x1028315F],0,0,0,{"S60ProductID"} - -; DEPLOYMENT -"/epoc32/release/armv5/urel/infowidgetprovider.dll" - "c:\sys\bin\infowidgetprovider.dll" -"/epoc32/data/z/private/20022F35/import/widgetregistry/20029F28/infowidgetprovider.qtplugin" - "c:/private/20022F35/import/widgetregistry/20029F28/infowidgetprovider.qtplugin" -"/epoc32/data/z/private/20022F35/import/widgetregistry/20029F28/infowidgetprovider.manifest" - "c:/private/20022F35/import/widgetregistry/20029F28/infowidgetprovider.manifest" -"/epoc32/data/z/private/20022F35/import/widgetregistry/20029F28/infowidget.png" - "c:/private/20022F35/import/widgetregistry/20029F28/infowidget.png" - -; Manual PKG post-rules from PRO files diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/infowidgetprovider_installs_win32.pri --- a/phoneplugins/infowidgetplugin/infowidgetprovider/infowidgetprovider_installs_win32.pri Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +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: -# - -# -# Release -# - -r01.path = ../../../bin/release/hsresources/import/widgetregistry/20029F28 -r01.files = ./release/*.dll \ - ./resource/*.manifest \ - ./resource/*.png - -INSTALLS += r01 - -# -# Debug -# - -d01.path = ../../../../bin/debug/hsresources/import/widgetregistry/20029F28 -d01.files = ./debug/*.dll \ - ./resource/*.manifest \ - ./resource/*.png - -INSTALLS += d01 diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/resource/infowidget.docml --- a/phoneplugins/infowidgetplugin/infowidgetprovider/resource/infowidget.docml Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,145 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/resource/infowidget.png Binary file phoneplugins/infowidgetplugin/infowidgetprovider/resource/infowidget.png has changed diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/resource/infowidgetprovider.manifest --- a/phoneplugins/infowidgetplugin/infowidgetprovider/resource/infowidgetprovider.manifest Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/resource/infowidgetprovider.s60xml --- a/phoneplugins/infowidgetplugin/infowidgetprovider/resource/infowidgetprovider.s60xml Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ - - - infowidgetprovider - infowidgetprovider - Operator widget - - com.nokia.symbian.IHomeScreenWidget - 1.0 - - - Operator - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/resource/infowidgetprovider.xml --- a/phoneplugins/infowidgetplugin/infowidgetprovider/resource/infowidgetprovider.xml Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ - - - infowidgetprovider - infowidgetprovider - Operator widget - - com.nokia.symbian.IHomeScreenWidget - 1.0 - - - Operator - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/resource/qgn_prop_network_2g.svg --- a/phoneplugins/infowidgetplugin/infowidgetprovider/resource/qgn_prop_network_2g.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/resource/qgn_prop_pb_call.svg --- a/phoneplugins/infowidgetplugin/infowidgetprovider/resource/qgn_prop_pb_call.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/resource/qgn_prop_pb_sim.svg --- a/phoneplugins/infowidgetplugin/infowidgetprovider/resource/qgn_prop_pb_sim.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/resource/qgn_stat_zone_home_uni.svg --- a/phoneplugins/infowidgetplugin/infowidgetprovider/resource/qgn_stat_zone_home_uni.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/rom/infowidgetprovider.iby --- a/phoneplugins/infowidgetplugin/infowidgetprovider/rom/infowidgetprovider.iby Fri Jun 04 10:19:18 2010 +0100 +++ /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: -* -*/ - -#ifndef __INFOWIDGETPROVIDER_IBY__ -#define __INFOWIDGETPROVIDER_IBY__ - -file=ABI_DIR\BUILD_DIR\infowidgetprovider.dll SHARED_LIB_DIR\infowidgetprovider.dll -data=ZPRIVATE\20022f35\import\widgetregistry\20029F28\infowidgetprovider.qtplugin private\20022f35\import\widgetregistry\20029F28\infowidgetprovider.qtplugin -data=ZPRIVATE\20022f35\import\widgetregistry\20029F28\infowidgetprovider.manifest private\20022f35\import\widgetregistry\20029F28\infowidgetprovider.manifest -data=ZPRIVATE\20022f35\import\widgetregistry\20029F28\infowidget.png private\20022f35\import\widgetregistry\20029F28\infowidget.png -data=ZPRIVATE\20022f35\import\widgetregistry\20029F28\infowidgetprovider.xml private\20022f35\import\widgetregistry\20029F28\infowidgetprovider.xml - - -#endif //__INFOWIDGETPROVIDER_IBY__ diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/rom/infowidgetprovider_resources.iby --- a/phoneplugins/infowidgetplugin/infowidgetprovider/rom/infowidgetprovider_resources.iby Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +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: -* -*/ - -#ifndef __INFOWIDGETPROVIDER_RESOURCE_IBY__ -#define __INFOWIDGETPROVIDER_RESOURCE_IBY__ - -#include - -data=DATAZ_\QT_TRANSLATIONS_DIR\operator_widget.qm QT_TRANSLATIONS_DIR\operator_widget.qm - -#endif \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/src/infowidgetprovider.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/src/infowidgetprovider.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,46 +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 -#include -#include - -#include "infowidgetprovider.h" -#include "infowidget.h" - - -/*! - \class InfoWidgetProvider - - \brief Homescreen Widget for providing operator information -*/ -QObject *InfoWidgetProvider::createInstance(const QServiceInterfaceDescriptor &descriptor, - QServiceContext *context, - QAbstractSecuritySession *session) -{ - Q_UNUSED(context); - Q_UNUSED(session); - - if (descriptor.interfaceName() == QLatin1String("com.nokia.symbian.IHomeScreenWidget")) { - return new InfoWidget(); - } else { - return 0; - } -} - - -Q_EXPORT_PLUGIN2(infowidgetprovider, InfoWidgetProvider) diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/common/qtestmains60.h --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/common/qtestmains60.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,40 +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: -* -*/ - -#ifndef QTESTMAINS60 -#define QTESTMAINS60 - -#define QTEST_MAIN_S60(TestObject) \ -int main(int argc, char *argv[]) \ -{ \ -char *new_argv[3]; \ -QCoreApplication app(argc, argv); \ -\ -QString str = "C:\\data\\" + QFileInfo(QCoreApplication::applicationFilePath()).baseName() + ".log"; \ -QByteArray bytes = str.toAscii(); \ -\ -char arg1[] = "-o"; \ -\ -new_argv[0] = argv[0]; \ -new_argv[1] = arg1; \ -new_argv[2] = bytes.data(); \ -\ -TestObject tc; \ -return QTest::qExec(&tc, 3, new_argv); \ -} - -#endif \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_RSatSession.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_RSatSession.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +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 -#include -#include "RSatSession.h" - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// RSatSession::RSatSession -// ----------------------------------------------------------------------------- -// -RSatSession::RSatSession( ) - { - - } - - -// ----------------------------------------------------------------------------- -// RSatSession::ConnectL -// ----------------------------------------------------------------------------- -// -void RSatSession::ConnectL( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// RSatSession::Version -// ----------------------------------------------------------------------------- -// -TVersion RSatSession::Version( ) const - { - SMC_MOCK_METHOD0( TVersion ) - } - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_hbcolorscheme.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_hbcolorscheme.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /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 "Eclipse Public License v1.0" -* which accompanies 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 - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// QString::color -// ----------------------------------------------------------------------------- -// -QColor HbColorScheme::color( - const QString & colorRole ) - { - SMC_MOCK_METHOD1( QColor, const QString &, colorRole ) - } - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_hbdocumentloader.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_hbdocumentloader.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,182 +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 -#include -#include -#include -#include -#include - -#include "hbdocumentloader.h" - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// HbDocumentLoader::HbDocumentLoader -// ----------------------------------------------------------------------------- -// -HbDocumentLoader::HbDocumentLoader( ) - : d_ptr(0) - { - - } - - -// ----------------------------------------------------------------------------- -// HbDocumentLoader::HbDocumentLoader -// ----------------------------------------------------------------------------- -// -HbDocumentLoader::HbDocumentLoader( - const HbMainWindow * window ) - : d_ptr(0) - { - - } - - -// ----------------------------------------------------------------------------- -// HbDocumentLoader::~HbDocumentLoader -// ----------------------------------------------------------------------------- -// -HbDocumentLoader::~HbDocumentLoader( ) - { - - } - - -// ----------------------------------------------------------------------------- -// HbDocumentLoader::load -// ----------------------------------------------------------------------------- -// -QObjectList HbDocumentLoader::load( - const QString & fileName, - const QString & section, - bool * ok ) - { - SMC_MOCK_METHOD3( QObjectList, const QString &, fileName, - const QString &, section, - bool *, ok ) - } - - -// ----------------------------------------------------------------------------- -// HbDocumentLoader::load -// ----------------------------------------------------------------------------- -// -QObjectList HbDocumentLoader::load( - QIODevice * device, - const QString & section, - bool * ok ) - { - SMC_MOCK_METHOD3( QObjectList, QIODevice *, device, - const QString &, section, - bool *, ok ) - } - - -// ----------------------------------------------------------------------------- -// HbDocumentLoader::load -// ----------------------------------------------------------------------------- -// -QObjectList HbDocumentLoader::load( - const QString & fileName, - bool * ok ) - { - SMC_MOCK_METHOD2( QObjectList, const QString &, fileName, - bool *, ok ) - } - - -// ----------------------------------------------------------------------------- -// HbDocumentLoader::load -// ----------------------------------------------------------------------------- -// -QObjectList HbDocumentLoader::load( - QIODevice * device, - bool * ok ) - { - SMC_MOCK_METHOD2( QObjectList, QIODevice *, device, - bool *, ok ) - } - - -// ----------------------------------------------------------------------------- -// HbDocumentLoader::findWidget -// ----------------------------------------------------------------------------- -// -QGraphicsWidget * HbDocumentLoader::findWidget( - const QString & name ) const - { - SMC_MOCK_METHOD1( QGraphicsWidget *, const QString &, name ) - } - - -// ----------------------------------------------------------------------------- -// HbDocumentLoader::findObject -// ----------------------------------------------------------------------------- -// -QObject * HbDocumentLoader::findObject( - const QString & name ) const - { - SMC_MOCK_METHOD1( QObject *, const QString &, name ) - } - - -// ----------------------------------------------------------------------------- -// HbDocumentLoader::setObjectTree -// ----------------------------------------------------------------------------- -// -bool HbDocumentLoader::setObjectTree( - QObjectList roots ) - { - SMC_MOCK_METHOD1( bool, QObjectList, roots ) - } - - -// ----------------------------------------------------------------------------- -// HbDocumentLoader::reset -// ----------------------------------------------------------------------------- -// -void HbDocumentLoader::reset( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// HbDocumentLoader::version -// ----------------------------------------------------------------------------- -// -QString HbDocumentLoader::version( ) - { - SMC_MOCK_METHOD0( QString ) - } - - -// ----------------------------------------------------------------------------- -// HbDocumentLoader::createObject -// ----------------------------------------------------------------------------- -// -QObject * HbDocumentLoader::createObject( - const QString & type, - const QString & name ) - { - SMC_MOCK_METHOD2( QObject *, const QString &, type, - const QString &, name ) - } - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_hbframedrawer.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_hbframedrawer.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,347 +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 -#include -#include -#include -#include -#include - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::HbFrameDrawer -// ----------------------------------------------------------------------------- -// -HbFrameDrawer::HbFrameDrawer( - bool cacheFlag ) - { - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::HbFrameDrawer -// ----------------------------------------------------------------------------- -// -HbFrameDrawer::HbFrameDrawer( - const QString & frameGraphicsName, - FrameType type, - bool cacheFlag ) - { - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::~HbFrameDrawer -// ----------------------------------------------------------------------------- -// -HbFrameDrawer::~HbFrameDrawer( ) - { - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::isNull -// ----------------------------------------------------------------------------- -// -bool HbFrameDrawer::isNull( ) const - { - SMC_MOCK_METHOD0( bool ) - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::frameGraphicsName -// ----------------------------------------------------------------------------- -// -QString HbFrameDrawer::frameGraphicsName( ) const - { - SMC_MOCK_METHOD0( QString ) - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::setFrameGraphicsName -// ----------------------------------------------------------------------------- -// -void HbFrameDrawer::setFrameGraphicsName( - const QString & frameGraphicsName ) - { - SMC_MOCK_METHOD1( void, const QString &, frameGraphicsName ) - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::frameType -// ----------------------------------------------------------------------------- -// -HbFrameDrawer::FrameType HbFrameDrawer::frameType() const - { - SMC_MOCK_METHOD0( FrameType ) - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::setFrameType -// ----------------------------------------------------------------------------- -// -void HbFrameDrawer::setFrameType( - HbFrameDrawer::FrameType type ) - { - SMC_MOCK_METHOD1( void, FrameType, type ) - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::borderWidths -// ----------------------------------------------------------------------------- -// -void HbFrameDrawer::borderWidths( - qreal & left, - qreal & top, - qreal & right, - qreal & bottom ) const - { - SMC_MOCK_METHOD4( void, qreal &, left, - qreal &, top, - qreal &, right, - qreal &, bottom ) - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::setBorderWidths -// ----------------------------------------------------------------------------- -// -void HbFrameDrawer::setBorderWidths( - const qreal left, - const qreal top, - const qreal right, - const qreal bottom ) - { - SMC_MOCK_METHOD4( void, const qreal, left, - const qreal, top, - const qreal, right, - const qreal, bottom ) - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::setBorderWidths -// ----------------------------------------------------------------------------- -// -void HbFrameDrawer::setBorderWidths( - const qreal horizontal, - const qreal vertical ) - { - SMC_MOCK_METHOD2( void, const qreal, horizontal, - const qreal, vertical ) - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::setBorderWidth -// ----------------------------------------------------------------------------- -// -void HbFrameDrawer::setBorderWidth( - const qreal width ) - { - SMC_MOCK_METHOD1( void, const qreal, width ) - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::fillWholeRect -// ----------------------------------------------------------------------------- -// -bool HbFrameDrawer::fillWholeRect( ) const - { - SMC_MOCK_METHOD0( bool ) - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::setFillWholeRect -// ----------------------------------------------------------------------------- -// -void HbFrameDrawer::setFillWholeRect( - bool fill ) - { - SMC_MOCK_METHOD1( void, bool, fill ) - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::mirroringMode -// ----------------------------------------------------------------------------- -// -HbIcon::MirroringMode HbFrameDrawer::mirroringMode( ) const - { - SMC_MOCK_METHOD0( HbIcon::MirroringMode ) - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::setMirroringMode -// ----------------------------------------------------------------------------- -// -void HbFrameDrawer::setMirroringMode( - HbIcon::MirroringMode mode ) - { - SMC_MOCK_METHOD1( void, HbIcon::MirroringMode, mode ) - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::fileNameSuffixList -// ----------------------------------------------------------------------------- -// -QStringList HbFrameDrawer::fileNameSuffixList( ) const - { - SMC_MOCK_METHOD0( QStringList ) - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::setFileNameSuffixList -// ----------------------------------------------------------------------------- -// -void HbFrameDrawer::setFileNameSuffixList( - const QStringList & list ) - { - SMC_MOCK_METHOD1( void, const QStringList &, list ) - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::setMask -// ----------------------------------------------------------------------------- -// -void HbFrameDrawer::setMask( - const QPixmap & mask ) - { - SMC_MOCK_METHOD1( void, const QPixmap &, mask ) - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::setMask -// ----------------------------------------------------------------------------- -// -void HbFrameDrawer::setMask( - const QBitmap & mask ) - { - SMC_MOCK_METHOD1( void, const QBitmap &, mask ) - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::mask -// ----------------------------------------------------------------------------- -// -QPixmap HbFrameDrawer::mask( ) const - { - SMC_MOCK_METHOD0( QPixmap ) - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::maskBitmap -// ----------------------------------------------------------------------------- -// -QBitmap HbFrameDrawer::maskBitmap( ) const - { - SMC_MOCK_METHOD0( QBitmap ) - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::frameSize -// ----------------------------------------------------------------------------- -// -QSize HbFrameDrawer::frameSize( ) const - { - SMC_MOCK_METHOD0( QSize ) - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::themeChanged -// ----------------------------------------------------------------------------- -// -void HbFrameDrawer::themeChanged( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::setLayoutDirection -// ----------------------------------------------------------------------------- -// -void HbFrameDrawer::setLayoutDirection( - Qt::LayoutDirection direction ) - { - SMC_MOCK_METHOD1( void, Qt::LayoutDirection, direction ) - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::setGraphicsItem -// ----------------------------------------------------------------------------- -// -void HbFrameDrawer::setGraphicsItem( - QGraphicsItem * item ) - { - SMC_MOCK_METHOD1( void, QGraphicsItem *, item ) - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::paint -// ----------------------------------------------------------------------------- -// -void HbFrameDrawer::paint( - QPainter * painter, - const QRectF & rect ) const - { - SMC_MOCK_METHOD2( void, QPainter *, painter, - const QRectF &, rect ) - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::rect -// ----------------------------------------------------------------------------- -// -QRectF HbFrameDrawer::rect( ) const - { - SMC_MOCK_METHOD0( QRectF ) - } - - -// ----------------------------------------------------------------------------- -// HbFrameDrawer::setRect -// ----------------------------------------------------------------------------- -// -void HbFrameDrawer::setRect( - const QRectF & rect ) - { - SMC_MOCK_METHOD1( void, const QRectF &, rect ) - } - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_hblabel.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_hblabel.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,327 +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 -#include -#include -#include - - - - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// HbLabel::Q_PROPERTY -// ----------------------------------------------------------------------------- -// -//void HbLabel::Q_PROPERTY( -// QString plainText READ plainText WRITE setPlainText ) Q_PROPERTY ( QString html READ html WRITE setHtml ) Q_PROPERTY ( Qt::Alignment alignment READ alignment WRITE setAlignment ) Q_PROPERTY ( Qt::TextElideMode elideMode READ elideMode WRITE setElideMode ) Q_PROPERTY ( Hb::TextWrapping textWrapping READ textWrapping WRITE setTextWrapping ) Q_PROPERTY ( QColor textColor READ textColor WRITE setTextColor ) Q_PROPERTY ( HbIcon icon READ icon WRITE setIcon ) Q_PROPERTY ( Qt::AspectRatioMode aspectRatioMode READ aspectRatioMode WRITE setAspectRatioMode ):HbLabel ( QGraphicsItem * parent ) -// { -// SMC_MOCK_METHOD1( void, QString plainText READ plainText WRITE setPlainText ) Q_PROPERTY ( QString html READ html WRITE setHtml ) Q_PROPERTY ( Qt::Alignment alignment READ alignment WRITE setAlignment ) Q_PROPERTY ( Qt::TextElideMode elideMode READ elideMode WRITE setElideMode ) Q_PROPERTY ( Hb::TextWrapping textWrapping READ textWrapping WRITE setTextWrapping ) Q_PROPERTY ( QColor textColor READ textColor WRITE setTextColor ) Q_PROPERTY ( HbIcon icon READ icon WRITE setIcon ) Q_PROPERTY ( Qt::AspectRatioMode aspectRatioMode READ aspectRatioMode WRITE setAspectRatioMode ):HbLabel ( QGraphicsItem *, parent ) -// } - - -// ----------------------------------------------------------------------------- -// HbLabel::HbLabel -// ----------------------------------------------------------------------------- -// -HbLabel::HbLabel( - const QString & displayText, - QGraphicsItem * parent ) - { - } - -// ----------------------------------------------------------------------------- -// HbLabel::HbLabel -// ----------------------------------------------------------------------------- -// -HbLabel::HbLabel(QGraphicsItem *parent) - { - } - -// ----------------------------------------------------------------------------- -// HbLabel::~HbLabel -// ----------------------------------------------------------------------------- -// -HbLabel::~HbLabel( ) - { - } - - -// ----------------------------------------------------------------------------- -// HbLabel::plainText -// ----------------------------------------------------------------------------- -// -QString HbLabel::plainText( ) const - { - SMC_MOCK_METHOD0( QString ) - } - - -// ----------------------------------------------------------------------------- -// HbLabel::html -// ----------------------------------------------------------------------------- -// -QString HbLabel::html( ) const - { - SMC_MOCK_METHOD0( QString ) - } - - -// ----------------------------------------------------------------------------- -// HbLabel::setElideMode -// ----------------------------------------------------------------------------- -// -void HbLabel::setElideMode( - Qt::TextElideMode elideMode ) - { - SMC_MOCK_METHOD1( void, Qt::TextElideMode, elideMode ) - } - - -// ----------------------------------------------------------------------------- -// HbLabel::elideMode -// ----------------------------------------------------------------------------- -// -Qt::TextElideMode HbLabel::elideMode( ) const - { - SMC_MOCK_METHOD0( Qt::TextElideMode ) - } - - -// ----------------------------------------------------------------------------- -// HbLabel::setTextWrapping -// ----------------------------------------------------------------------------- -// -void HbLabel::setTextWrapping( - Hb::TextWrapping mode ) - { - SMC_MOCK_METHOD1( void, Hb::TextWrapping, mode ) - } - - -// ----------------------------------------------------------------------------- -// HbLabel::textWrapping -// ----------------------------------------------------------------------------- -// -Hb::TextWrapping HbLabel::textWrapping( ) const - { - SMC_MOCK_METHOD0( Hb::TextWrapping ) - } - - -// ----------------------------------------------------------------------------- -// HbLabel::setIcon -// ----------------------------------------------------------------------------- -// -void HbLabel::setIcon( - const HbIcon & icon ) - { - SMC_MOCK_METHOD1( void, const HbIcon &, icon ) - } - - -// ----------------------------------------------------------------------------- -// HbLabel::icon -// ----------------------------------------------------------------------------- -// -HbIcon HbLabel::icon( ) const - { - SMC_MOCK_METHOD0( HbIcon ) - } - - -// ----------------------------------------------------------------------------- -// HbLabel::setAspectRatioMode -// ----------------------------------------------------------------------------- -// -void HbLabel::setAspectRatioMode( - Qt::AspectRatioMode mode ) - { - SMC_MOCK_METHOD1( void, Qt::AspectRatioMode, mode ) - } - - -// ----------------------------------------------------------------------------- -// HbLabel::aspectRatioMode -// ----------------------------------------------------------------------------- -// -Qt::AspectRatioMode HbLabel::aspectRatioMode( ) const - { - SMC_MOCK_METHOD0( Qt::AspectRatioMode ) - } - - -// ----------------------------------------------------------------------------- -// HbLabel::setAlignment -// ----------------------------------------------------------------------------- -// -void HbLabel::setAlignment( - Qt::Alignment alignment ) - { - //SMC_MOCK_METHOD1( void, Qt::Alignment, alignment ) - } - - -// ----------------------------------------------------------------------------- -// HbLabel::alignment -// ----------------------------------------------------------------------------- -// -Qt::Alignment HbLabel::alignment( ) const - { - //SMC_MOCK_METHOD0( Qt::Alignment ) - } - - -// ----------------------------------------------------------------------------- -// HbLabel::setTextColor -// ----------------------------------------------------------------------------- -// -void HbLabel::setTextColor( - const QColor & textColor ) - { - SMC_MOCK_METHOD1( void, const QColor &, textColor ) - } - - -// ----------------------------------------------------------------------------- -// HbLabel::textColor -// ----------------------------------------------------------------------------- -// -QColor HbLabel::textColor( ) const - { - SMC_MOCK_METHOD0( QColor ) - } - - -// ----------------------------------------------------------------------------- -// HbLabel::isEmpty -// ----------------------------------------------------------------------------- -// -bool HbLabel::isEmpty( ) const - { - SMC_MOCK_METHOD0( bool ) - } - - -// ----------------------------------------------------------------------------- -// HbLabel::primitive -// ----------------------------------------------------------------------------- -// -QGraphicsItem * HbLabel::primitive( - HbStyle::Primitive primitive ) const - { - SMC_MOCK_METHOD1( QGraphicsItem *, HbStyle::Primitive, primitive ) - } - - -// ----------------------------------------------------------------------------- -// HbLabel::type -// ----------------------------------------------------------------------------- -// -int HbLabel::type( ) const - { - SMC_MOCK_METHOD0( int ) - } - - -// ----------------------------------------------------------------------------- -// HbLabel::setPlainText -// ----------------------------------------------------------------------------- -// -void HbLabel::setPlainText( - const QString & text ) - { - SMC_MOCK_METHOD1( void, const QString &, text ) - } - - -// ----------------------------------------------------------------------------- -// HbLabel::setHtml -// ----------------------------------------------------------------------------- -// -void HbLabel::setHtml( - const QString & text ) - { - SMC_MOCK_METHOD1( void, const QString &, text ) - } - - -// ----------------------------------------------------------------------------- -// HbLabel::setNumber -// ----------------------------------------------------------------------------- -// -void HbLabel::setNumber( - int number ) - { - SMC_MOCK_METHOD1( void, int, number ) - } - - -// ----------------------------------------------------------------------------- -// HbLabel::setNumber -// ----------------------------------------------------------------------------- -// -void HbLabel::setNumber( - qreal number ) - { - SMC_MOCK_METHOD1( void, qreal, number ) - } - - -// ----------------------------------------------------------------------------- -// HbLabel::updatePrimitives -// ----------------------------------------------------------------------------- -// -void HbLabel::updatePrimitives( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// HbLabel::clear -// ----------------------------------------------------------------------------- -// -void HbLabel::clear( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// HbLabel::HbLabel -// ----------------------------------------------------------------------------- -// -HbLabel::HbLabel( - HbLabelPrivate & dd, - QGraphicsItem * parent ) - { - } - - -// ----------------------------------------------------------------------------- -// HbLabel::initStyleOption -// ----------------------------------------------------------------------------- -// -void HbLabel::initStyleOption( - HbStyleOptionLabel * option ) const - { - SMC_MOCK_METHOD1( void, HbStyleOptionLabel *, option ) - } - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_hbmarqueeitem.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_hbmarqueeitem.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,229 +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 -#include -#include - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// HbMarqueeItem::HbMarqueeItem -// ----------------------------------------------------------------------------- -// -HbMarqueeItem::HbMarqueeItem( - QGraphicsItem * parent ) - { - Q_UNUSED(parent) - } - - -// ----------------------------------------------------------------------------- -// HbMarqueeItem::HbMarqueeItem -// ----------------------------------------------------------------------------- -// -HbMarqueeItem::HbMarqueeItem( - const QString & text, - QGraphicsItem * parent ) - { - Q_UNUSED(text) - Q_UNUSED(parent) - } - - -// ----------------------------------------------------------------------------- -// HbMarqueeItem::~HbMarqueeItem -// ----------------------------------------------------------------------------- -// -HbMarqueeItem::~HbMarqueeItem( ) - { - - } - - -// ----------------------------------------------------------------------------- -// HbMarqueeItem::text -// ----------------------------------------------------------------------------- -// -QString HbMarqueeItem::text( ) const - { - SMC_MOCK_METHOD0( QString ) - } - - -// ----------------------------------------------------------------------------- -// HbMarqueeItem::setTextColor -// ----------------------------------------------------------------------------- -// -void HbMarqueeItem::setTextColor( - const QColor & color ) - { - SMC_MOCK_METHOD1( void, const QColor &, color ) - } - - -// ----------------------------------------------------------------------------- -// HbMarqueeItem::textColor -// ----------------------------------------------------------------------------- -// -QColor HbMarqueeItem::textColor( ) const - { - SMC_MOCK_METHOD0( QColor ) - } - - -// ----------------------------------------------------------------------------- -// HbMarqueeItem::isAnimating -// ----------------------------------------------------------------------------- -// -bool HbMarqueeItem::isAnimating( ) const - { - SMC_MOCK_METHOD0( bool ) - } - - -// ----------------------------------------------------------------------------- -// HbMarqueeItem::loopCount -// ----------------------------------------------------------------------------- -// -int HbMarqueeItem::loopCount( ) const - { - SMC_MOCK_METHOD0( int ) - } - - -// ----------------------------------------------------------------------------- -// HbMarqueeItem::setLoopCount -// ----------------------------------------------------------------------------- -// -void HbMarqueeItem::setLoopCount( - int count ) - { - SMC_MOCK_METHOD1( void, int, count ) - } - -// ----------------------------------------------------------------------------- -// HbMarqueeItem::setText -// ----------------------------------------------------------------------------- -// -void HbMarqueeItem::setText( - const QString & text ) - { - SMC_MOCK_METHOD1( void, const QString &, text ) - } - - -// ----------------------------------------------------------------------------- -// HbMarqueeItem::startAnimation -// ----------------------------------------------------------------------------- -// -void HbMarqueeItem::startAnimation( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// HbMarqueeItem::stopAnimation -// ----------------------------------------------------------------------------- -// -void HbMarqueeItem::stopAnimation( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// HbMarqueeItem::animationStarted -// ----------------------------------------------------------------------------- -// -void HbMarqueeItem::animationStarted( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// HbMarqueeItem::animationStopped -// ----------------------------------------------------------------------------- -// -void HbMarqueeItem::animationStopped( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// HbMarqueeItem::sizeHint -// ----------------------------------------------------------------------------- -// -QSizeF HbMarqueeItem::sizeHint( - Qt::SizeHint which, - const QSizeF & constraint ) const - { - SMC_MOCK_METHOD2( QSizeF, Qt::SizeHint, which, - const QSizeF &, constraint ) - } - - -// ----------------------------------------------------------------------------- -// HbMarqueeItem::changeEvent -// ----------------------------------------------------------------------------- -// -void HbMarqueeItem::changeEvent( - QEvent * event ) - { - SMC_MOCK_METHOD1( void, QEvent *, event ) - } - - -// ----------------------------------------------------------------------------- -// HbMarqueeItem::resizeEvent -// ----------------------------------------------------------------------------- -// -void HbMarqueeItem::resizeEvent( - QGraphicsSceneResizeEvent * ) - { - //SMC_MOCK_METHOD1( void, QGraphicsSceneResizeEvent *, event ) - } - - -// ----------------------------------------------------------------------------- -// HbMarqueeItem::itemChange -// ----------------------------------------------------------------------------- -// -QVariant HbMarqueeItem::itemChange( - GraphicsItemChange change, - const QVariant & value ) - { - SMC_MOCK_METHOD2( QVariant, GraphicsItemChange, change, - const QVariant &, value ) - } - - -// ----------------------------------------------------------------------------- -// HbMarqueeItem::HbMarqueeItem -// ----------------------------------------------------------------------------- -// -HbMarqueeItem::HbMarqueeItem( - HbMarqueeItemPrivate & dd, - QGraphicsItem * parent ) - { - Q_UNUSED(dd) - Q_UNUSED(parent) - } - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_hbstyle.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_hbstyle.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,200 +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 -#include -#include "hbstyle.h" - -//needed for TSmcValueSize()const -class HbStyleParameters {}; -//needed for TSmcValueSize()const -class HbWidget {}; - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// HbStyle::HbStyle -// ----------------------------------------------------------------------------- -// -HbStyle::HbStyle( ):d_ptr(NULL) - // QObject * parent ) - { - // Q_UNUSED(parent); - } - - -// ----------------------------------------------------------------------------- -// HbStyle::~HbStyle -// ----------------------------------------------------------------------------- -// -HbStyle::~HbStyle( ) - { - - } - - -// ----------------------------------------------------------------------------- -// HbStyle::createPrimitive -// ----------------------------------------------------------------------------- -// -QGraphicsItem * HbStyle::createPrimitive( - HbStyle::Primitive primitive, - QGraphicsItem * parent ) const - { - SMC_MOCK_METHOD2( QGraphicsItem *, HbStyle::Primitive, primitive, - QGraphicsItem *, parent ) - } - - -// ----------------------------------------------------------------------------- -// HbStyle::updatePrimitive -// ----------------------------------------------------------------------------- -// -void HbStyle::updatePrimitive( - QGraphicsItem * item, - HbStyle::Primitive primitive, - const QStyleOption * option ) const - { - SMC_MOCK_METHOD3( void, QGraphicsItem *, item, - HbStyle::Primitive, primitive, - const QStyleOption *, option ) - } - - -// ----------------------------------------------------------------------------- -// HbStyle::registerPlugin -// ----------------------------------------------------------------------------- -// -int HbStyle::registerPlugin( - const QString & pluginName ) - { - SMC_MOCK_METHOD1( int, const QString &, pluginName ) - } - - -// ----------------------------------------------------------------------------- -// HbStyle::unregisterPlugin -// ----------------------------------------------------------------------------- -// -void HbStyle::unregisterPlugin( - const QString & pluginName ) - { - SMC_MOCK_METHOD1( void, const QString &, pluginName ) - } - - -// ----------------------------------------------------------------------------- -// HbStyle::setItemName -// ----------------------------------------------------------------------------- -// -void HbStyle::setItemName( - QGraphicsItem * item, - const QString & name ) - { - SMC_MOCK_METHOD2( void, QGraphicsItem *, item, - const QString &, name ) - } - - -// ----------------------------------------------------------------------------- -// HbStyle::itemName -// ----------------------------------------------------------------------------- -// -QString HbStyle::itemName( - const QGraphicsItem * item ) - { - SMC_MOCK_METHOD1( QString, const QGraphicsItem *, item ) - } - - -// ----------------------------------------------------------------------------- -// HbStyle::parameter -// ----------------------------------------------------------------------------- -// -bool HbStyle::parameter( - const QString & parameter, - qreal & value, - const HbDeviceProfile & profile ) const - { - SMC_MOCK_METHOD3( bool, const QString &, parameter, - qreal &, value, - const HbDeviceProfile &, profile ) - } - - -// ----------------------------------------------------------------------------- -// HbStyle::parameters -// ----------------------------------------------------------------------------- -// -void HbStyle::parameters( - HbStyleParameters & parameters, - const HbDeviceProfile & profile ) const - { - SMC_MOCK_METHOD2( void, HbStyleParameters &, parameters, - const HbDeviceProfile &, profile ) - } - - -// ----------------------------------------------------------------------------- -// HbStyle::polish -// ----------------------------------------------------------------------------- -// -void HbStyle::polish( - HbWidget * widget, - HbStyleParameters & params ) - { - SMC_MOCK_METHOD2( void, HbWidget *, widget, - HbStyleParameters &, params ) - } - - -// ----------------------------------------------------------------------------- -// HbStyle::updateThemedParams -// ----------------------------------------------------------------------------- -// -void HbStyle::updateThemedParams( - HbWidget * widget ) - { - SMC_MOCK_METHOD1( void, HbWidget *, widget ) - } - - -// ----------------------------------------------------------------------------- -// HbStyle::hasOrientationSpecificStyleRules -// ----------------------------------------------------------------------------- -// -bool HbStyle::hasOrientationSpecificStyleRules( - HbWidget * widget ) - { - SMC_MOCK_METHOD1( bool, HbWidget *, widget ) - } - - -// ----------------------------------------------------------------------------- -// HbStyle::HbStyle -// ----------------------------------------------------------------------------- -// -HbStyle::HbStyle( - HbStylePrivate & dd, - QStyle * parent ):d_ptr(NULL) - //: - //QObject( /*dd, parent*/ ) - { - Q_UNUSED(dd); - Q_UNUSED(parent); - } - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_hbstyleoptionlabel.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_hbstyleoptionlabel.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,57 +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 -#include -#include "hbstyleoptionlabel.h" - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// HbStyleOptionLabel::HbStyleOptionLabel -// ----------------------------------------------------------------------------- -// -HbStyleOptionLabel::HbStyleOptionLabel( ) - //: - //HbStyleOption( /**/ ) - { - - } - - -// ----------------------------------------------------------------------------- -// HbStyleOptionLabel::HbStyleOptionLabel -// ----------------------------------------------------------------------------- -// -HbStyleOptionLabel::HbStyleOptionLabel( - const HbStyleOptionLabel & other ) - //: - //HbStyleOption( /*other*/ ) - { - - } - - -// ----------------------------------------------------------------------------- -// HbStyleOptionLabel::~HbStyleOptionLabel -// ----------------------------------------------------------------------------- -// -HbStyleOptionLabel::~HbStyleOptionLabel( ) - { - - } - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_hbwidget.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_hbwidget.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,485 +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 -#include -#include - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// HbWidget::HbWidget -// ----------------------------------------------------------------------------- -// -HbWidget::HbWidget( - QGraphicsItem * , - Qt::WindowFlags ) - //: - //HbWidgetBase( /*parent, wFlags*/ ) - { - - } - - -// ----------------------------------------------------------------------------- -// HbWidget::~HbWidget -// ----------------------------------------------------------------------------- -// -HbWidget::~HbWidget( ) - { - - } - - -// ----------------------------------------------------------------------------- -// HbWidget::event -// ----------------------------------------------------------------------------- -// -bool HbWidget::event( - QEvent * ) - { - } - - -// ----------------------------------------------------------------------------- -// HbWidget::setStyle -// ----------------------------------------------------------------------------- -// -void HbWidget::setStyle( - HbStyle * ) - { - } - - -// ----------------------------------------------------------------------------- -// HbWidget::style -// ----------------------------------------------------------------------------- -// -HbStyle * HbWidget::style( ) const - { - } - - -// ----------------------------------------------------------------------------- -// HbWidget::clearActions -// ----------------------------------------------------------------------------- -// -void HbWidget::clearActions( ) - { - SMC_MOCK_METHOD0( void ) - } - - - -// ----------------------------------------------------------------------------- -// HbWidget::pluginBaseId -// ----------------------------------------------------------------------------- -// -int HbWidget::pluginBaseId( ) const - { - SMC_MOCK_METHOD0( int ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::mainWindow -// ----------------------------------------------------------------------------- -// -HbMainWindow * HbWidget::mainWindow( ) const - { - // SMC_MOCK_METHOD0( HbMainWindow * ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::primitive -// ----------------------------------------------------------------------------- -// -QGraphicsItem * HbWidget::primitive( - HbStyle::Primitive ) const - { - // SMC_MOCK_METHOD1( QGraphicsItem *, HbStyle::Primitive, primitive ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::setFocusOrientation -// ----------------------------------------------------------------------------- -// -void HbWidget::setFocusOrientation( - Qt::Orientations , - Qt::Orientations ) - { - // SMC_MOCK_METHOD2( void, Qt::Orientations, previous, - // Qt::Orientations, next ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::keyForFocusNextChild -// ----------------------------------------------------------------------------- -// -QKeySequence HbWidget::keyForFocusNextChild( ) const - { - // SMC_MOCK_METHOD0( QKeySequence ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::keyForFocusPreviousChild -// ----------------------------------------------------------------------------- -// -QKeySequence HbWidget::keyForFocusPreviousChild( ) const - { - // SMC_MOCK_METHOD0( QKeySequence ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::setKeyFocusMode -// ----------------------------------------------------------------------------- -// -void HbWidget::setKeyFocusMode( - const QKeySequence & ) - { -// SMC_MOCK_METHOD1( void, const QKeySequence &, key ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::keyFocusMode -// ----------------------------------------------------------------------------- -// -QKeySequence HbWidget::keyFocusMode( ) const - { -// SMC_MOCK_METHOD0( QKeySequence ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::lastFocusedChild -// ----------------------------------------------------------------------------- -// -QGraphicsItem * HbWidget::lastFocusedChild( ) const - { - // SMC_MOCK_METHOD0( QGraphicsItem * ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::setFocusOrder -// ----------------------------------------------------------------------------- -// -void HbWidget::setFocusOrder( - QGraphicsItem * , - QGraphicsItem * ) - { - // SMC_MOCK_METHOD2( void, QGraphicsItem *, first, - // QGraphicsItem *, second ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::setFocusDelegation -// ----------------------------------------------------------------------------- -// -void HbWidget::setFocusDelegation( - HbWidget::FocusDelegation ) - { - // SMC_MOCK_METHOD1( void, HbWidget::FocusDelegation, focusDelegation ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::focusDelegation -// ----------------------------------------------------------------------------- -// -HbWidget::FocusDelegation HbWidget::focusDelegation( ) const - { - // SMC_MOCK_METHOD0( HbWidget::FocusDelegation ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::setFocusLooping -// ----------------------------------------------------------------------------- -// -void HbWidget::setFocusLooping( - bool enable ) - { - SMC_MOCK_METHOD1( void, bool, enable ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::hasFocusLooping -// ----------------------------------------------------------------------------- -// -bool HbWidget::hasFocusLooping( ) const - { - SMC_MOCK_METHOD0( bool ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::setFocusMode -// ----------------------------------------------------------------------------- -// -void HbWidget::setFocusMode( - HbWidget::FocusMode ) - { - // SMC_MOCK_METHOD1( void, HbWidget::, FocusMode ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::focusMode -// ----------------------------------------------------------------------------- -// -HbWidget::FocusMode HbWidget::focusMode( ) const - { - // SMC_MOCK_METHOD0( HbWidget::FocusMode ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::setFocusHighlight -// ----------------------------------------------------------------------------- -// -void HbWidget::setFocusHighlight( - HbStyle::Primitive , - HbWidget::FocusHighlight ) - { - // SMC_MOCK_METHOD2( void, HbStyle::Primitive, type, - // HbWidget::FocusHighlight, focusHighlight ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::focusHighlight -// ----------------------------------------------------------------------------- -// -HbStyle::Primitive HbWidget::focusHighlight( - HbWidget::FocusHighlight ) - { - // SMC_MOCK_METHOD1( HbStyle::Primitive, HbWidget::FocusHighlight, focusHighlight ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::setBackgroundItem -// ----------------------------------------------------------------------------- -// -void HbWidget::setBackgroundItem( - HbStyle::Primitive , - int ) - { - // SMC_MOCK_METHOD2( void, HbStyle::Primitive, type, - // int, zValue ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::setBackgroundItem -// ----------------------------------------------------------------------------- -// -void HbWidget::setBackgroundItem( - QGraphicsItem * , - int ) - { - // SMC_MOCK_METHOD2( void, QGraphicsItem *, item, - // int, zValue ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::backgroundItem -// ----------------------------------------------------------------------------- -// -QGraphicsItem * HbWidget::backgroundItem( ) const - { - // SMC_MOCK_METHOD0( QGraphicsItem * ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::overrideFeedback -// ----------------------------------------------------------------------------- -// -HbFeedback::InstantEffect HbWidget::overrideFeedback( - Hb::InstantInteraction ) const - { - // SMC_MOCK_METHOD1( HbFeedback::InstantEffect, Hb::InstantInteraction, interaction ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::overrideContinuousFeedback -// ----------------------------------------------------------------------------- -// -HbFeedback::ContinuousEffect HbWidget::overrideContinuousFeedback( - Hb::ContinuousInteraction , - int * ) const - { - // SMC_MOCK_METHOD2( HbFeedback::ContinuousEffect, Hb::ContinuousInteraction, interaction, - // int *, intensity ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::recreatePrimitives -// ----------------------------------------------------------------------------- -// -void HbWidget::recreatePrimitives( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::updatePrimitives -// ----------------------------------------------------------------------------- -// -void HbWidget::updatePrimitives( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::focusInEvent -// ----------------------------------------------------------------------------- -// -void HbWidget::focusInEvent( - QFocusEvent * ) - { - // SMC_MOCK_METHOD1( void, QFocusEvent *, event ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::focusOutEvent -// ----------------------------------------------------------------------------- -// -void HbWidget::focusOutEvent( - QFocusEvent * ) - { - // SMC_MOCK_METHOD1( void, QFocusEvent *, event ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::resizeEvent -// ----------------------------------------------------------------------------- -// -void HbWidget::resizeEvent( - QGraphicsSceneResizeEvent * ) - { - // SMC_MOCK_METHOD1( void, QGraphicsSceneResizeEvent *, event ) - } - -// ----------------------------------------------------------------------------- -// HbWidget::changeEvent -// ----------------------------------------------------------------------------- -// -void HbWidget::changeEvent( - QEvent * event ) - { - SMC_MOCK_METHOD1( void, QEvent *, event ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::itemChange -// ----------------------------------------------------------------------------- -// -QVariant HbWidget::itemChange( - GraphicsItemChange , - const QVariant & ) - { - // SMC_MOCK_METHOD2( QVariant, GraphicsItemChange, change, - // const QVariant &, value ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::polishEvent -// ----------------------------------------------------------------------------- -// -void HbWidget::polishEvent( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::polish -// ----------------------------------------------------------------------------- -// -void HbWidget::polish( - HbStyleParameters & ) - { - // SMC_MOCK_METHOD1( void, HbStyleParameters &, params ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::repolish -// ----------------------------------------------------------------------------- -// -void HbWidget::repolish( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::setPluginBaseId -// ----------------------------------------------------------------------------- -// -void HbWidget::setPluginBaseId( - int baseId ) - { - SMC_MOCK_METHOD1( void, int, baseId ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::gestureEvent -// ----------------------------------------------------------------------------- -// -void HbWidget::gestureEvent( - QGestureEvent * ) - { - // SMC_MOCK_METHOD1( void, QGestureEvent *, event ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::HbWidget -// ----------------------------------------------------------------------------- -// -HbWidget::HbWidget( - HbWidgetPrivate & , - QGraphicsItem * , - Qt::WindowFlags ) - //: - //HbWidgetBase( /*dd, parent, wFlags*/ ) - { - - } - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_infowidget.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_infowidget.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,431 +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 -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "infowidget.h" - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// InfoWidget::InfoWidget -// ----------------------------------------------------------------------------- -// -InfoWidget::InfoWidget( - QGraphicsItem * parent, - Qt::WindowFlags flags ) - : HbWidget(parent, flags) - { - - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::~InfoWidget -// ----------------------------------------------------------------------------- -// -InfoWidget::~InfoWidget( ) - { - - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::boundingRect -// ----------------------------------------------------------------------------- -// -QRectF InfoWidget::boundingRect( ) const - { - SMC_MOCK_METHOD0( QRectF ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::shape -// ----------------------------------------------------------------------------- -// -QPainterPath InfoWidget::shape( ) const - { - SMC_MOCK_METHOD0( QPainterPath ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::sizeHint -// ----------------------------------------------------------------------------- -// -QSizeF InfoWidget::sizeHint( - Qt::SizeHint which, - const QSizeF & constraint ) const - { - SMC_MOCK_METHOD2( QSizeF, Qt::SizeHint, which, - const QSizeF &, constraint ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::sizePolicy -// ----------------------------------------------------------------------------- -// -QSizePolicy InfoWidget::sizePolicy( ) const - { - SMC_MOCK_METHOD0( QSizePolicy ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::homeZoneDisplay -// ----------------------------------------------------------------------------- -// -QString InfoWidget::homeZoneDisplay() - { - SMC_MOCK_METHOD0( QString ); - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::setHomeZoneDisplay -// ----------------------------------------------------------------------------- -// -void InfoWidget::setHomeZoneDisplay( - QString value ) - { - SMC_MOCK_METHOD1( void, QString, value ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::mcnDisplay -// ----------------------------------------------------------------------------- -// -QString InfoWidget::mcnDisplay( ) - { - SMC_MOCK_METHOD0( QString ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::setMcnDisplay -// ----------------------------------------------------------------------------- -// -void InfoWidget::setMcnDisplay( - QString value ) - { - SMC_MOCK_METHOD1( void, QString, value ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::activeLineDisplay -// ----------------------------------------------------------------------------- -// -QString InfoWidget::activeLineDisplay( ) - { - SMC_MOCK_METHOD0( QString ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::setActiveLineDisplay -// ----------------------------------------------------------------------------- -// -void InfoWidget::setActiveLineDisplay( - QString value ) - { - SMC_MOCK_METHOD1( void, QString, value ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::satDisplay -// ----------------------------------------------------------------------------- -// -QString InfoWidget::satDisplay( ) - { - SMC_MOCK_METHOD0( QString ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::setSatDisplay -// ----------------------------------------------------------------------------- -// -void InfoWidget::setSatDisplay( - QString value ) - { - SMC_MOCK_METHOD1( void, QString, value ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::spnDisplay -// ----------------------------------------------------------------------------- -// -QString InfoWidget::spnDisplay( ) - { - SMC_MOCK_METHOD0( QString ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::setSpnDisplay -// ----------------------------------------------------------------------------- -// -void InfoWidget::setSpnDisplay( - QString value ) - { - SMC_MOCK_METHOD1( void, QString, value ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::onInitialize -// ----------------------------------------------------------------------------- -// -void InfoWidget::onInitialize( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::onUninitialize -// ----------------------------------------------------------------------------- -// -void InfoWidget::onUninitialize( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::onShow -// ----------------------------------------------------------------------------- -// -void InfoWidget::onShow( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::onHide -// ----------------------------------------------------------------------------- -// -void InfoWidget::onHide( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::readModel -// ----------------------------------------------------------------------------- -// -void InfoWidget::readModel( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::handleModelError -// ----------------------------------------------------------------------------- -// -void InfoWidget::handleModelError( - int operation, - int errorCode ) - { - SMC_MOCK_METHOD2( void, int, operation, - int, errorCode ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::spnDisplaySettingChanged -// ----------------------------------------------------------------------------- -// -void InfoWidget::spnDisplaySettingChanged( - int state ) - { - SMC_MOCK_METHOD1( void, int, state ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::mcnDisplaySettingChanged -// ----------------------------------------------------------------------------- -// -void InfoWidget::mcnDisplaySettingChanged( - int state ) - { - SMC_MOCK_METHOD1( void, int, state ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::satDisplaySettingChanged -// ----------------------------------------------------------------------------- -// -void InfoWidget::satDisplaySettingChanged( - int state ) - { - SMC_MOCK_METHOD1( void, int, state ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::settingsEditingFinished -// ----------------------------------------------------------------------------- -// -void InfoWidget::settingsEditingFinished( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::settingsValidationFailed -// ----------------------------------------------------------------------------- -// -void InfoWidget::settingsValidationFailed( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::paint -// ----------------------------------------------------------------------------- -// -void InfoWidget::paint( - QPainter * painter, - const QStyleOptionGraphicsItem * option, - QWidget * widget ) - { - SMC_MOCK_METHOD3( void, QPainter *, painter, - const QStyleOptionGraphicsItem *, option, - QWidget *, widget ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::mousePressEvent -// ----------------------------------------------------------------------------- -// -void InfoWidget::mousePressEvent( - QGraphicsSceneMouseEvent * event ) - { - SMC_MOCK_METHOD1( void, QGraphicsSceneMouseEvent *, event ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::mouseReleaseEvent -// ----------------------------------------------------------------------------- -// -void InfoWidget::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) - { - SMC_MOCK_METHOD1( void, QGraphicsSceneMouseEvent *, event ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::mouseMoveEvent -// ----------------------------------------------------------------------------- -// -void InfoWidget::mouseMoveEvent(QGraphicsSceneMouseEvent *event) - { - SMC_MOCK_METHOD1( void, QGraphicsSceneMouseEvent *, event ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::updateInfoDisplay -// ----------------------------------------------------------------------------- -// -void InfoWidget::updateInfoDisplay( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::readPersistentPreferences -// ----------------------------------------------------------------------------- -// -bool InfoWidget::readPersistentPreferences( ) - { - SMC_MOCK_METHOD0( bool ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::initializeCheckBoxStates -// ----------------------------------------------------------------------------- -// -void InfoWidget::initializeCheckBoxStates( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::changeEvent -// ----------------------------------------------------------------------------- -// -void InfoWidget::changeEvent( - QEvent * event ) - { - SMC_MOCK_METHOD1( void, QEvent *, event ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::installTranslator -// ----------------------------------------------------------------------------- -// -bool InfoWidget::installTranslator( - QString translationFile ) - { - SMC_MOCK_METHOD1( bool, QString, translationFile ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidget::removeTranslators -// ----------------------------------------------------------------------------- -// -void InfoWidget::removeTranslators( ) - { - SMC_MOCK_METHOD0( void ) - } - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_infowidgetengine.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_infowidgetengine.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,168 +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 -#include -#include "infowidgetnetworkhandler.h" -#include "infowidgetsathandler.h" -#include "infowidgetengine.h" - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// InfoWidgetEngine::InfoWidgetEngine -// ----------------------------------------------------------------------------- -// -InfoWidgetEngine::InfoWidgetEngine( - QObject * parent ) - :QObject( parent ) - { - - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetEngine::~InfoWidgetEngine -// ----------------------------------------------------------------------------- -// -InfoWidgetEngine::~InfoWidgetEngine( ) - { - - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetEngine::modelData -// ----------------------------------------------------------------------------- -// -const InfoWidgetEngine::ModelData & InfoWidgetEngine::modelData( ) const - { - SMC_MOCK_METHOD0( const InfoWidgetEngine::ModelData & ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetEngine::logModelData -// ----------------------------------------------------------------------------- -// -void InfoWidgetEngine::logModelData( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetEngine::updateNetworkDataToModel -// ----------------------------------------------------------------------------- -// -void InfoWidgetEngine::updateNetworkDataToModel( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetEngine::updateSatDataToModel -// ----------------------------------------------------------------------------- -// -void InfoWidgetEngine::updateSatDataToModel( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetEngine::updateLineDataToModel -// ----------------------------------------------------------------------------- -// -void InfoWidgetEngine::updateLineDataToModel( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetEngine::handleNetworkError -// ----------------------------------------------------------------------------- -// -void InfoWidgetEngine::handleNetworkError( - int operation, - int errorCode ) - { - SMC_MOCK_METHOD2( void, int, operation, - int, errorCode ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetEngine::handleSatError -// ----------------------------------------------------------------------------- -// -void InfoWidgetEngine::handleSatError( - int operation, - int errorCode ) - { - SMC_MOCK_METHOD2( void, int, operation, - int, errorCode ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetEngine::handleLineError -// ----------------------------------------------------------------------------- -// -void InfoWidgetEngine::handleLineError( - int operation, - int errorCode ) - { - SMC_MOCK_METHOD2( void, int, operation, - int, errorCode ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetEngine::suspend -// ----------------------------------------------------------------------------- -// -void InfoWidgetEngine::suspend( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetEngine::resume -// ----------------------------------------------------------------------------- -// -void InfoWidgetEngine::resume( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetEngine::preferenceChanged -// ----------------------------------------------------------------------------- -// -void InfoWidgetEngine::preferenceChanged( - int option, - int displaySetting ) - { - SMC_MOCK_METHOD2( void, int, option, - int, displaySetting ) - } - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_infowidgetlayoutmanager.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_infowidgetlayoutmanager.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,269 +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 -#include -#include -#include "infowidgetlayoutmanager.h" - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::InfoWidgetLayoutManager -// ----------------------------------------------------------------------------- -// -InfoWidgetLayoutManager::InfoWidgetLayoutManager( - QObject * parent ) - :QObject( parent ) - { - - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::~InfoWidgetLayoutManager -// ----------------------------------------------------------------------------- -// -InfoWidgetLayoutManager::~InfoWidgetLayoutManager( ) - { - - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::destroyObjects -// ----------------------------------------------------------------------------- -// -void InfoWidgetLayoutManager::destroyObjects( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::currentDisplayRole -// ----------------------------------------------------------------------------- -// -InfoWidgetLayoutManager::DisplayRole InfoWidgetLayoutManager::currentDisplayRole( ) - { - SMC_MOCK_METHOD0( DisplayRole ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::currentWidgetRoles -// ----------------------------------------------------------------------------- -// -QList - InfoWidgetLayoutManager::currentWidgetRoles( ) - { - SMC_MOCK_METHOD0( QList ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::layoutRows -// ----------------------------------------------------------------------------- -// -int InfoWidgetLayoutManager::layoutRows( ) const - { - SMC_MOCK_METHOD0( int ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::setLayoutRows -// ----------------------------------------------------------------------------- -// -void InfoWidgetLayoutManager::setLayoutRows( - int rows ) - { - SMC_MOCK_METHOD1( void, int, rows ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::rowHeight -// ----------------------------------------------------------------------------- -// -qreal InfoWidgetLayoutManager::rowHeight( ) const - { - SMC_MOCK_METHOD0( qreal ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::layoutInfoDisplay -// ----------------------------------------------------------------------------- -// -QGraphicsLayout * InfoWidgetLayoutManager::layoutInfoDisplay( ) - { - SMC_MOCK_METHOD0( QGraphicsLayout * ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::layoutSettingsDisplay -// ----------------------------------------------------------------------------- -// -QGraphicsLayout * InfoWidgetLayoutManager::layoutSettingsDisplay( ) - { - SMC_MOCK_METHOD0( QGraphicsLayout * ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::widgetRoles -// ----------------------------------------------------------------------------- -// -const QList - InfoWidgetLayoutManager::widgetRoles(DisplayRole displayRole ) const - { - SMC_MOCK_METHOD1( - const QList , - DisplayRole, displayRole ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::loadWidgets -// ----------------------------------------------------------------------------- -// -bool InfoWidgetLayoutManager::loadWidgets( - const DisplayRole displayRole, - const QList &displayWidgets, - QMap &widgetMap) - { - typedef QMap & TYPE3; - SMC_MOCK_METHOD3( bool, const DisplayRole, displayRole, - const QList &, displayWidgets, - TYPE3, widgetMap ) - } - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::reloadWidgets -// ----------------------------------------------------------------------------- -// -bool InfoWidgetLayoutManager::reloadWidgets( - const DisplayRole displayRole ) - { - SMC_MOCK_METHOD1( bool, const DisplayRole, displayRole ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::loadWidget -// ----------------------------------------------------------------------------- -// -QGraphicsWidget* InfoWidgetLayoutManager::loadWidget( - InfoWidgetDocumentLoader &loader, - DisplayRole displayRole, - LayoutItemRole widgetRole) - { - SMC_MOCK_METHOD3( QGraphicsWidget *, InfoWidgetDocumentLoader &, loader, - DisplayRole, displayRole, - LayoutItemRole, widgetRole ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::getWidget -// ----------------------------------------------------------------------------- -// -QGraphicsWidget * InfoWidgetLayoutManager::getWidget( - LayoutItemRole itemRole ) - { - SMC_MOCK_METHOD1( QGraphicsWidget *, LayoutItemRole, itemRole ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::contentWidget -// ----------------------------------------------------------------------------- -// -QGraphicsWidget * InfoWidgetLayoutManager::contentWidget( ) - { - SMC_MOCK_METHOD0( QGraphicsWidget * ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::removeWidget -// ----------------------------------------------------------------------------- -// -void InfoWidgetLayoutManager::removeWidget( - LayoutItemRole itemRole ) - { - SMC_MOCK_METHOD1( void, LayoutItemRole, itemRole ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::hideWidget -// ----------------------------------------------------------------------------- -// -void InfoWidgetLayoutManager::hideWidget( - LayoutItemRole itemRole ) - { - SMC_MOCK_METHOD1( void, LayoutItemRole, itemRole ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::hideAll -// ----------------------------------------------------------------------------- -// -void InfoWidgetLayoutManager::hideAll( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::showAll -// ----------------------------------------------------------------------------- -// -void InfoWidgetLayoutManager::showAll( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetDocumentLoader::InfoWidgetDocumentLoader -// ----------------------------------------------------------------------------- -// -InfoWidgetDocumentLoader::InfoWidgetDocumentLoader( ) - //: - //HbDocumentLoader( /**/ ) - { - - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetDocumentLoader::createObject -// ----------------------------------------------------------------------------- -// -QObject * InfoWidgetDocumentLoader::createObject( - const QString & type, - const QString & name ) - { - SMC_MOCK_METHOD2( QObject *, const QString &, type, - const QString &, name ) - } - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_infowidgetnetworkhandler.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_infowidgetnetworkhandler.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,224 +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 -#include -#include -#include -#include "infowidgetnetworkhandler.h" - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// InfoWidgetNetworkHandler::InfoWidgetNetworkHandler -// ----------------------------------------------------------------------------- -// -InfoWidgetNetworkHandler::InfoWidgetNetworkHandler( - QObject * parent ) - : - QObject(parent), - m_nwSession(0) - { - - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetNetworkHandler::~InfoWidgetNetworkHandler -// ----------------------------------------------------------------------------- -// -InfoWidgetNetworkHandler::~InfoWidgetNetworkHandler( ) - { - - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetNetworkHandler::serviceProviderName -// ----------------------------------------------------------------------------- -// -QString InfoWidgetNetworkHandler::serviceProviderName( ) const - { - SMC_MOCK_METHOD0( QString ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetNetworkHandler::serviceProviderNameDisplayRequired -// ----------------------------------------------------------------------------- -// -bool InfoWidgetNetworkHandler::serviceProviderNameDisplayRequired( ) const - { - SMC_MOCK_METHOD0( bool ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetNetworkHandler::homeZoneTextTag -// ----------------------------------------------------------------------------- -// -QString InfoWidgetNetworkHandler::homeZoneTextTag( ) const - { - SMC_MOCK_METHOD0( QString ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetNetworkHandler::homeZoneIndicatorType -// ----------------------------------------------------------------------------- -// -int InfoWidgetNetworkHandler::homeZoneIndicatorType( ) const - { - SMC_MOCK_METHOD0( int ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetNetworkHandler::mcnName -// ----------------------------------------------------------------------------- -// -QString InfoWidgetNetworkHandler::mcnName( ) const - { - SMC_MOCK_METHOD0( QString ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetNetworkHandler::mcnIndicatorType -// ----------------------------------------------------------------------------- -// -int InfoWidgetNetworkHandler::mcnIndicatorType( ) const - { - SMC_MOCK_METHOD0( int ) - } - -// ----------------------------------------------------------------------------- -// InfoWidgetNetworkHandler::networkRegistrationStatus -// ----------------------------------------------------------------------------- -// -int InfoWidgetNetworkHandler::networkRegistrationStatus( ) const - { - SMC_MOCK_METHOD0( int ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetNetworkHandler::isOnline -// ----------------------------------------------------------------------------- -// -bool InfoWidgetNetworkHandler::isOnline( ) const - { - SMC_MOCK_METHOD0( bool ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetNetworkHandler::logCurrentInfo -// ----------------------------------------------------------------------------- -// -void InfoWidgetNetworkHandler::logCurrentInfo( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetNetworkHandler::HandleNetworkMessage -// ----------------------------------------------------------------------------- -// -void InfoWidgetNetworkHandler::HandleNetworkMessage( - const TNWMessages aMessage ) - { - SMC_MOCK_METHOD1( void, const TNWMessages, aMessage ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetNetworkHandler::HandleNetworkError -// ----------------------------------------------------------------------------- -// -void InfoWidgetNetworkHandler::HandleNetworkError( - const TNWOperation aOperation, - TInt aErrorCode ) - { - SMC_MOCK_METHOD2( void, const TNWOperation, aOperation, - TInt, aErrorCode ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetNetworkHandler::suspend -// ----------------------------------------------------------------------------- -// -void InfoWidgetNetworkHandler::suspend( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetNetworkHandler::resume -// ----------------------------------------------------------------------------- -// -void InfoWidgetNetworkHandler::resume( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetNetworkHandler::enableMcn -// ----------------------------------------------------------------------------- -// -void InfoWidgetNetworkHandler::enableMcn( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetNetworkHandler::disableMcn -// ----------------------------------------------------------------------------- -// -void InfoWidgetNetworkHandler::disableMcn( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetNetworkHandler::writeMcnDisplayState -// ----------------------------------------------------------------------------- -// -void InfoWidgetNetworkHandler::writeMcnDisplayState( - bool enabled ) - { - SMC_MOCK_METHOD1( void, bool, enabled ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetNetworkHandler::readMcnDisplayState -// ----------------------------------------------------------------------------- -// -bool InfoWidgetNetworkHandler::readMcnDisplayState( ) - { - SMC_MOCK_METHOD0( bool ) - } - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_infowidgetpreferences.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_infowidgetpreferences.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,138 +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 -#include -#include "infowidgetpreferences.h" - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// InfoWidgetPreferences::InfoWidgetPreferences -// ----------------------------------------------------------------------------- -// -InfoWidgetPreferences::InfoWidgetPreferences( - QObject * parent ): - QObject( parent ) - { - - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetPreferences::~InfoWidgetPreferences -// ----------------------------------------------------------------------------- -// -InfoWidgetPreferences::~InfoWidgetPreferences( ) - { - - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetPreferences::loadPreferences -// ----------------------------------------------------------------------------- -// -void InfoWidgetPreferences::restorePreferences( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetPreferences::storePreferences -// ----------------------------------------------------------------------------- -// -bool InfoWidgetPreferences::storePreferences( ) - { - SMC_MOCK_METHOD0( bool ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetPreferences::preference -// ----------------------------------------------------------------------------- -// -QString InfoWidgetPreferences::preference( - Option preferenceId ) const - { - SMC_MOCK_METHOD1( QString, Option, preferenceId ) - } - -// ----------------------------------------------------------------------------- -// InfoWidgetPreferences::preferences -// ----------------------------------------------------------------------------- -// -InfoWidgetPreferences::Options InfoWidgetPreferences::preferences() const - { - SMC_MOCK_METHOD0( InfoWidgetPreferences::Options ) - } - -// ----------------------------------------------------------------------------- -// InfoWidgetPreferences::setPreference -// ----------------------------------------------------------------------------- -// -void InfoWidgetPreferences::setPreference( - Option preferenceId, - const QString & preferenceString ) - { - SMC_MOCK_METHOD2( void, Option, preferenceId, - const QString &, preferenceString ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetPreferences::isPreferenceSet -// ----------------------------------------------------------------------------- -// -bool InfoWidgetPreferences::isPreferenceSet( Option preferenceId ) const - { - SMC_MOCK_METHOD1( bool, Option, preferenceId) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetPreferences::validate -// ----------------------------------------------------------------------------- -// -bool InfoWidgetPreferences::validate( ) - { - SMC_MOCK_METHOD0( bool) - } - - - -// ----------------------------------------------------------------------------- -// InfoWidgetPreferences::visibleItemCount -// ----------------------------------------------------------------------------- -// -int InfoWidgetPreferences::visibleItemCount( ) - { - SMC_MOCK_METHOD0( int ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetPreferences::preferenceNames -// ----------------------------------------------------------------------------- -// -QStringList InfoWidgetPreferences::preferenceNames() - { - SMC_MOCK_METHOD0( QStringList ) - } - - - \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_infowidgetsathandler.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_infowidgetsathandler.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,109 +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 -#include -#include "infowidgetsathandler.h" - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// InfoWidgetSatHandler::InfoWidgetSatHandler -// ----------------------------------------------------------------------------- -// -InfoWidgetSatHandler::InfoWidgetSatHandler( - QObject * parent ) - { - Q_UNUSED(parent); - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetSatHandler::~InfoWidgetSatHandler -// ----------------------------------------------------------------------------- -// -InfoWidgetSatHandler::~InfoWidgetSatHandler( ) - { - - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetSatHandler::connect -// ----------------------------------------------------------------------------- -// -void InfoWidgetSatHandler::connect( - bool connect ) - { - SMC_MOCK_METHOD1( void, bool, connect ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetSatHandler::satDisplayText -// ----------------------------------------------------------------------------- -// -const QString & InfoWidgetSatHandler::satDisplayText( ) const - { - SMC_MOCK_METHOD0( const QString & ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetSatHandler::setSatDisplayText -// ----------------------------------------------------------------------------- -// -void InfoWidgetSatHandler::setSatDisplayText( - const QString & displayText ) - { - SMC_MOCK_METHOD1( void, const QString &, displayText ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetSatHandler::logCurrentInfo -// ----------------------------------------------------------------------------- -// -void InfoWidgetSatHandler::logCurrentInfo( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetSatHandler::handleIdleModeTxtMessage -// ----------------------------------------------------------------------------- -// -void InfoWidgetSatHandler::handleIdleModeTxtMessage( - int idleResult ) - { - SMC_MOCK_METHOD1( void, int, idleResult ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetSatHandler::handleSatError -// ----------------------------------------------------------------------------- -// -void InfoWidgetSatHandler::handleSatError( - int operation, - int errorCode ) - { - SMC_MOCK_METHOD2( void, int, operation, - int, errorCode ) - } - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_infowidgetsathandlerprivate.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_infowidgetsathandlerprivate.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,95 +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 -#include -#include "infowidgetsathandlerprivate.h" - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// InfoWidgetSatHandlerPrivate::InfoWidgetSatHandlerPrivate -// ----------------------------------------------------------------------------- -// -InfoWidgetSatHandlerPrivate::InfoWidgetSatHandlerPrivate( - InfoWidgetSatHandler * iwSatHandler, - RSatService & iSatService ) - :CActive( 0 ), - m_satService(iSatService) - - { - Q_UNUSED(iwSatHandler) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetSatHandlerPrivate::~InfoWidgetSatHandlerPrivate -// ----------------------------------------------------------------------------- -// -InfoWidgetSatHandlerPrivate::~InfoWidgetSatHandlerPrivate( ) - { - - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetSatHandlerPrivate::startObserving -// ----------------------------------------------------------------------------- -// -void InfoWidgetSatHandlerPrivate::startObserving( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetSatHandlerPrivate::connect -// ----------------------------------------------------------------------------- -// -int InfoWidgetSatHandlerPrivate::connect( ) - { - SMC_MOCK_METHOD0( int ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetSatHandlerPrivate::disconnect -// ----------------------------------------------------------------------------- -// -int InfoWidgetSatHandlerPrivate::disconnect( ) - { - SMC_MOCK_METHOD0( int ) - } - -// ----------------------------------------------------------------------------- -// InfoWidgetSatHandlerPrivate::DoCancel -// ----------------------------------------------------------------------------- -// -void InfoWidgetSatHandlerPrivate::DoCancel( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetSatHandlerPrivate::RunL -// ----------------------------------------------------------------------------- -// -void InfoWidgetSatHandlerPrivate::RunL( ) - { - SMC_MOCK_METHOD0( void ) - } - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_networkhandlingproxy.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_networkhandlingproxy.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /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: This file contains the header file of the class NetworkHandlingProxy. -* -*/ - -#include -#include -#include - -// ============================ MEMBER FUNCTIONS =============================== - -CNWSession* CreateL( MNWMessageObserver& aMessage, TNWInfo& aTNWInfo ) - { - SMC_MOCK_METHOD2(CNWSession*, - MNWMessageObserver&, aMessage, - TNWInfo&, aTNWInfo); - } diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_qgraphicslayout.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_qgraphicslayout.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,187 +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 -#include -#include "qgraphicslayout.h" - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// QGraphicsLayout::QGraphicsLayout -// ----------------------------------------------------------------------------- -// -QGraphicsLayout::QGraphicsLayout( - QGraphicsLayoutItem * parent ) - //: - //QGraphicsLayoutItem( /*parent*/ ) - { - - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLayout::~QGraphicsLayout -// ----------------------------------------------------------------------------- -// -QGraphicsLayout::~QGraphicsLayout( ) - { - - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLayout::setContentsMargins -// ----------------------------------------------------------------------------- -// -void QGraphicsLayout::setContentsMargins( - qreal left, - qreal top, - qreal right, - qreal bottom ) - { - SMC_MOCK_METHOD4( void, qreal, left, - qreal, top, - qreal, right, - qreal, bottom ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLayout::getContentsMargins -// ----------------------------------------------------------------------------- -// -void QGraphicsLayout::getContentsMargins( - qreal * left, - qreal * top, - qreal * right, - qreal * bottom ) const - { - SMC_MOCK_METHOD4( void, qreal *, left, - qreal *, top, - qreal *, right, - qreal *, bottom ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLayout::activate -// ----------------------------------------------------------------------------- -// -void QGraphicsLayout::activate( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLayout::isActivated -// ----------------------------------------------------------------------------- -// -bool QGraphicsLayout::isActivated( ) const - { - SMC_MOCK_METHOD0( bool ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLayout::invalidate -// ----------------------------------------------------------------------------- -// -void QGraphicsLayout::invalidate( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLayout::updateGeometry -// ----------------------------------------------------------------------------- -// -void QGraphicsLayout::updateGeometry( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLayout::widgetEvent -// ----------------------------------------------------------------------------- -// -void QGraphicsLayout::widgetEvent( - QEvent * e ) - { - SMC_MOCK_METHOD1( void, QEvent *, e ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLayout::count -// ----------------------------------------------------------------------------- -// -int QGraphicsLayout::count( ) const - { - SMC_MOCK_METHOD0( int ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLayout::itemAt -// ----------------------------------------------------------------------------- -// -QGraphicsLayoutItem * QGraphicsLayout::itemAt( - int i ) const - { - SMC_MOCK_METHOD1( QGraphicsLayoutItem *, int, i ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLayout::removeAt -// ----------------------------------------------------------------------------- -// -void QGraphicsLayout::removeAt( - int index ) - { - SMC_MOCK_METHOD1( void, int, index ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLayout::QGraphicsLayout -// ----------------------------------------------------------------------------- -// -QGraphicsLayout::QGraphicsLayout( - QGraphicsLayoutPrivate &, - QGraphicsLayoutItem * ) - //: - //QGraphicsLayoutItem( /*&, **/ ) - { - - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLayout::addChildLayoutItem -// ----------------------------------------------------------------------------- -// -void QGraphicsLayout::addChildLayoutItem( - QGraphicsLayoutItem * layoutItem ) - { - SMC_MOCK_METHOD1( void, QGraphicsLayoutItem *, layoutItem ) - } - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_qgraphicslinearlayout.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_qgraphicslinearlayout.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,289 +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 -#include -#include "qgraphicslinearlayout.h" - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// QGraphicsLinearLayout::QGraphicsLinearLayout -// ----------------------------------------------------------------------------- -// -QGraphicsLinearLayout::QGraphicsLinearLayout( - QGraphicsLayoutItem * parent ) - //: - //QGraphicsLayout( /*parent*/ ) - { - - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLinearLayout::QGraphicsLinearLayout -// ----------------------------------------------------------------------------- -// -QGraphicsLinearLayout::QGraphicsLinearLayout( - Qt::Orientation orientation, - QGraphicsLayoutItem * parent ) - //: - //QGraphicsLayout( /*orientation, parent*/ ) - { - - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLinearLayout::~QGraphicsLinearLayout -// ----------------------------------------------------------------------------- -// -QGraphicsLinearLayout::~QGraphicsLinearLayout( ) - { - - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLinearLayout::setOrientation -// ----------------------------------------------------------------------------- -// -void QGraphicsLinearLayout::setOrientation( - Qt::Orientation orientation ) - { - SMC_MOCK_METHOD1( void, Qt::Orientation, orientation ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLinearLayout::orientation -// ----------------------------------------------------------------------------- -// -Qt::Orientation QGraphicsLinearLayout::orientation( ) const - { - SMC_MOCK_METHOD0( Qt::Orientation ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLinearLayout::insertItem -// ----------------------------------------------------------------------------- -// -void QGraphicsLinearLayout::insertItem( - int index, - QGraphicsLayoutItem * item ) - { - SMC_MOCK_METHOD2( void, int, index, - QGraphicsLayoutItem *, item ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLinearLayout::insertStretch -// ----------------------------------------------------------------------------- -// -void QGraphicsLinearLayout::insertStretch( - int index, - int stretch ) - { - SMC_MOCK_METHOD2( void, int, index, - int, stretch ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLinearLayout::removeItem -// ----------------------------------------------------------------------------- -// -void QGraphicsLinearLayout::removeItem( - QGraphicsLayoutItem * item ) - { - SMC_MOCK_METHOD1( void, QGraphicsLayoutItem *, item ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLinearLayout::removeAt -// ----------------------------------------------------------------------------- -// -void QGraphicsLinearLayout::removeAt( - int index ) - { - SMC_MOCK_METHOD1( void, int, index ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLinearLayout::setSpacing -// ----------------------------------------------------------------------------- -// -void QGraphicsLinearLayout::setSpacing( - qreal spacing ) - { - SMC_MOCK_METHOD1( void, qreal, spacing ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLinearLayout::spacing -// ----------------------------------------------------------------------------- -// -qreal QGraphicsLinearLayout::spacing( ) const - { - SMC_MOCK_METHOD0( qreal ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLinearLayout::setItemSpacing -// ----------------------------------------------------------------------------- -// -void QGraphicsLinearLayout::setItemSpacing( - int index, - qreal spacing ) - { - SMC_MOCK_METHOD2( void, int, index, - qreal, spacing ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLinearLayout::itemSpacing -// ----------------------------------------------------------------------------- -// -qreal QGraphicsLinearLayout::itemSpacing( - int index ) const - { - SMC_MOCK_METHOD1( qreal, int, index ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLinearLayout::setStretchFactor -// ----------------------------------------------------------------------------- -// -void QGraphicsLinearLayout::setStretchFactor( - QGraphicsLayoutItem * item, - int stretch ) - { - SMC_MOCK_METHOD2( void, QGraphicsLayoutItem *, item, - int, stretch ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLinearLayout::stretchFactor -// ----------------------------------------------------------------------------- -// -int QGraphicsLinearLayout::stretchFactor( - QGraphicsLayoutItem * item ) const - { - SMC_MOCK_METHOD1( int, QGraphicsLayoutItem *, item ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLinearLayout::setAlignment -// ----------------------------------------------------------------------------- -// -void QGraphicsLinearLayout::setAlignment( - QGraphicsLayoutItem * item, - Qt::Alignment alignment ) - { -// SMC_MOCK_METHOD2( void, QGraphicsLayoutItem *, item, -// Qt::Alignment, alignment ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLinearLayout::alignment -// ----------------------------------------------------------------------------- -// -Qt::Alignment QGraphicsLinearLayout::alignment( - QGraphicsLayoutItem * item ) const - { - //SMC_MOCK_METHOD1( Qt::Alignment, QGraphicsLayoutItem *, item ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLinearLayout::setGeometry -// ----------------------------------------------------------------------------- -// -void QGraphicsLinearLayout::setGeometry( - const QRectF & rect ) - { - SMC_MOCK_METHOD1( void, const QRectF &, rect ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLinearLayout::count -// ----------------------------------------------------------------------------- -// -int QGraphicsLinearLayout::count( ) const - { - SMC_MOCK_METHOD0( int ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLinearLayout::itemAt -// ----------------------------------------------------------------------------- -// -QGraphicsLayoutItem * QGraphicsLinearLayout::itemAt( - int index ) const - { - SMC_MOCK_METHOD1( QGraphicsLayoutItem *, int, index ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLinearLayout::invalidate -// ----------------------------------------------------------------------------- -// -void QGraphicsLinearLayout::invalidate( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLinearLayout::sizeHint -// ----------------------------------------------------------------------------- -// -QSizeF QGraphicsLinearLayout::sizeHint( - Qt::SizeHint which, - const QSizeF & constraint ) const - { - SMC_MOCK_METHOD2( QSizeF, Qt::SizeHint, which, - const QSizeF &, constraint ) - } - - -// ----------------------------------------------------------------------------- -// QGraphicsLinearLayout::dump -// ----------------------------------------------------------------------------- -// -void QGraphicsLinearLayout::dump( - int indent ) const - { - SMC_MOCK_METHOD1( void, int, indent ) - } - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_qserviceinterfacedescriptor.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_qserviceinterfacedescriptor.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,168 +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 -#include -#include -#include "qserviceinterfacedescriptor.h" - -QTM_BEGIN_NAMESPACE - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// QServiceInterfaceDescriptor::QServiceInterfaceDescriptor -// ----------------------------------------------------------------------------- -// -QServiceInterfaceDescriptor::QServiceInterfaceDescriptor( ) - { - - } - - -// ----------------------------------------------------------------------------- -// QServiceInterfaceDescriptor::QServiceInterfaceDescriptor -// ----------------------------------------------------------------------------- -// -QServiceInterfaceDescriptor::QServiceInterfaceDescriptor( - const QServiceInterfaceDescriptor & other ) - { - - } - - -// ----------------------------------------------------------------------------- -// QServiceInterfaceDescriptor::~QServiceInterfaceDescriptor -// ----------------------------------------------------------------------------- -// -QServiceInterfaceDescriptor::~QServiceInterfaceDescriptor( ) - { - - } - - -// ----------------------------------------------------------------------------- -// QServiceInterfaceDescriptor::= -// ----------------------------------------------------------------------------- -// -QServiceInterfaceDescriptor & QServiceInterfaceDescriptor::operator=(const QServiceInterfaceDescriptor & other ) - { - SMC_MOCK_METHOD1( QServiceInterfaceDescriptor &, const QServiceInterfaceDescriptor &, other ) - } - - -// ----------------------------------------------------------------------------- -// QServiceInterfaceDescriptor::= -// ----------------------------------------------------------------------------- -// -bool QServiceInterfaceDescriptor::operator==(const QServiceInterfaceDescriptor& other) const - { - SMC_MOCK_METHOD1( bool, const QServiceInterfaceDescriptor &, other ) - } - - -// ----------------------------------------------------------------------------- -// QServiceInterfaceDescriptor::serviceName -// ----------------------------------------------------------------------------- -// -QString QServiceInterfaceDescriptor::serviceName( ) const - { - SMC_MOCK_METHOD0( QString ) - } - - -// ----------------------------------------------------------------------------- -// QServiceInterfaceDescriptor::interfaceName -// ----------------------------------------------------------------------------- -// -QString QServiceInterfaceDescriptor::interfaceName( ) const - { - SMC_MOCK_METHOD0( QString ) - } - - -// ----------------------------------------------------------------------------- -// QServiceInterfaceDescriptor::majorVersion -// ----------------------------------------------------------------------------- -// -int QServiceInterfaceDescriptor::majorVersion( ) const - { - SMC_MOCK_METHOD0( int ) - } - - -// ----------------------------------------------------------------------------- -// QServiceInterfaceDescriptor::minorVersion -// ----------------------------------------------------------------------------- -// -int QServiceInterfaceDescriptor::minorVersion( ) const - { - SMC_MOCK_METHOD0( int ) - } - - -// ----------------------------------------------------------------------------- -// QServiceInterfaceDescriptor::isValid -// ----------------------------------------------------------------------------- -// -bool QServiceInterfaceDescriptor::isValid( ) const - { - SMC_MOCK_METHOD0( bool ) - } - - -// ----------------------------------------------------------------------------- -// QServiceInterfaceDescriptor::scope -// ----------------------------------------------------------------------------- -// -QService::Scope QServiceInterfaceDescriptor::scope( ) const - { - SMC_MOCK_METHOD0( QService::Scope ) - } - - -// ----------------------------------------------------------------------------- -// QServiceInterfaceDescriptor::attribute -// ----------------------------------------------------------------------------- -// -QVariant QServiceInterfaceDescriptor::attribute( - QServiceInterfaceDescriptor::Attribute which ) const - { - SMC_MOCK_METHOD1( QVariant, QServiceInterfaceDescriptor::Attribute, which ) - } - - -// ----------------------------------------------------------------------------- -// QServiceInterfaceDescriptor::customAttribute -// ----------------------------------------------------------------------------- -// -QString QServiceInterfaceDescriptor::customAttribute( - const QString & which ) const - { - SMC_MOCK_METHOD1( QString, const QString &, which ) - } - - -// ----------------------------------------------------------------------------- -// QServiceInterfaceDescriptor::customAttributes -// ----------------------------------------------------------------------------- -// -QStringList QServiceInterfaceDescriptor::customAttributes( ) const - { - SMC_MOCK_METHOD0( QStringList ) - } - -QTM_END_NAMESPACE diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_qserviceplugininterface.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_qserviceplugininterface.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,65 +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 -#include -#include - - -QTM_BEGIN_NAMESPACE - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// QServicePluginInterface::QServicePluginInterface -// ----------------------------------------------------------------------------- -// -QServicePluginInterface::QServicePluginInterface( ) - { - - } - - -// ----------------------------------------------------------------------------- -// QServicePluginInterface::~QServicePluginInterface -// ----------------------------------------------------------------------------- -// -QServicePluginInterface::~QServicePluginInterface( ) - { - - } - - -// ----------------------------------------------------------------------------- -// QServicePluginInterface::installService -// ----------------------------------------------------------------------------- -// -void QServicePluginInterface::installService( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// QServicePluginInterface::uninstallService -// ----------------------------------------------------------------------------- -// -void QServicePluginInterface::uninstallService( ) - { - SMC_MOCK_METHOD0( void ) - } - -QTM_END_NAMESPACE \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_rsatservice.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_rsatservice.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,137 +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 -#include -#include "rsatservice.h" - -class TSatIconInfo{ - -}; - -class RSatSession{ - -}; - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// RSatService::RSatService -// ----------------------------------------------------------------------------- -// -RSatService::RSatService( ) - //: - //RSubSessionBase( /**/ ) - { - - } - - -// ----------------------------------------------------------------------------- -// RSatService::OpenL -// ----------------------------------------------------------------------------- -// -void RSatService::OpenL( - const RSatSession & aSession ) - { - SMC_MOCK_METHOD1( void, const RSatSession &, aSession ) - } - - -// ----------------------------------------------------------------------------- -// RSatService::Close -// ----------------------------------------------------------------------------- -// -void RSatService::Close( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// RSatService::NotifySetupIdleModeTextChange -// ----------------------------------------------------------------------------- -// -TInt RSatService::NotifySetupIdleModeTextChange( - TRequestStatus & aStatus ) - { - SMC_MOCK_METHOD1( TInt, TRequestStatus &, aStatus ) - } - - -// ----------------------------------------------------------------------------- -// RSatService::NotifySetupIdleModeTextChangeCancel -// ----------------------------------------------------------------------------- -// -void RSatService::NotifySetupIdleModeTextChangeCancel( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// RSatService::GetSetupIdleModeTextL -// ----------------------------------------------------------------------------- -// -TBool RSatService::GetSetupIdleModeTextL( - HBufC * & aText, - TSatIconQualifier & aIconQualifier, - TUint8 & aRecordNumber ) - { - aText = HBufC::NewL(15); - SMC_MOCK_METHOD3( TBool, - HBufC* , aText, - TSatIconQualifier &, aIconQualifier, - TUint8 &, aRecordNumber ) - } - - -// ----------------------------------------------------------------------------- -// RSatService::GetIconInfoL -// ----------------------------------------------------------------------------- -// -void RSatService::GetIconInfoL( - TUint8 aRecordNumber, - RIconEf & aIconEf ) const - { - SMC_MOCK_METHOD2( void, TUint8, aRecordNumber, - RIconEf &, aIconEf ) - } - - -// ----------------------------------------------------------------------------- -// RSatService::GetIconL -// ----------------------------------------------------------------------------- -// -CFbsBitmap * RSatService::GetIconL( - const TSatIconInfo & aIconInfo ) const - { - SMC_MOCK_METHOD1( CFbsBitmap *, const TSatIconInfo &, aIconInfo ) - } - - -// ----------------------------------------------------------------------------- -// RSatService::SetIdleModeTextResponse -// ----------------------------------------------------------------------------- -// -void RSatService::SetIdleModeTextResponse( - const TSATIdleResult & aResult ) const - { - SMC_MOCK_METHOD1( void, const TSATIdleResult &, aResult ) - } - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_xqsettingskey.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_xqsettingskey.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,126 +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 -#include "xqsettingskey.h" - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// XQSettingsKey::XQSettingsKey -// ----------------------------------------------------------------------------- -// -XQSettingsKey::XQSettingsKey( - XQSettingsKey::Target target, - long int uid, - unsigned long int key ) - { - Q_UNUSED(target) - Q_UNUSED(uid) - Q_UNUSED(key) - } - - -// ----------------------------------------------------------------------------- -// XQSettingsKey::~XQSettingsKey -// ----------------------------------------------------------------------------- -// -XQSettingsKey::~XQSettingsKey( ) - { - - } - - -// ----------------------------------------------------------------------------- -// XQSettingsKey::target -// ----------------------------------------------------------------------------- -// -XQSettingsKey::Target XQSettingsKey::target( ) const - { - - XQSettingsKey::Target variable = (XQSettingsKey::Target)1; - return variable; - } - - -// ----------------------------------------------------------------------------- -// XQSettingsKey::uid -// ----------------------------------------------------------------------------- -// -long int XQSettingsKey::uid( ) const - { - - return 0; - } - - -// ----------------------------------------------------------------------------- -// XQSettingsKey::key -// ----------------------------------------------------------------------------- -// -unsigned long int XQSettingsKey::key( ) const - { - - return 0; - } - - -// ----------------------------------------------------------------------------- -// XQPublishAndSubscribeSettingsKey::XQPublishAndSubscribeSettingsKey -// ----------------------------------------------------------------------------- -// -XQPublishAndSubscribeSettingsKey::XQPublishAndSubscribeSettingsKey( - long int categoryUid, - unsigned long int key ) : - XQSettingsKey( XQSettingsKey::TargetPublishAndSubscribe, categoryUid, key ) - { - - } - - -// ----------------------------------------------------------------------------- -// XQPublishAndSubscribeSettingsKey::~XQPublishAndSubscribeSettingsKey -// ----------------------------------------------------------------------------- -// -XQPublishAndSubscribeSettingsKey::~XQPublishAndSubscribeSettingsKey( ) - { - - } - - -// ----------------------------------------------------------------------------- -// XQCentralRepositorySettingsKey::XQCentralRepositorySettingsKey -// ----------------------------------------------------------------------------- -// -XQCentralRepositorySettingsKey::XQCentralRepositorySettingsKey( - long int repositoryUid, - unsigned long int key ) : - XQSettingsKey( XQSettingsKey::TargetCentralRepository, repositoryUid, key ) - { - - } - - -// ----------------------------------------------------------------------------- -// XQCentralRepositorySettingsKey::~XQCentralRepositorySettingsKey -// ----------------------------------------------------------------------------- -// -XQCentralRepositorySettingsKey::~XQCentralRepositorySettingsKey( ) - { - - } - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_xqsettingsmanager.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_xqsettingsmanager.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,101 +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 -#include -#include "xqsettingsmanager.h" - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// XQSettingsManager::XQSettingsManager -// ----------------------------------------------------------------------------- -// -XQSettingsManager::XQSettingsManager( - QObject * parent ) - : QObject( parent ) - { - - } - -// ----------------------------------------------------------------------------- -// XQSettingsManager::~XQSettingsManager -// ----------------------------------------------------------------------------- -// -XQSettingsManager::~XQSettingsManager( ) - { - - } - - -// ----------------------------------------------------------------------------- -// XQSettingsManager::readItemValue -// ----------------------------------------------------------------------------- -// -QVariant XQSettingsManager::readItemValue( - const XQSettingsKey & key, - XQSettingsManager::Type type ) - { - SMC_MOCK_METHOD2( QVariant, XQSettingsKey &, key, XQSettingsManager::Type, type ) - } - - -// ----------------------------------------------------------------------------- -// XQSettingsManager::writeItemValue -// ----------------------------------------------------------------------------- -// -bool XQSettingsManager::writeItemValue( - const XQSettingsKey & key, - const QVariant & value ) - { - SMC_MOCK_METHOD2( bool, XQSettingsKey &, key, QVariant &, value ) - } - - -// ----------------------------------------------------------------------------- -// XQSettingsManager::startMonitoring -// ----------------------------------------------------------------------------- -// -bool XQSettingsManager::startMonitoring( - const XQSettingsKey & key, - XQSettingsManager::Type type ) - { - SMC_MOCK_METHOD2( bool, XQSettingsKey &, key, XQSettingsManager::Type, type ) - } - - -// ----------------------------------------------------------------------------- -// XQSettingsManager::stopMonitoring -// ----------------------------------------------------------------------------- -// -bool XQSettingsManager::stopMonitoring( - const XQSettingsKey & key ) - { - SMC_MOCK_METHOD1( bool, XQSettingsKey &, key ) - } - - -// ----------------------------------------------------------------------------- -// XQSettingsManager::error -// ----------------------------------------------------------------------------- -// -XQSettingsManager::Error XQSettingsManager::error( ) const - { - SMC_MOCK_METHOD0( XQSettingsManager::Error ) - } - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/run_auto_tests_qt.bat --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/run_auto_tests_qt.bat Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,194 +0,0 @@ -rem -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: -rem - -@echo off -setlocal -goto :startup - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function DEFAULT -:: -:: Modify this function -:: - TESTED_SRC can be changed to match tested code. -:: Specifies path from testcode group directory to -:: tested code -:: - Add test directories to be runned -:: ie. "call :build ut_projectdirectory" or use -:: "for /f %%a in ('dir /b ut_*') do call :build %%a" -:: which compiles, instruments and runs all test directories -:: starting with "ut_". -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:DEFAULT -set TESTED_SRC=..\..\infowidget\src\*.cpp - -for /f %%a in ('dir /b ut_*') do call :build %%a -if [%DOMODULESTESTS%] EQU [TRUE] ( -for /f %%a in ('dir /b mt_*') do call :build %%a -) - -call :finish -goto :END - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function STARTUP -:: -:: Initializing script -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:STARTUP - -set BUILDTESTS=TRUE -set RUNTESTS=TRUE -set INSTRUMENT=TRUE -set REMOVEINSTRUMENT=TRUE -set DOMODULESTESTS=TRUE -set ABLD_CALL= -2comp sbs.bat -c winscw_udeb --keepgoing -set PATH_TO_DLL=\epoc32\release\winscw\udeb -set PATH_TO_COVERAGE_DATA=\coverage_data -set PATH_TO_RESULT=\test_result - -if not exist %PATH_TO_COVERAGE_DATA% ( -mkdir %PATH_TO_COVERAGE_DATA% -) - -if not exist %PATH_TO_RESULT% ( -mkdir %PATH_TO_RESULT% -) - -if [%1] EQU [] ( goto default ) - -call :%1 -call :%2 -call :%3 -call :%4 -call :%5 -echo Running tests = %RUNTESTS% -echo Instrumenting tests = %INSTRUMENT% -goto default - -:/NOCLEANUP -set REMOVEINSTRUMENT=FALSE -goto end - -:/NORUN -set RUNTESTS=FALSE -set REMOVEINSTRUMENT=FALSE -goto end - -:/NOINSTRUMENT -set INSTRUMENT=FALSE -goto end - -:/NOBUILD -set BUILDTESTS=FALSE -goto end - -:/ONLYUNITTESTS -set DOMODULESTESTS=FALSE -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function FINISH -:: -:: Finishes run_auto_tests.bat -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:FINISH - -if [%RUNTESTS%] EQU [TRUE] ( -call :runtests -) - -if [%INSTRUMENT%] EQU [TRUE] ( -call :calculatecoverage -) - -if [%REMOVEINSTRUMENT%] EQU [TRUE] ( -call :removecoverage -) -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function BUILD -:: param directory -:: -:: builds test from given directory -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:BUILD -setlocal -if [%BUILDTESTS%] EQU [FALSE] ( goto end ) -echo Building %1 -if not exist %1 ( -echo %1 Not found! -goto end -) - -pushd . -call cd %1 -call qmake -call sbs -c winscw_udeb clean -if [%INSTRUMENT%] EQU [TRUE] ( -call ctcwrap -n %PATH_TO_COVERAGE_DATA%\%1 -i d -C "EXCLUDE=*" -C "NO_EXCLUDE=%TESTED_SRC%" %ABLD_CALL% -) else ( -call %ABLD_CALL% -) - -popd -endlocal -goto end - - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function RUNTESTS -:: -:: NOTE! Function assumes that test binary is named according to test directory. -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:RUNTESTS -echo Running tests -for /f %%a in ('dir /b ut_*') do ( - call %PATH_TO_DLL%\%%a.exe - move \epoc32\winscw\c\data\%%a.log %PATH_TO_RESULT%\%%a.log -) -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function CALCULATECOVERAGE -:: -:: Calculates test coverage. Generates html -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:CALCULATECOVERAGE -echo Calculating coverage -ctcpost %PATH_TO_COVERAGE_DATA%\*.sym | ctcmerge -i - -o profile.txt -call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function REMOVECOVERAGE -:: -:: Removes data from coverage directory -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:REMOVECOVERAGE -echo Removing deleting coverage data -call del %PATH_TO_COVERAGE_DATA%\*.sym -call del %PATH_TO_COVERAGE_DATA%\*.dat -call del profile.txt -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function END -:: -:: Prints done -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:END -echo Done! \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidget/inc/ut_infowidget.h --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidget/inc/ut_infowidget.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,99 +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: -* -*/ - -#ifndef UT_INFOWIDGET_H -#define UT_INFOWIDGET_H - -#include -#include -#include -#include -#include -#include -#include "infowidgetengine.h" - -class InfoWidget; - -class UT_InfoWidget : public QObject, public MockService -{ - Q_OBJECT - -public: - - UT_InfoWidget(); - ~UT_InfoWidget(); - -private slots: - - void init(); - void cleanup(); - - //From QGraphicsItem. - void t_boundingRect(); - void t_shape(); - void t_sizePolicy(); - - void t_setHomeZoneDisplay(); - void t_setMcnDisplay(); - void t_setActiveLineDisplay(); - void t_setSatDisplay(); - - void t_paint(); - void t_mousePressEvent(); - void t_mouseReleaseEvent(); - void t_mouseMoveEvent(); - void t_updateInfoDisplay(); - void t_readPersistentPreferences(); - - void t_onInitialize(); - void t_onUninitialize(); - void t_onShow(); - void t_onHide(); - void t_readModel(); - void t_handleModelError(); - void t_mcnDisplaySettingChanged(); - void t_satDisplaySettingChanged(); - void t_settingsEditingFinished(); - - // private implementation tests - void t_updateItemsVisibility(); - void t_layoutInfoDisplay(); - void t_layoutSettingsDisplay(); - void t_initializeInfoDisplayItems(); - void t_initializeSettingsDisplayItems(); - void t_startChanges(); - void t_endChanges(); - - void t_sizeHint(); - - /* - * Not work from commmand prompt. - */ - void t_changeEvent(); - - - -private: - - InfoWidget *m_infoWidget; - InfoWidgetEngine::ModelData m_modelData; - QColor m_qcolor; - QGraphicsWidget m_qgraphicswidget; - -}; - -#endif // UT_INFOWIDGET_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidget/run_auto_tests_qt.bat --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidget/run_auto_tests_qt.bat Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,192 +0,0 @@ -rem -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: -rem - -@echo off -setlocal -goto :startup - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function DEFAULT -:: -:: Modify this function -:: - TESTED_SRC can be changed to match tested code. -:: Specifies path from testcode group directory to -:: tested code -:: - Add test directories to be runned -:: ie. "call :build ut_projectdirectory" or use -:: "for /f %%a in ('dir /b ut_*') do call :build %%a" -:: which compiles, instruments and runs all test directories -:: starting with "ut_". -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:DEFAULT -set TESTED_SRC=..\..\infowidget\src\*.cpp - -for /f %%a in ('dir /b ut_*') do call :build %%a -if [%DOMODULESTESTS%] EQU [TRUE] ( -for /f %%a in ('dir /b mt_*') do call :build %%a -) - -call :finish -goto :END - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function STARTUP -:: -:: Initializing script -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:STARTUP - -set BUILDTESTS=TRUE -set RUNTESTS=TRUE -set INSTRUMENT=TRUE -set REMOVEINSTRUMENT=TRUE -set DOMODULESTESTS=TRUE -set ABLD_CALL= -2comp sbs.bat -c winscw_udeb --keepgoing -set PATH_TO_DLL=\epoc32\release\winscw\udeb -set PATH_TO_COVERAGE_DATA=\coverage_data -set PATH_TO_RESULT=\test_result - -if not exist %PATH_TO_COVERAGE_DATA% ( -mkdir %PATH_TO_COVERAGE_DATA% -) - -if not exist %PATH_TO_RESULT% ( -mkdir %PATH_TO_RESULT% -) - -if [%1] EQU [] ( goto default ) - -call :%1 -call :%2 -call :%3 -call :%4 -call :%5 -echo Running tests = %RUNTESTS% -echo Instrumenting tests = %INSTRUMENT% -goto default - -:/NOCLEANUP -set REMOVEINSTRUMENT=FALSE -goto end - -:/NORUN -set RUNTESTS=FALSE -set REMOVEINSTRUMENT=FALSE -goto end - -:/NOINSTRUMENT -set INSTRUMENT=FALSE -goto end - -:/NOBUILD -set BUILDTESTS=FALSE -goto end - -:/ONLYUNITTESTS -set DOMODULESTESTS=FALSE -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function FINISH -:: -:: Finishes run_auto_tests.bat -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:FINISH - -if [%RUNTESTS%] EQU [TRUE] ( -call :runtests -) - -if [%INSTRUMENT%] EQU [TRUE] ( -call :calculatecoverage -) - -if [%REMOVEINSTRUMENT%] EQU [TRUE] ( -call :removecoverage -) -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function BUILD -:: param directory -:: -:: builds test from given directory -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:BUILD -setlocal -if [%BUILDTESTS%] EQU [FALSE] ( goto end ) -echo Building %1 -if not exist %1 ( -echo %1 Not found! -goto end -) - -pushd . -call cd %1 -call qmake -call sbs -c winscw_udeb clean -if [%INSTRUMENT%] EQU [TRUE] ( -call ctcwrap -n %PATH_TO_COVERAGE_DATA%\%1 -i d -C "EXCLUDE=*" -C "NO_EXCLUDE=%TESTED_SRC%" %ABLD_CALL% -) else ( -call %ABLD_CALL% -) - -popd -endlocal -goto end - - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function RUNTESTS -:: -:: NOTE! Function assumes that test binary is named according to test directory. -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:RUNTESTS -echo Running tests -call %PATH_TO_DLL%\ut_infowidget.exe -- -move \epoc32\winscw\c\data\ut_infowidget.log %PATH_TO_RESULT%\ut_infowidget.log -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function CALCULATECOVERAGE -:: -:: Calculates test coverage. Generates html -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:CALCULATECOVERAGE -echo Calculating coverage -ctcpost %PATH_TO_COVERAGE_DATA%\*.sym | ctcmerge -i - -o profile.txt -call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function REMOVECOVERAGE -:: -:: Removes data from coverage directory -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:REMOVECOVERAGE -echo Removing deleting coverage data -call del %PATH_TO_COVERAGE_DATA%\*.sym -call del %PATH_TO_COVERAGE_DATA%\*.dat -call del profile.txt -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function END -:: -:: Prints done -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:END -echo Done! \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidget/src/ut_infowidget.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidget/src/ut_infowidget.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,587 +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 -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "ut_infowidget.h" -#include "qtestmains60.h" - -#define private friend class UT_InfoWidget;private -#include "infowidget.h" - -// mocked dependencies -#include "infowidgetpreferences.h" - -const QString KPreferenceOn("On"); -const QString KPreferenceOff("Off"); -const QString KMcnName("tnw1: 3233255435"); - -/*! - UT_InfoWidget::UT_InfoWidget - */ -UT_InfoWidget::UT_InfoWidget() - : m_infoWidget(0) -{ - m_modelData.setActiveLine(1); - m_modelData.setHomeZoneIndicatorType(1); - m_modelData.setMcnName(KMcnName); - - SmcDefaultValue::SetL(m_modelData); - SmcDefaultValue::SetL(m_qcolor); - SmcDefaultValue::SetL(&m_qgraphicswidget); -} - -/*! - UT_InfoWidget::~UT_InfoWidget - */ -UT_InfoWidget::~UT_InfoWidget() -{ - delete m_infoWidget; -} - -/*! - UT_InfoWidget::init - */ -void UT_InfoWidget::init() -{ - initialize(); - - SmcDefaultValue::SetL("On"); - SmcDefaultValue::SetL( - InfoWidgetLayoutManager::InfoDisplay); - m_infoWidget = new InfoWidget(); - SmcDefaultValue::SetL(""); - - QVERIFY(verify()); -} - -/*! - UT_InfoWidget::cleanup - */ -void UT_InfoWidget::cleanup() -{ - reset(); - - delete m_infoWidget; - m_infoWidget = 0; -} - -/*! - UT_InfoWidget::t_boundingRect - */ -void UT_InfoWidget::t_boundingRect() -{ - m_infoWidget->boundingRect(); -} - -/*! - UT_InfoWidget::t_shape - */ -void UT_InfoWidget::t_shape() -{ - m_infoWidget->shape(); -} - - -/*! - UT_InfoWidget::t_sizePolicy - */ -void UT_InfoWidget::t_sizePolicy() -{ - QVERIFY(m_infoWidget->sizePolicy() == - QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed)); -} - -/*! - UT_InfoWidget::t_setHomeZoneDisplay - */ -void UT_InfoWidget::t_setHomeZoneDisplay() -{ - EXPECT(InfoWidgetPreferences::setPreference) - .with(InfoWidgetPreferences::DisplayHomeZone, KPreferenceOn); - - m_infoWidget->setHomeZoneDisplay(KPreferenceOn); - - QVERIFY(verify()); -} - -/*! - UT_InfoWidget::t_setMcnDisplay - */ -void UT_InfoWidget::t_setMcnDisplay() -{ - EXPECT(InfoWidgetPreferences::setPreference) - .with(InfoWidgetPreferences::DisplayMcn, KPreferenceOn); - - m_infoWidget->setMcnDisplay(KPreferenceOn); - - QVERIFY(verify()); -} - -/*! - UT_InfoWidget::t_setActiveLineDisplay - */ -void UT_InfoWidget::t_setActiveLineDisplay() -{ - EXPECT(InfoWidgetPreferences::setPreference) - .with(InfoWidgetPreferences::DisplayActiveLine, KPreferenceOn); - - m_infoWidget->setActiveLineDisplay(KPreferenceOn); - - QVERIFY(verify()); -} - -/*! - UT_InfoWidget::t_setSatDisplay - */ -void UT_InfoWidget::t_setSatDisplay() -{ - EXPECT(InfoWidgetPreferences::setPreference) - .with(InfoWidgetPreferences::DisplaySatText, KPreferenceOn); - - m_infoWidget->setSatDisplay(KPreferenceOn); - - QVERIFY(verify()); -} - -/*! - UT_InfoWidget::t_paint - */ -void UT_InfoWidget::t_paint() -{ - QScopedPointer painter(new QPainter()); - QStyleOptionGraphicsItem *option = NULL; - QWidget *widget = NULL; - - m_infoWidget->paint(painter.data(), option, widget); - - // layout change ongoing while paint requested - m_infoWidget->startChanges(); - m_infoWidget->paint(painter.data(), option, widget); -} - -/*! - UT_InfoWidget::t_mousePressEvent - */ -void UT_InfoWidget::t_mousePressEvent() -{ - QGraphicsSceneMouseEvent event; - m_infoWidget->mousePressEvent(&event); -} - -/*! - UT_InfoWidget::t_mouseReleaseEvent - */ -void UT_InfoWidget::t_mouseReleaseEvent() -{ - QGraphicsSceneMouseEvent event; - - // widget clicked while showing info display => - // switch to settings display expected - EXPECT(InfoWidgetLayoutManager::currentDisplayRole) - .returns(InfoWidgetLayoutManager::InfoDisplay); - EXPECT(InfoWidgetLayoutManager::layoutSettingsDisplay); - m_infoWidget->mousePressEvent(&event); - m_infoWidget->mouseReleaseEvent(&event); - - // widget clicked while showing settings display => - // no action expected - EXPECT(InfoWidgetLayoutManager::currentDisplayRole) - .returns(InfoWidgetLayoutManager::SettingsDisplay); - EXPECT(InfoWidgetLayoutManager::layoutSettingsDisplay).times(0); - m_infoWidget->mousePressEvent(&event); - m_infoWidget->mouseReleaseEvent(&event); - - // release event received after dragging widget => - // no action expected - EXPECT(InfoWidgetLayoutManager::layoutSettingsDisplay).times(0); - m_infoWidget->mouseMoveEvent(&event); - m_infoWidget->mouseReleaseEvent(&event); - - QVERIFY(verify()); -} - -/*! - UT_InfoWidget::t_mouseMoveEvent - */ -void UT_InfoWidget::t_mouseMoveEvent() -{ - -} - -/*! - UT_InfoWidget::t_updateInfoDisplay - */ -void UT_InfoWidget::t_updateInfoDisplay() -{ - HbLabel hbLabel; - QGraphicsWidget* pointerHbLabel(&hbLabel); - - EXPECT(InfoWidgetLayoutManager::currentDisplayRole) - .returns(InfoWidgetLayoutManager::InfoDisplay); - - EXPECT(InfoWidgetLayoutManager::getWidget) - .with(InfoWidgetLayoutManager::RoleSpnLabel) - .returns(pointerHbLabel); - - HbMarqueeItem mcnMarqueeItem; - QGraphicsWidget* pointerMcnMarqueeItem(&mcnMarqueeItem); - EXPECT(InfoWidgetLayoutManager::getWidget) - .with(InfoWidgetLayoutManager::RoleMcnMarqueeItem) - .returns(pointerMcnMarqueeItem); - EXPECT(HbMarqueeItem::isAnimating).returns(true); - EXPECT(InfoWidgetLayoutManager::getWidget) - .with(InfoWidgetLayoutManager::RoleSatMarqueeItem) - .returns(pointerMcnMarqueeItem); - - m_infoWidget->updateInfoDisplay(); - - QVERIFY(verify()); -} - -/*! - UT_InfoWidget::t_readPersistentPreferences - */ -void UT_InfoWidget::t_readPersistentPreferences() -{ - EXPECT(InfoWidgetPreferences::setPreference) - .with(InfoWidgetPreferences::DisplayHomeZone, QString("")); - - EXPECT(InfoWidgetPreferences::setPreference) - .with(InfoWidgetPreferences::DisplayMcn, QString("")); - - EXPECT(InfoWidgetPreferences::setPreference) - .with(InfoWidgetPreferences::DisplayActiveLine, QString("")); - - EXPECT(InfoWidgetPreferences::setPreference) - .with(InfoWidgetPreferences::DisplaySatText, QString("")); - - EXPECT(InfoWidgetPreferences::setPreference) - .with(InfoWidgetPreferences::DisplaySpn, QString("")); - - EXPECT(InfoWidgetPreferences::validate); - - m_infoWidget->readPersistentPreferences(); - - QVERIFY(verify()); - - // one visible item initially - EXPECT(InfoWidgetPreferences::validate).returns(true); - EXPECT(InfoWidgetPreferences::storePreferences); - - m_infoWidget->readPersistentPreferences(); - - QVERIFY(verify()); -} - -/*! - UT_InfoWidget::t_onInitialize - */ -void UT_InfoWidget::t_onInitialize() -{ - // Test onInitialize sequence where - // meta-object properties have been - // initialized - EXPECT(InfoWidgetPreferences::validate) - .returns(true); - EXPECT(InfoWidgetPreferences::storePreferences) - .returns(true); - m_infoWidget->onInitialize(); - - // Test onInitialize sequence where - // meta-object properties are - // uninitialized - EXPECT(InfoWidgetPreferences::validate) - .returns(false); - m_infoWidget->onInitialize(); -} - -/*! - UT_InfoWidget::t_onUninitialize - */ -void UT_InfoWidget::t_onUninitialize() -{ - m_infoWidget->onUninitialize(); -} - -/*! - UT_InfoWidget::t_onShow - */ -void UT_InfoWidget::t_onShow() -{ - m_infoWidget->onShow(); -} - -/*! - UT_InfoWidget::t_onHide - */ -void UT_InfoWidget::t_onHide() -{ - m_infoWidget->onHide(); -} - -/*! - UT_InfoWidget::t_readModel - */ -void UT_InfoWidget::t_readModel() -{ - EXPECT(InfoWidgetLayoutManager::currentDisplayRole) - .returns(InfoWidgetLayoutManager::InfoDisplay); - m_infoWidget->readModel(); - - EXPECT(InfoWidgetLayoutManager::currentDisplayRole) - .returns(InfoWidgetLayoutManager::SettingsDisplay); - m_infoWidget->readModel(); - - QVERIFY(verify()); -} - -/*! - UT_InfoWidget::t_handleModelError - */ -void UT_InfoWidget::t_handleModelError() -{ - int operation(0); - int errorCode(0); - m_infoWidget->handleModelError(operation, errorCode); -} - -/*! - UT_InfoWidget::t_mcnDisplaySettingChanged - */ -void UT_InfoWidget::t_mcnDisplaySettingChanged() -{ - // user enables MCN setting - EXPECT(InfoWidgetPreferences::setPreference) - .with(InfoWidgetPreferences::DisplayMcn, KPreferenceOn); - int setting(Qt::Checked); - m_infoWidget->mcnDisplaySettingChanged(setting); - - // user disables MCN setting - EXPECT(InfoWidgetPreferences::setPreference) - .with(InfoWidgetPreferences::DisplayMcn, KPreferenceOff); - setting = Qt::Unchecked; - m_infoWidget->mcnDisplaySettingChanged(setting); - - QVERIFY(verify()); -} - -void UT_InfoWidget::t_satDisplaySettingChanged() -{ - // user enables SAT setting - EXPECT(InfoWidgetPreferences::setPreference) - .with(InfoWidgetPreferences::DisplaySatText, KPreferenceOn); - int setting(Qt::Checked); - m_infoWidget->satDisplaySettingChanged(setting); - - // user disables SAT setting - EXPECT(InfoWidgetPreferences::setPreference) - .with(InfoWidgetPreferences::DisplaySatText, KPreferenceOff); - setting = Qt::Unchecked; - m_infoWidget->satDisplaySettingChanged(setting); - - QVERIFY(verify()); -} - -void UT_InfoWidget::t_settingsEditingFinished() -{ - m_infoWidget->settingsEditingFinished(); -} - -void UT_InfoWidget::t_updateItemsVisibility() -{ - // All items visible - EXPECT(InfoWidgetPreferences::preference) - .with(InfoWidgetPreferences::DisplaySpn) - .returns(KPreferenceOn); - EXPECT(InfoWidgetPreferences::preference) - .with(InfoWidgetPreferences::DisplayMcn) - .returns(KPreferenceOn); - EXPECT(InfoWidgetPreferences::preference) - .with(InfoWidgetPreferences::DisplaySatText) - .returns(KPreferenceOn); - EXPECT(InfoWidgetLayoutManager::setLayoutRows) - .with(3); - - m_infoWidget->updateItemsVisibility(); - QVERIFY(verify()); - - // none of items visible - EXPECT(InfoWidgetLayoutManager::currentDisplayRole) - .returns(InfoWidgetLayoutManager::InfoDisplay); - - EXPECT(InfoWidgetPreferences::preference) - .with(InfoWidgetPreferences::DisplaySpn) - .returns(KPreferenceOff); - EXPECT(InfoWidgetLayoutManager::removeWidget) - .with(InfoWidgetLayoutManager::RoleSpnLabel); - EXPECT(InfoWidgetLayoutManager::removeWidget) - .with(InfoWidgetLayoutManager::RoleSpnIcon); - - EXPECT(InfoWidgetPreferences::preference) - .with(InfoWidgetPreferences::DisplayMcn) - .returns(KPreferenceOff); - EXPECT(InfoWidgetLayoutManager::removeWidget) - .with(InfoWidgetLayoutManager::RoleMcnMarqueeItem); - EXPECT(InfoWidgetLayoutManager::removeWidget) - .with(InfoWidgetLayoutManager::RoleMcnIcon); - - EXPECT(InfoWidgetPreferences::preference) - .with(InfoWidgetPreferences::DisplaySatText) - .returns(KPreferenceOff); - EXPECT(InfoWidgetLayoutManager::removeWidget) - .with(InfoWidgetLayoutManager::RoleSatMarqueeItem); - EXPECT(InfoWidgetLayoutManager::removeWidget) - .with(InfoWidgetLayoutManager::RoleSatTextIcon); - - EXPECT(InfoWidgetLayoutManager::setLayoutRows) - .with(0); - - m_infoWidget->updateItemsVisibility(); - - QVERIFY(verify()); -} - -void UT_InfoWidget::t_layoutInfoDisplay() -{ - EXPECT(InfoWidgetLayoutManager::showAll); - EXPECT(InfoWidgetLayoutManager::currentDisplayRole) - .returns(InfoWidgetLayoutManager::SettingsDisplay); - - m_infoWidget->layoutInfoDisplay(); - - QVERIFY(verify()); -} - -void UT_InfoWidget::t_layoutSettingsDisplay() -{ - EXPECT(InfoWidgetLayoutManager::showAll); - - m_infoWidget->layoutSettingsDisplay(); - - QVERIFY(verify()); -} - -void UT_InfoWidget::t_initializeInfoDisplayItems() -{ - m_infoWidget->initializeInfoDisplayItems(); -} - -void UT_InfoWidget::t_initializeSettingsDisplayItems() -{ - QGraphicsWidget okButton; - EXPECT(InfoWidgetLayoutManager::getWidget) - .with(InfoWidgetLayoutManager::RoleOkButton) - .returns(&okButton); - - QGraphicsWidget mcnCheckBox; - EXPECT(InfoWidgetLayoutManager::getWidget) - .with(InfoWidgetLayoutManager::RoleMcnCheckBox) - .returns(&mcnCheckBox); - - QGraphicsWidget satTextCheckBox; - EXPECT(InfoWidgetLayoutManager::getWidget) - .with(InfoWidgetLayoutManager::RoleSatTextCheckBox) - .returns(&satTextCheckBox); - - m_infoWidget->initializeSettingsDisplayItems(); - - QVERIFY(verify()); -} - -void UT_InfoWidget::t_startChanges() -{ - m_infoWidget->startChanges(); -} - -void UT_InfoWidget::t_endChanges() -{ - m_infoWidget->endChanges(); -} - -/*! - UT_InfoWidget::t_changeEvent - */ -void UT_InfoWidget::t_changeEvent() -{ - /* - * Not work from commmand prompt. - */ - HbEvent event(HbEvent::ThemeChanged); - EXPECT(HbColorScheme::color); - m_infoWidget->changeEvent(&event); - QVERIFY(verify()); - - HbEvent event2(HbEvent::ChildFocusIn); - m_infoWidget->changeEvent(&event2); - QVERIFY(verify()); -} - - -/*! - UT_InfoWidget::t_sizeHint - */ -void UT_InfoWidget::t_sizeHint() -{ - const QSizeF KMinimumSize(33.5, 160); - const QSizeF KPreferredSize(134, 160); - const QSizeF KDefaultSizeInfoDisplay(100, 100); - const QSizeF KDefaultSizeSettingsDisplay(230, 220); - - // Test: initial size after construction - Qt::SizeHint sizeHint = Qt::PreferredSize; - QSizeF constraint = QSizeF(); - QVERIFY(KDefaultSizeInfoDisplay == m_infoWidget->sizeHint( - sizeHint, constraint)); - - // Test: size after onInitialize is called - // and current display is InfoDisplay - m_infoWidget->onInitialize(); - - EXPECT(InfoWidgetLayoutManager::currentDisplayRole). - returns(InfoWidgetLayoutManager::InfoDisplay); - QGraphicsWidget *contentWidget = new QGraphicsWidget; - contentWidget->setMinimumSize(KMinimumSize); - EXPECT(InfoWidgetLayoutManager::contentWidget). - returns(contentWidget); - EXPECT(InfoWidgetPreferences::visibleItemCount). - returns(1); - - // No strict verification, approximate values. - // Data in docml is in "un" format and strict comparison to pixels won't work - //QVERIFY(abs(KMinimumSize.width()-m_infoWidget->sizeHint(sizeHint, constraint).width()) < 1); - //QVERIFY(abs(KMinimumSize.height()-m_infoWidget->sizeHint(sizeHint, constraint).height()) < 1); - QVERIFY(KDefaultSizeInfoDisplay != m_infoWidget->sizeHint(sizeHint, constraint)); - - // Test: size after onInitialize is called - // and current display is SettingsDisplay - - delete contentWidget; - contentWidget = NULL; - - QVERIFY(verify()); -} - -QTEST_MAIN_S60(UT_InfoWidget) diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidget/ut_infowidget.pro --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidget/ut_infowidget.pro Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,67 +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: Project file for building unit test component -# -# - -CONFIG += qtestlib hb -TEMPLATE = app -TARGET = -DEPENDPATH += . ../../infowidget/src -INCLUDEPATH += . -INCLUDEPATH += ../common -INCLUDEPATH += ../../inc/ -INCLUDEPATH += ../../infowidget/inc/ -DEFINES += QT_NO_DEBUG_STREAM - - -QT -= gui -QT += testlib - -symbian: { - CONFIG += no_icon - INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE - LIBS += -lmocklib \ - -lsymbianmock \ - -lhswidgetmodel -} - -# test code -HEADERS += ./inc/ut_infowidget.h -SOURCES += ./src/ut_infowidget.cpp - -# code to be tested -HEADERS += ../../infowidget/inc/infowidget.h -SOURCES += ../../infowidget/src/infowidget.cpp - -# mocks needed for testing -HEADERS += ../../infowidget/inc/infowidgetpreferences.h -SOURCES += ../mocks/mock_infowidgetpreferences.cpp -HEADERS += ../../infowidget/inc/infowidgetengine.h -SOURCES += ../mocks/mock_infowidgetengine.cpp -HEADERS += ../../infowidget/inc/infowidgetlayoutmanager.h -SOURCES += ../mocks/mock_infowidgetlayoutmanager.cpp -HEADERS += ../../infowidget/inc/infowidgetnetworkhandler.h -SOURCES += ../mocks/mock_infowidgetnetworkhandler.cpp -HEADERS += ../../infowidget/inc/infowidgetsathandler.h -SOURCES += ../mocks/mock_infowidgetsathandler.cpp - -SOURCES += ../mocks/mock_hbcolorscheme.cpp -SOURCES += ../mocks/mock_hblabel.cpp -SOURCES += ../mocks/mock_hbstyleoptionlabel.cpp -SOURCES += ../mocks/mock_hbmarqueeitem.cpp -SOURCES += ../mocks/mock_hbwidget.cpp -SOURCES += ../mocks/mock_qgraphicslinearlayout.cpp -SOURCES += ../mocks/mock_qgraphicslayout.cpp -SOURCES += ../mocks/mock_hbframedrawer.cpp \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetengine/inc/ut_infowidgetengine.h --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetengine/inc/ut_infowidgetengine.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,59 +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: -* -*/ - -#ifndef UT_INFOWIDGETENGINE_H -#define UT_INFOWIDGETENGINE_H - -#include -#include - -class InfoWidgetEngine; - -class UT_InfoWidgetEngine : public QObject, public MockService -{ - Q_OBJECT - -public: - - UT_InfoWidgetEngine(); - ~UT_InfoWidgetEngine(); - -private slots: - - void init(); - void cleanup(); - - void t_modelData(); - void t_updateNetworkDataToModel(); - void t_updateSatDataToModel(); - void t_updateLineDataToModel(); - void t_handleNetworkError(); - void t_handleSatError(); - void t_handleLineError(); - - void t_logModelData(); - void t_preferenceChanged(); - void t_suspend(); - void t_resume(); - -private: - - InfoWidgetEngine *m_infoWidgetEngine; - -}; - -#endif // UT_INFOWIDGETENGINE_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetengine/run_auto_tests_qt.bat --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetengine/run_auto_tests_qt.bat Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,192 +0,0 @@ -rem -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: -rem - -@echo off -setlocal -goto :startup - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function DEFAULT -:: -:: Modify this function -:: - TESTED_SRC can be changed to match tested code. -:: Specifies path from testcode group directory to -:: tested code -:: - Add test directories to be runned -:: ie. "call :build ut_projectdirectory" or use -:: "for /f %%a in ('dir /b ut_*') do call :build %%a" -:: which compiles, instruments and runs all test directories -:: starting with "ut_". -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:DEFAULT -set TESTED_SRC=..\..\infowidget\src\*.cpp - -for /f %%a in ('dir /b ut_*') do call :build %%a -if [%DOMODULESTESTS%] EQU [TRUE] ( -for /f %%a in ('dir /b mt_*') do call :build %%a -) - -call :finish -goto :END - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function STARTUP -:: -:: Initializing script -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:STARTUP - -set BUILDTESTS=TRUE -set RUNTESTS=TRUE -set INSTRUMENT=TRUE -set REMOVEINSTRUMENT=TRUE -set DOMODULESTESTS=TRUE -set ABLD_CALL= -2comp sbs.bat -c winscw_udeb --keepgoing -set PATH_TO_DLL=\epoc32\release\winscw\udeb -set PATH_TO_COVERAGE_DATA=\coverage_data -set PATH_TO_RESULT=\test_result - -if not exist %PATH_TO_COVERAGE_DATA% ( -mkdir %PATH_TO_COVERAGE_DATA% -) - -if not exist %PATH_TO_RESULT% ( -mkdir %PATH_TO_RESULT% -) - -if [%1] EQU [] ( goto default ) - -call :%1 -call :%2 -call :%3 -call :%4 -call :%5 -echo Running tests = %RUNTESTS% -echo Instrumenting tests = %INSTRUMENT% -goto default - -:/NOCLEANUP -set REMOVEINSTRUMENT=FALSE -goto end - -:/NORUN -set RUNTESTS=FALSE -set REMOVEINSTRUMENT=FALSE -goto end - -:/NOINSTRUMENT -set INSTRUMENT=FALSE -goto end - -:/NOBUILD -set BUILDTESTS=FALSE -goto end - -:/ONLYUNITTESTS -set DOMODULESTESTS=FALSE -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function FINISH -:: -:: Finishes run_auto_tests.bat -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:FINISH - -if [%RUNTESTS%] EQU [TRUE] ( -call :runtests -) - -if [%INSTRUMENT%] EQU [TRUE] ( -call :calculatecoverage -) - -if [%REMOVEINSTRUMENT%] EQU [TRUE] ( -call :removecoverage -) -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function BUILD -:: param directory -:: -:: builds test from given directory -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:BUILD -setlocal -if [%BUILDTESTS%] EQU [FALSE] ( goto end ) -echo Building %1 -if not exist %1 ( -echo %1 Not found! -goto end -) - -pushd . -call cd %1 -call qmake -call sbs -c winscw_udeb clean -if [%INSTRUMENT%] EQU [TRUE] ( -call ctcwrap -n %PATH_TO_COVERAGE_DATA%\%1 -i d -C "EXCLUDE=*" -C "NO_EXCLUDE=%TESTED_SRC%" %ABLD_CALL% -) else ( -call %ABLD_CALL% -) - -popd -endlocal -goto end - - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function RUNTESTS -:: -:: NOTE! Function assumes that test binary is named according to test directory. -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:RUNTESTS -echo Running tests -call %PATH_TO_DLL%\ut_infowidgetengine.exe -dtextshell -- -move \epoc32\winscw\c\data\ut_infowidgetengine.log %PATH_TO_RESULT%\ut_infowidgetengine.log -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function CALCULATECOVERAGE -:: -:: Calculates test coverage. Generates html -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:CALCULATECOVERAGE -echo Calculating coverage -ctcpost %PATH_TO_COVERAGE_DATA%\*.sym | ctcmerge -i - -o profile.txt -call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function REMOVECOVERAGE -:: -:: Removes data from coverage directory -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:REMOVECOVERAGE -echo Removing deleting coverage data -call del %PATH_TO_COVERAGE_DATA%\*.sym -call del %PATH_TO_COVERAGE_DATA%\*.dat -call del profile.txt -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function END -:: -:: Prints done -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:END -echo Done! \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetengine/src/ut_infowidgetengine.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetengine/src/ut_infowidgetengine.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,279 +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 "ut_infowidgetengine.h" -#include "infowidgetengine.h" -#include "qtestmains60.h" -#include "infowidgetpreferences.h" - -// mocked dependencies of the class under test -#include "infowidgetnetworkhandler.h" -#include "infowidgetsathandler.h" - -const QString KSpnName("Spn name"); // - -const QString KHomeZoneTextTag("HomeZoneText0"); // max length 13 -const TNWViagIndicatorType - KHomeZoneIndicatorType = ENWViagIndicatorTypeHomeZone; - -const QString KMcnName("McnNameMcnNameMcnNam"); // max length 20 -const TNWMCNIndicatorType - KMcnIndicatorType = ENWMCNIndicatorTypeActive; - -/*! - UT_InfoWidgetEngine::UT_InfoWidgetEngine - */ -UT_InfoWidgetEngine::UT_InfoWidgetEngine() - : - m_infoWidgetEngine(0) -{ - -} - -/*! - UT_InfoWidgetEngine::~UT_InfoWidgetEngine - */ -UT_InfoWidgetEngine::~UT_InfoWidgetEngine() -{ - delete m_infoWidgetEngine; -} - -/*! - UT_InfoWidgetEngine::init - */ -void UT_InfoWidgetEngine::init() -{ - initialize(); - - SmcDefaultValue::SetL(""); - SmcDefaultValue::SetL(""); - - EXPECT(InfoWidgetNetworkHandler::logCurrentInfo); - EXPECT(InfoWidgetNetworkHandler::isOnline) - .returns(true); - - EXPECT(InfoWidgetNetworkHandler::serviceProviderName) - .returns(KSpnName); - EXPECT(InfoWidgetNetworkHandler::serviceProviderNameDisplayRequired) - .returns(true); - - EXPECT(InfoWidgetNetworkHandler::mcnName).returns(KMcnName); - EXPECT(InfoWidgetNetworkHandler::mcnIndicatorType) - .returns(KMcnIndicatorType); - - EXPECT(InfoWidgetNetworkHandler::homeZoneIndicatorType) - .returns(KHomeZoneIndicatorType); - EXPECT(InfoWidgetNetworkHandler::homeZoneTextTag) - .returns(KHomeZoneTextTag); - - m_infoWidgetEngine = new InfoWidgetEngine(); - - QVERIFY(verify()); -} - -/*! - UT_InfoWidgetEngine::cleanup - */ -void UT_InfoWidgetEngine::cleanup() -{ - reset(); - - delete m_infoWidgetEngine; - m_infoWidgetEngine = 0; -} - -/*! - UT_InfoWidgetEngine::t_modelData - */ -void UT_InfoWidgetEngine::t_modelData() -{ - const InfoWidgetEngine::ModelData& data = m_infoWidgetEngine->modelData(); - QVERIFY(data.serviceProviderName() == KSpnName); - QVERIFY(data.serviceProviderNameDisplayRequired() == true); - QVERIFY(data.homeZoneTextTag() == KHomeZoneTextTag); - QVERIFY(data.homeZoneIndicatorType() == KHomeZoneIndicatorType); - QVERIFY(data.mcnName() == KMcnName); - QVERIFY(data.mcnIndicatorType() == KMcnIndicatorType); -} - -/*! - UT_InfoWidgetEngine::t_updateNetworkDataToModel - */ -void UT_InfoWidgetEngine::t_updateNetworkDataToModel() -{ - // Test: network status is online - EXPECT(InfoWidgetNetworkHandler::logCurrentInfo); - EXPECT(InfoWidgetNetworkHandler::isOnline) - .returns(true); - - EXPECT(InfoWidgetNetworkHandler::serviceProviderName) - .returns(KSpnName); - EXPECT(InfoWidgetNetworkHandler::serviceProviderNameDisplayRequired) - .returns(true); - - EXPECT(InfoWidgetNetworkHandler::mcnName).returns(KMcnName); - EXPECT(InfoWidgetNetworkHandler::mcnIndicatorType) - .returns(KMcnIndicatorType); - - EXPECT(InfoWidgetNetworkHandler::homeZoneIndicatorType) - .returns(KHomeZoneIndicatorType); - EXPECT(InfoWidgetNetworkHandler::homeZoneTextTag) - .returns(KHomeZoneTextTag); - - QSignalSpy spy(m_infoWidgetEngine, SIGNAL(modelChanged())); - m_infoWidgetEngine->updateNetworkDataToModel(); - - const int KExpectedNumOfSignalEmissions = 1; - QCOMPARE(spy.count(), KExpectedNumOfSignalEmissions); - const QList &arguments = spy.takeFirst(); - QCOMPARE(arguments.count(), 0); - - QVERIFY(verify()); - - // Test: network status is offline - EXPECT(InfoWidgetNetworkHandler::logCurrentInfo); - EXPECT(InfoWidgetNetworkHandler::isOnline) - .returns(false); - EXPECT(InfoWidgetNetworkHandler::serviceProviderName).times(0); - EXPECT(InfoWidgetNetworkHandler::serviceProviderNameDisplayRequired).times(0); - EXPECT(InfoWidgetNetworkHandler::mcnName).times(0); - EXPECT(InfoWidgetNetworkHandler::mcnIndicatorType).times(0); - EXPECT(InfoWidgetNetworkHandler::homeZoneIndicatorType).times(0); - EXPECT(InfoWidgetNetworkHandler::homeZoneTextTag).times(0); - - m_infoWidgetEngine->updateNetworkDataToModel(); - QCOMPARE(spy.count(), KExpectedNumOfSignalEmissions); - const QList &arguments2 = spy.takeFirst(); - QCOMPARE(arguments2.count(), 0); - - QVERIFY(verify()); - - const InfoWidgetEngine::ModelData& data = m_infoWidgetEngine->modelData(); - QVERIFY(data.serviceProviderName() == QString("")); - QVERIFY(data.homeZoneTextTag() == QString("")); - QVERIFY(data.mcnName() == QString("")); - -} - -/*! - UT_InfoWidgetEngine::t_updateSatDataToModel - */ -void UT_InfoWidgetEngine::t_updateSatDataToModel() -{ - EXPECT(InfoWidgetSatHandler::satDisplayText) - .returns(QString("")); - - m_infoWidgetEngine->updateSatDataToModel(); -} - -/*! - UT_InfoWidgetEngine::t_updateLineDataToModel - */ -void UT_InfoWidgetEngine::t_updateLineDataToModel() -{ - m_infoWidgetEngine->updateLineDataToModel(); - - QVERIFY(verify()); -} - -/*! - UT_InfoWidgetEngine::t_handleNetworkError - */ -void UT_InfoWidgetEngine::t_handleNetworkError() -{ - m_infoWidgetEngine->handleNetworkError(0, 0); - - QVERIFY(verify()); -} - -/*! - UT_InfoWidgetEngine::t_handleSatError - */ -void UT_InfoWidgetEngine::t_handleSatError() -{ - m_infoWidgetEngine->handleSatError(0, 0); - - QVERIFY(verify()); -} - -/*! - UT_InfoWidgetEngine::t_handleLineError - */ -void UT_InfoWidgetEngine::t_handleLineError() -{ - m_infoWidgetEngine->handleLineError(0, 0); - - QVERIFY(verify()); -} - -/*! - UT_InfoWidgetEngine::t_handleLineError - */ -void UT_InfoWidgetEngine::t_logModelData() -{ - m_infoWidgetEngine->logModelData(); - - QVERIFY(verify()); -} - -/*! - UT_InfoWidgetEngine::t_preferenceChanged - */ -void UT_InfoWidgetEngine::t_preferenceChanged() -{ - m_infoWidgetEngine->preferenceChanged - (InfoWidgetPreferences::DisplayMcn, - InfoWidgetPreferences::DisplayOn); - - m_infoWidgetEngine->preferenceChanged - (InfoWidgetPreferences::DisplayMcn, - InfoWidgetPreferences::DisplayOff); - - m_infoWidgetEngine->preferenceChanged - (InfoWidgetPreferences::DisplaySatText, - InfoWidgetPreferences::DisplayOn); - - m_infoWidgetEngine->preferenceChanged - (InfoWidgetPreferences::DisplaySatText, - InfoWidgetPreferences::DisplayOff); - - m_infoWidgetEngine->preferenceChanged(-1, - InfoWidgetPreferences::DisplayOff); - - QVERIFY(verify()); -} - -/*! - UT_InfoWidgetEngine::t_suspend - */ -void UT_InfoWidgetEngine::t_suspend() -{ - m_infoWidgetEngine->suspend(); - - QVERIFY(verify()); -} - -/*! - UT_InfoWidgetEngine::t_resume - */ -void UT_InfoWidgetEngine::t_resume() -{ - m_infoWidgetEngine->resume(); - - QVERIFY(verify()); -} - -QTEST_MAIN_S60(UT_InfoWidgetEngine) diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetengine/ut_infowidgetengine.pro --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetengine/ut_infowidgetengine.pro Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,59 +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: Project file for building unit test component -# -# - -CONFIG += qtestlib hb -TEMPLATE = app -TARGET = -DEPENDPATH += . ../../infowidget/src ../../infowidget/inc -INCLUDEPATH += . -INCLUDEPATH += ../common -INCLUDEPATH += ../../inc/ -INCLUDEPATH += ../../infowidget/inc/ -DEFINES += XQSETTINGSMANAGER_NO_LIBRARY -DEFINES += QT_NO_DEBUG_STREAM - -QT -= gui -QT += testlib - -symbian: { - CONFIG += no_icon - INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE - LIBS += -lmocklib \ - -lsymbianmock \ - -lcpframework -} - -# test code -HEADERS += ./inc/ut_infowidgetengine.h -SOURCES += ./src/ut_infowidgetengine.cpp - -# code to be tested -HEADERS += ../../infowidget/inc/infowidgetengine.h -SOURCES += ../../infowidget/src/infowidgetengine.cpp - -# mocks needed for testing -HEADERS += ../../infowidget/inc/infowidgetnetworkhandler.h \ - ../../infowidget/inc/infowidgetsathandler.h -HEADERS += /epoc32/include/mw/xqsettingskey.h \ - /epoc32/include/mw/xqsettingsmanager.h - -SOURCES += ../mocks/mock_xqsettingsmanager.cpp \ - ../mocks/mock_xqsettingskey.cpp \ - ../mocks/mock_infowidgetnetworkhandler.cpp \ - ../mocks/mock_infowidgetsathandler.cpp \ - ../mocks/mock_rsatservice.cpp - diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetlayoutmanager/inc/ut_infowidgetlayoutmanager.h --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetlayoutmanager/inc/ut_infowidgetlayoutmanager.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,86 +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: -* -*/ - -#ifndef UT_INFOWIDGETLAYOUTMANAGER_H -#define UT_INFOWIDGETLAYOUTMANAGER_H - -#include -#include - -class InfoWidgetLayoutManager; -class InfoWidgetDocumentLoader; - -class UT_InfoWidgetLayoutManager : public QObject, public MockService -{ - Q_OBJECT - -public: - UT_InfoWidgetLayoutManager(); - ~UT_InfoWidgetLayoutManager(); - -private: - void fillDisplayContainers(); - void fillCurrentWidgetsContainer(); - void fillParams(const QString & fileName, bool * ok); - -private slots: - void init(); - void cleanup(); - - void t_currentDisplayRole(); - void t_currentWidgetRoles(); - - void t_layoutRows(); - void t_setLayoutRows(); - void t_rowHeight(); - - void t_layoutInfoDisplay(); - void t_layoutSettingsDisplay(); - - void t_widgetRoles(); - void t_loadWidgets(); - void t_loadWidget(); - void t_getWidget(); - void t_hideWidget(); - - void t_contentWidget(); - - void t_showAll(); - void t_hideAll(); - - void t_reloadWidgets(); - - void t_removeWidget(); - - void t_destroyObjects(); - - // InfoWidgetDocumentLoader tests - void t_createObject(); - -private: - InfoWidgetLayoutManager *m_layoutManager; - InfoWidgetDocumentLoader *m_documentLoader; - - QGraphicsWidget *m_checkBoxPtr; - QGraphicsWidget *m_iconPtr; - QGraphicsWidget *m_marqueeItemPtr; - QGraphicsWidget *m_labelPtr; - QGraphicsWidget *m_graphicsWidgetPtr; - -}; - -#endif // UT_INFOWIDGETLAYOUTMANAGER_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetlayoutmanager/run_auto_tests_qt.bat --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetlayoutmanager/run_auto_tests_qt.bat Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,192 +0,0 @@ -rem -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: -rem - -@echo off -setlocal -goto :startup - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function DEFAULT -:: -:: Modify this function -:: - TESTED_SRC can be changed to match tested code. -:: Specifies path from testcode group directory to -:: tested code -:: - Add test directories to be runned -:: ie. "call :build ut_projectdirectory" or use -:: "for /f %%a in ('dir /b ut_*') do call :build %%a" -:: which compiles, instruments and runs all test directories -:: starting with "ut_". -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:DEFAULT -set TESTED_SRC=..\..\infowidget\src\*.cpp - -for /f %%a in ('dir /b ut_*') do call :build %%a -if [%DOMODULESTESTS%] EQU [TRUE] ( -for /f %%a in ('dir /b mt_*') do call :build %%a -) - -call :finish -goto :END - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function STARTUP -:: -:: Initializing script -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:STARTUP - -set BUILDTESTS=TRUE -set RUNTESTS=TRUE -set INSTRUMENT=TRUE -set REMOVEINSTRUMENT=TRUE -set DOMODULESTESTS=TRUE -set ABLD_CALL= -2comp sbs.bat -c winscw_udeb --keepgoing -set PATH_TO_DLL=\epoc32\release\winscw\udeb -set PATH_TO_COVERAGE_DATA=\coverage_data -set PATH_TO_RESULT=\test_result - -if not exist %PATH_TO_COVERAGE_DATA% ( -mkdir %PATH_TO_COVERAGE_DATA% -) - -if not exist %PATH_TO_RESULT% ( -mkdir %PATH_TO_RESULT% -) - -if [%1] EQU [] ( goto default ) - -call :%1 -call :%2 -call :%3 -call :%4 -call :%5 -echo Running tests = %RUNTESTS% -echo Instrumenting tests = %INSTRUMENT% -goto default - -:/NOCLEANUP -set REMOVEINSTRUMENT=FALSE -goto end - -:/NORUN -set RUNTESTS=FALSE -set REMOVEINSTRUMENT=FALSE -goto end - -:/NOINSTRUMENT -set INSTRUMENT=FALSE -goto end - -:/NOBUILD -set BUILDTESTS=FALSE -goto end - -:/ONLYUNITTESTS -set DOMODULESTESTS=FALSE -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function FINISH -:: -:: Finishes run_auto_tests.bat -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:FINISH - -if [%RUNTESTS%] EQU [TRUE] ( -call :runtests -) - -if [%INSTRUMENT%] EQU [TRUE] ( -call :calculatecoverage -) - -if [%REMOVEINSTRUMENT%] EQU [TRUE] ( -call :removecoverage -) -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function BUILD -:: param directory -:: -:: builds test from given directory -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:BUILD -setlocal -if [%BUILDTESTS%] EQU [FALSE] ( goto end ) -echo Building %1 -if not exist %1 ( -echo %1 Not found! -goto end -) - -pushd . -call cd %1 -call qmake -call sbs -c winscw_udeb clean -if [%INSTRUMENT%] EQU [TRUE] ( -call ctcwrap -n %PATH_TO_COVERAGE_DATA%\%1 -i d -C "EXCLUDE=*" -C "NO_EXCLUDE=%TESTED_SRC%" %ABLD_CALL% -) else ( -call %ABLD_CALL% -) - -popd -endlocal -goto end - - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function RUNTESTS -:: -:: NOTE! Function assumes that test binary is named according to test directory. -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:RUNTESTS -echo Running tests -call %PATH_TO_DLL%\ut_infowidgetlayoutmanager.exe -dtextshell -- -move \epoc32\winscw\c\data\ut_infowidgetlayoutmanager.log %PATH_TO_RESULT%\ut_infowidgetlayoutmanager.log -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function CALCULATECOVERAGE -:: -:: Calculates test coverage. Generates html -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:CALCULATECOVERAGE -echo Calculating coverage -ctcpost %PATH_TO_COVERAGE_DATA%\*.sym | ctcmerge -i - -o profile.txt -call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function REMOVECOVERAGE -:: -:: Removes data from coverage directory -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:REMOVECOVERAGE -echo Removing deleting coverage data -call del %PATH_TO_COVERAGE_DATA%\*.sym -call del %PATH_TO_COVERAGE_DATA%\*.dat -call del profile.txt -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function END -:: -:: Prints done -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:END -echo Done! \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetlayoutmanager/src/ut_infowidgetlayoutmanager.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetlayoutmanager/src/ut_infowidgetlayoutmanager.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,475 +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 "ut_infowidgetlayoutmanager.h" -#include -#include -#include -#define private public -#include "infowidgetlayoutmanager.h" -#include "qtestmains60.h" - - - -const int KNumOfSettingsDisplayRoles = 6; -const int KNumOfInfoDisplayRoles = 7; -const QString KInfoWidgetDocmlFile = ":/resource/infowidget.docml"; -const QString KMargueeItemClassName = HbMarqueeItem::staticMetaObject.className(); - -//class HbStyle; -/*! - UT_InfoWidgetLayoutManager::UT_InfoWidgetLayoutManager - */ -UT_InfoWidgetLayoutManager::UT_InfoWidgetLayoutManager() - : - m_layoutManager(NULL), - m_documentLoader(NULL) -{ - m_checkBoxPtr = new QGraphicsWidget; - m_iconPtr = new QGraphicsWidget; - m_marqueeItemPtr = new QGraphicsWidget; - m_labelPtr = new QGraphicsWidget; - m_graphicsWidgetPtr = new QGraphicsWidget; -} - - -/*! - UT_InfoWidgetLayoutManager::~UT_InfoWidgetLayoutManager - */ -UT_InfoWidgetLayoutManager::~UT_InfoWidgetLayoutManager() -{ - delete m_layoutManager; - delete m_checkBoxPtr; - delete m_iconPtr; - delete m_marqueeItemPtr; - delete m_labelPtr; - delete m_graphicsWidgetPtr; -} - - -/*! - UT_InfoWidgetLayoutManager::init - */ -void UT_InfoWidgetLayoutManager::init() -{ - initialize(); - - QObjectList objectList; - EXPECT(HbDocumentLoader::load) - .with(KInfoWidgetDocmlFile, false) - .returns(&objectList); - EXPECT(HbDocumentLoader::load) - .with(KInfoWidgetDocmlFile, false) - .returns(&objectList); - m_layoutManager = new InfoWidgetLayoutManager(); - - m_documentLoader = new InfoWidgetDocumentLoader; - - QVERIFY(verify()); -} - - -/*! - UT_InfoWidgetLayoutManager::cleanup - */ -void UT_InfoWidgetLayoutManager::cleanup() -{ - reset(); - - delete m_layoutManager; - m_layoutManager = NULL; - - delete m_documentLoader; - m_documentLoader = NULL; -} - -/*! - UT_InfoWidgetLayoutManager::fillDisplayContainers - */ -void UT_InfoWidgetLayoutManager::fillDisplayContainers() -{ - InfoWidgetLayoutManager::LayoutItemRole currentRole; - - QList infoDisplayWidgetRoles = - m_layoutManager->widgetRoles(InfoWidgetLayoutManager::InfoDisplay); - foreach (currentRole, infoDisplayWidgetRoles) { - m_layoutManager->m_infoDisplayWidgets.insert(currentRole, m_graphicsWidgetPtr); - } - - QList settingsDisplayWidgetRoles = - m_layoutManager->widgetRoles(InfoWidgetLayoutManager::SettingsDisplay); - foreach (currentRole, settingsDisplayWidgetRoles) { - m_layoutManager->m_settingsDisplayWidgets.insert(currentRole, m_graphicsWidgetPtr); - } - -} - -/*! - UT_InfoWidgetLayoutManager::fillParams - */ -void UT_InfoWidgetLayoutManager::fillParams(const QString & fileName, - bool * ok){ - Q_UNUSED(fileName) - *ok = true; -} - -/*! - UT_InfoWidgetLayoutManager::fillCurrentWidgetsContainer - */ -void UT_InfoWidgetLayoutManager::fillCurrentWidgetsContainer() -{ - InfoWidgetLayoutManager::LayoutItemRole currentRole; - - QList infoDisplayWidgetRoles = - m_layoutManager->widgetRoles(InfoWidgetLayoutManager::InfoDisplay); - foreach (currentRole, infoDisplayWidgetRoles) { - m_layoutManager->m_widgets.insert(currentRole, m_graphicsWidgetPtr); - } -} - -/*! - UT_InfoWidgetLayoutManager::t_currentDisplayRole - */ -void UT_InfoWidgetLayoutManager::t_currentDisplayRole() -{ - InfoWidgetLayoutManager::DisplayRole role = - m_layoutManager->currentDisplayRole(); - - QVERIFY(InfoWidgetLayoutManager::InfoDisplay == role); -} - - -/*! - UT_InfoWidgetLayoutManager::t_currentWidgetRoles - */ -void UT_InfoWidgetLayoutManager::t_currentWidgetRoles() -{ - // Initial state after layout manager construction - QList roles = - m_layoutManager->currentWidgetRoles(); - QVERIFY(roles.count() == 0); - - // Fill display container data - fillDisplayContainers(); - - QGraphicsLayout *activeLayout; - activeLayout= m_layoutManager->layoutInfoDisplay(); - QVERIFY(!activeLayout); - - roles = m_layoutManager->currentWidgetRoles(); - - QVERIFY(roles.count() == KNumOfInfoDisplayRoles); - if (roles.count() == KNumOfInfoDisplayRoles) { - QVERIFY(0 <= roles.indexOf( - InfoWidgetLayoutManager::RoleContent)); - QVERIFY(0 <= roles.indexOf( - InfoWidgetLayoutManager::RoleSpnLabel)); - QVERIFY(0 <= roles.indexOf( - InfoWidgetLayoutManager::RoleMcnMarqueeItem)); - QVERIFY(0 <= roles.indexOf( - InfoWidgetLayoutManager::RoleSatMarqueeItem)); - QVERIFY(0 <= roles.indexOf( - InfoWidgetLayoutManager::RoleSpnIcon)); - QVERIFY(0 <= roles.indexOf( - InfoWidgetLayoutManager::RoleMcnIcon)); - QVERIFY(0 <= roles.indexOf( - InfoWidgetLayoutManager::RoleSatTextIcon)); - } - - activeLayout= m_layoutManager->layoutSettingsDisplay(); - QVERIFY(!activeLayout); - - roles = m_layoutManager->currentWidgetRoles(); - int dVar = roles.count(); - QVERIFY(roles.count() == KNumOfSettingsDisplayRoles); - -} - - -/*! - UT_InfoWidgetLayoutManager::t_layoutRows - */ -void UT_InfoWidgetLayoutManager::t_layoutRows() -{ - int rows = m_layoutManager->layoutRows(); - QVERIFY(0 == rows); -} - - -/*! - UT_InfoWidgetLayoutManager::t_setLayoutRows - */ -void UT_InfoWidgetLayoutManager::t_setLayoutRows() -{ - const int KLayoutRows = 1; - m_layoutManager->setLayoutRows(KLayoutRows); - QVERIFY(KLayoutRows == m_layoutManager->layoutRows()); -} - -/*! - UT_InfoWidgetLayoutManager::t_setLayoutRows - */ -void UT_InfoWidgetLayoutManager::t_rowHeight() -{ - bool b = false; - EXPECT(HbStyle::parameter).returns(b); - m_layoutManager->rowHeight(); - - b = true; - EXPECT(HbStyle::parameter).returns(b); - m_layoutManager->rowHeight(); - - QVERIFY(verify()); -} - -/*! - UT_InfoWidgetLayoutManager::t_layoutInfoDisplay - */ -void UT_InfoWidgetLayoutManager::t_layoutInfoDisplay() -{ - QVERIFY(!m_layoutManager->layoutInfoDisplay()); -} - - -/*! - UT_InfoWidgetLayoutManager::t_layoutSettingsDisplay - */ -void UT_InfoWidgetLayoutManager::t_layoutSettingsDisplay() -{ - QVERIFY(!m_layoutManager->layoutSettingsDisplay()); -} - -/*! - UT_InfoWidgetLayoutManager::t_widgetRoles - */ -void UT_InfoWidgetLayoutManager::t_widgetRoles() -{ - const QList settingDisplayRoles = - m_layoutManager->widgetRoles(InfoWidgetLayoutManager::SettingsDisplay); - - QVERIFY(settingDisplayRoles.count() == KNumOfSettingsDisplayRoles); - if (settingDisplayRoles.count() == KNumOfSettingsDisplayRoles) { - QVERIFY(0 <= settingDisplayRoles.indexOf( - InfoWidgetLayoutManager::RoleContent)); - QVERIFY(0 <= settingDisplayRoles.indexOf( - InfoWidgetLayoutManager::RoleSpnCheckBox)); - QVERIFY(0 <= settingDisplayRoles.indexOf( - InfoWidgetLayoutManager::RoleMcnCheckBox)); - QVERIFY(0 <= settingDisplayRoles.indexOf( - InfoWidgetLayoutManager::RoleSatTextCheckBox)); - QVERIFY(0 <= settingDisplayRoles.indexOf( - InfoWidgetLayoutManager::RoleOkButton)); - QVERIFY(0 <= settingDisplayRoles.indexOf( - InfoWidgetLayoutManager::RoleSettingsContainer)); - } - - const QList infoDisplayRoles = - m_layoutManager->widgetRoles(InfoWidgetLayoutManager::InfoDisplay); - QVERIFY(infoDisplayRoles.count() == KNumOfInfoDisplayRoles); - if (infoDisplayRoles.count() == KNumOfInfoDisplayRoles) { - QVERIFY(0 <= infoDisplayRoles.indexOf( - InfoWidgetLayoutManager::RoleContent)); - QVERIFY(0 <= infoDisplayRoles.indexOf( - InfoWidgetLayoutManager::RoleSpnLabel)); - QVERIFY(0 <= infoDisplayRoles.indexOf( - InfoWidgetLayoutManager::RoleMcnMarqueeItem)); - QVERIFY(0 <= infoDisplayRoles.indexOf( - InfoWidgetLayoutManager::RoleSatMarqueeItem)); - QVERIFY(0 <= infoDisplayRoles.indexOf( - InfoWidgetLayoutManager::RoleSpnIcon)); - QVERIFY(0 <= infoDisplayRoles.indexOf( - InfoWidgetLayoutManager::RoleMcnIcon)); - QVERIFY(0 <= infoDisplayRoles.indexOf( - InfoWidgetLayoutManager::RoleSatTextIcon)); - } -} - -/*! - UT_InfoWidgetLayoutManager::t_loadWidgets - */ -void UT_InfoWidgetLayoutManager::t_loadWidgets() -{ - QObjectList list = QObjectList(); - EXPECT(HbDocumentLoader::load) - .willOnce(invoke(this, &fillParams)).returns(list); - - const QList settingDisplayRoles = - m_layoutManager->widgetRoles(InfoWidgetLayoutManager::SettingsDisplay); - bool loadResult = m_layoutManager->loadWidgets(InfoWidgetLayoutManager::SettingsDisplay, - settingDisplayRoles, - m_layoutManager->m_infoDisplayWidgets); - - QVERIFY(!loadResult); -} - -/*! - UT_InfoWidgetLayoutManager::t_loadWidget - */ -void UT_InfoWidgetLayoutManager::t_loadWidget() -{ - QGraphicsWidget *currentWidget; - InfoWidgetLayoutManager::LayoutItemRole currentRole; - - QList - infoDisplayWidgetRoles = m_layoutManager->widgetRoles( - InfoWidgetLayoutManager::InfoDisplay); - - infoDisplayWidgetRoles.append(InfoWidgetLayoutManager::RoleUndefined); - infoDisplayWidgetRoles.append(InfoWidgetLayoutManager::RoleContainer); - - - foreach (currentRole, infoDisplayWidgetRoles) { - currentWidget = m_layoutManager->loadWidget(*m_documentLoader, - InfoWidgetLayoutManager::InfoDisplay, - currentRole); - QVERIFY(!currentWidget); - } - - QList - settingsDisplayWidgetRoles = m_layoutManager->widgetRoles( - InfoWidgetLayoutManager::SettingsDisplay); - - foreach (currentRole, settingsDisplayWidgetRoles) { - currentWidget = m_layoutManager->loadWidget(*m_documentLoader, - InfoWidgetLayoutManager::SettingsDisplay, - currentRole); - QVERIFY(!currentWidget); - } - - currentWidget = m_layoutManager->loadWidget(*m_documentLoader, - (InfoWidgetLayoutManager::DisplayRole)2, - InfoWidgetLayoutManager::RoleLastEnum ); - - QVERIFY(!currentWidget); -} - -/*! - UT_InfoWidgetLayoutManager::t_getWidget - */ -void UT_InfoWidgetLayoutManager::t_getWidget() -{ - fillCurrentWidgetsContainer(); - - QVERIFY(!m_layoutManager->getWidget(InfoWidgetLayoutManager::RoleUndefined)); - QVERIFY(m_layoutManager->getWidget(InfoWidgetLayoutManager::RoleContent)); - QVERIFY(!m_layoutManager->getWidget(InfoWidgetLayoutManager::RoleLastEnum)); -} - -/*! - UT_InfoWidgetLayoutManager::t_removeWidget - */ -void UT_InfoWidgetLayoutManager::t_removeWidget() -{ - fillCurrentWidgetsContainer(); - - m_layoutManager->removeWidget(InfoWidgetLayoutManager::RoleUndefined); - m_layoutManager->removeWidget(InfoWidgetLayoutManager::RoleContent); - m_layoutManager->removeWidget(InfoWidgetLayoutManager::RoleLastEnum); - - QVERIFY(verify()); -} - - -/*! - UT_InfoWidgetLayoutManager::t_contentWidget - */ -void UT_InfoWidgetLayoutManager::t_contentWidget() -{ - fillCurrentWidgetsContainer(); - - QVERIFY(m_layoutManager->contentWidget()); -} - - -/*! - UT_InfoWidgetLayoutManager::t_hideWidget - */ -void UT_InfoWidgetLayoutManager::t_hideWidget() -{ - fillCurrentWidgetsContainer(); - - m_layoutManager->hideWidget(InfoWidgetLayoutManager::RoleUndefined); - m_layoutManager->hideWidget(InfoWidgetLayoutManager::RoleContent); - m_layoutManager->hideWidget(InfoWidgetLayoutManager::RoleLastEnum); - - QVERIFY(verify()); -} - - -/*! - UT_InfoWidgetLayoutManager::t_hideAll - */ -void UT_InfoWidgetLayoutManager::t_hideAll() -{ - m_layoutManager->hideAll(); - - QVERIFY(verify()); -} - - -/*! - UT_InfoWidgetLayoutManager::t_showAll - */ -void UT_InfoWidgetLayoutManager::t_showAll() -{ - fillCurrentWidgetsContainer();//times 2 HbDocumentLoader::load - m_layoutManager->showAll(); - - QVERIFY(verify()); -} - -/*! - UT_InfoWidgetLayoutManager::t_reloadWidgets - */ -void UT_InfoWidgetLayoutManager::t_reloadWidgets() -{ - QVERIFY(!m_layoutManager->reloadWidgets(InfoWidgetLayoutManager::SettingsDisplay)); - QVERIFY(!m_layoutManager->reloadWidgets((InfoWidgetLayoutManager::DisplayRole)101)); -} - -/*! - UT_InfoWidgetLayoutManager::t_destroyObjects - */ -void UT_InfoWidgetLayoutManager::t_destroyObjects() -{ - m_layoutManager->destroyObjects(); - - QGraphicsWidget *widgetInfo = new QGraphicsWidget(); - QGraphicsWidget *widgetSettings = new QGraphicsWidget(); - m_layoutManager->m_infoDisplayWidgets.insert(InfoWidgetLayoutManager::RoleContent, widgetInfo); - m_layoutManager->m_settingsDisplayWidgets.insert(InfoWidgetLayoutManager::RoleContent, widgetSettings); - m_layoutManager->destroyObjects(); - - QVERIFY(verify()); -} - -/*! - UT_InfoWidgetLayoutManager::t_createObject - */ -void UT_InfoWidgetLayoutManager::t_createObject() -{ - QObject *object = m_documentLoader->createObject(QString(), QString()); - QVERIFY(!object); - object = m_documentLoader->createObject(KMargueeItemClassName, QString()); - QVERIFY(object); - delete object; - - //For destructor coverage - delete m_layoutManager->m_documentLoader; - m_layoutManager->m_documentLoader = NULL; -} - -QTEST_MAIN_S60(UT_InfoWidgetLayoutManager) diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetlayoutmanager/ut_infowidgetlayoutmanager.pro --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetlayoutmanager/ut_infowidgetlayoutmanager.pro Fri Jun 04 10:19:18 2010 +0100 +++ /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 "Eclipse Public License v1.0" -# which accompanies 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 unit test component -CONFIG += qtestlib \ - hb -TEMPLATE = app -TARGET = -DEPENDPATH += . \ - ../../infowidget/src \ - ../../infowidget/inc -INCLUDEPATH += . -INCLUDEPATH += ../common -INCLUDEPATH += ../../inc/ -INCLUDEPATH += ../../infowidget/inc/ -DEFINES += XQSETTINGSMANAGER_NO_LIBRARY -DEFINES += QT_NO_DEBUG_STREAM -QT -= gui -QT += testlib -symbian: { - CONFIG += no_icon - INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE - LIBS += -lmocklib \ - -lsymbianmock \ - -lcpframework -} - -# test code -HEADERS += ./inc/ut_infowidgetlayoutmanager.h -SOURCES += ./src/ut_infowidgetlayoutmanager.cpp - -# code to be tested -HEADERS += ../../infowidget/inc/infowidgetlayoutmanager.h -SOURCES += ../../infowidget/src/infowidgetlayoutmanager.cpp - -# mocks needed for testing -SOURCES += ../mocks/mock_hbdocumentloader.cpp -SOURCES += ../mocks/mock_hbmarqueeitem.cpp -SOURCES += ../mocks/mock_hbstyle.cpp -#SOURCES += ../mocks/mock_hbwidget.cpp -RESOURCES = ../../infowidgetprovider.qrc diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetlinehandler/inc/ut_infowidgetlinehandler.h --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetlinehandler/inc/ut_infowidgetlinehandler.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,50 +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: -* -*/ - -#ifndef UT_INFOWIDGETLINEHANDLER_H -#define UT_INFOWIDGETLINEHANDLER_H - -#include -#include - -class InfoWidgetLineHandler; - -class UT_InfoWidgetLineHandler : public QObject, public MockService -{ - Q_OBJECT - -public: - - UT_InfoWidgetLineHandler(); - ~UT_InfoWidgetLineHandler(); - -private slots: - - void init(); - void cleanup(); - - void t_logCurrentInfo(); - void t_activeLine(); - void t_setActiveLine(); - -private: - - InfoWidgetLineHandler *m_lineHandler; - -}; - -#endif // UT_INFOWIDGETLINEHANDLER_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetlinehandler/run_auto_tests_qt.bat --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetlinehandler/run_auto_tests_qt.bat Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,192 +0,0 @@ -rem -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: -rem - -@echo off -setlocal -goto :startup - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function DEFAULT -:: -:: Modify this function -:: - TESTED_SRC can be changed to match tested code. -:: Specifies path from testcode group directory to -:: tested code -:: - Add test directories to be runned -:: ie. "call :build ut_projectdirectory" or use -:: "for /f %%a in ('dir /b ut_*') do call :build %%a" -:: which compiles, instruments and runs all test directories -:: starting with "ut_". -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:DEFAULT -set TESTED_SRC=..\..\infowidget\src\*.cpp - -for /f %%a in ('dir /b ut_*') do call :build %%a -if [%DOMODULESTESTS%] EQU [TRUE] ( -for /f %%a in ('dir /b mt_*') do call :build %%a -) - -call :finish -goto :END - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function STARTUP -:: -:: Initializing script -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:STARTUP - -set BUILDTESTS=TRUE -set RUNTESTS=TRUE -set INSTRUMENT=TRUE -set REMOVEINSTRUMENT=TRUE -set DOMODULESTESTS=TRUE -set ABLD_CALL= -2comp sbs.bat -c winscw_udeb --keepgoing -set PATH_TO_DLL=\epoc32\release\winscw\udeb -set PATH_TO_COVERAGE_DATA=\coverage_data -set PATH_TO_RESULT=\test_result - -if not exist %PATH_TO_COVERAGE_DATA% ( -mkdir %PATH_TO_COVERAGE_DATA% -) - -if not exist %PATH_TO_RESULT% ( -mkdir %PATH_TO_RESULT% -) - -if [%1] EQU [] ( goto default ) - -call :%1 -call :%2 -call :%3 -call :%4 -call :%5 -echo Running tests = %RUNTESTS% -echo Instrumenting tests = %INSTRUMENT% -goto default - -:/NOCLEANUP -set REMOVEINSTRUMENT=FALSE -goto end - -:/NORUN -set RUNTESTS=FALSE -set REMOVEINSTRUMENT=FALSE -goto end - -:/NOINSTRUMENT -set INSTRUMENT=FALSE -goto end - -:/NOBUILD -set BUILDTESTS=FALSE -goto end - -:/ONLYUNITTESTS -set DOMODULESTESTS=FALSE -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function FINISH -:: -:: Finishes run_auto_tests.bat -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:FINISH - -if [%RUNTESTS%] EQU [TRUE] ( -call :runtests -) - -if [%INSTRUMENT%] EQU [TRUE] ( -call :calculatecoverage -) - -if [%REMOVEINSTRUMENT%] EQU [TRUE] ( -call :removecoverage -) -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function BUILD -:: param directory -:: -:: builds test from given directory -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:BUILD -setlocal -if [%BUILDTESTS%] EQU [FALSE] ( goto end ) -echo Building %1 -if not exist %1 ( -echo %1 Not found! -goto end -) - -pushd . -call cd %1 -call qmake -call sbs -c winscw_udeb clean -if [%INSTRUMENT%] EQU [TRUE] ( -call ctcwrap -n %PATH_TO_COVERAGE_DATA%\%1 -i d -C "EXCLUDE=*" -C "NO_EXCLUDE=%TESTED_SRC%" %ABLD_CALL% -) else ( -call %ABLD_CALL% -) - -popd -endlocal -goto end - - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function RUNTESTS -:: -:: NOTE! Function assumes that test binary is named according to test directory. -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:RUNTESTS -echo Running tests -call %PATH_TO_DLL%\ut_infowidgetlinehandler.exe -dtextshell -- -move \epoc32\winscw\c\data\ut_infowidgetlinehandler.log %PATH_TO_RESULT%\ut_infowidgetlinehandler.log -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function CALCULATECOVERAGE -:: -:: Calculates test coverage. Generates html -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:CALCULATECOVERAGE -echo Calculating coverage -ctcpost %PATH_TO_COVERAGE_DATA%\*.sym | ctcmerge -i - -o profile.txt -call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function REMOVECOVERAGE -:: -:: Removes data from coverage directory -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:REMOVECOVERAGE -echo Removing deleting coverage data -call del %PATH_TO_COVERAGE_DATA%\*.sym -call del %PATH_TO_COVERAGE_DATA%\*.dat -call del profile.txt -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function END -:: -:: Prints done -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:END -echo Done! \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetlinehandler/src/ut_infowidgetlinehandler.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetlinehandler/src/ut_infowidgetlinehandler.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,91 +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 "ut_infowidgetlinehandler.h" -#include "infowidgetlinehandler.h" -#include "qtestmains60.h" - -/*! - UT_InfoWidgetLineHandler::UT_InfoWidgetLineHandler - */ -UT_InfoWidgetLineHandler::UT_InfoWidgetLineHandler() - : - m_lineHandler(0) -{ - -} - - -/*! - UT_InfoWidgetLineHandler::~UT_InfoWidgetLineHandler - */ -UT_InfoWidgetLineHandler::~UT_InfoWidgetLineHandler() -{ - delete m_lineHandler; -} - -/*! - UT_InfoWidgetLineHandler::init - */ -void UT_InfoWidgetLineHandler::init() -{ - initialize(); - - m_lineHandler = new InfoWidgetLineHandler(); - - QVERIFY(verify()); -} - - -/*! - UT_InfoWidgetLineHandler::cleanup - */ -void UT_InfoWidgetLineHandler::cleanup() -{ - reset(); - - delete m_lineHandler; - m_lineHandler = 0; -} - -/*! - UT_InfoWidgetLineHandler::t_logCurrentInfo - */ -void UT_InfoWidgetLineHandler::t_logCurrentInfo() -{ - m_lineHandler->logCurrentInfo(); -} - - -/*! - UT_InfoWidgetLineHandler::t_activeLine - */ -void UT_InfoWidgetLineHandler::t_activeLine() -{ - int activeLine = m_lineHandler->activeLine(); -} - - -/*! - UT_InfoWidgetLineHandler::t_setActiveLine - */ -void UT_InfoWidgetLineHandler::t_setActiveLine() -{ - const int KActiveLine = 0; - m_lineHandler->setActiveLine(KActiveLine); -} - -QTEST_MAIN_S60(UT_InfoWidgetLineHandler) diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetlinehandler/ut_infowidgetlinehandler.pro --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetlinehandler/ut_infowidgetlinehandler.pro Fri Jun 04 10:19:18 2010 +0100 +++ /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 "Eclipse Public License v1.0" -# which accompanies 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 unit test component -# -# - -CONFIG += qtestlib hb -TEMPLATE = app -TARGET = -DEPENDPATH += . ../../infowidget/src -INCLUDEPATH += . -INCLUDEPATH += ../common -INCLUDEPATH += ../../inc/ -INCLUDEPATH += ../../infowidget/inc/ - -QT -= gui -QT += testlib - -symbian: { - CONFIG += no_icon - INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE - LIBS += -lmocklib \ - -lsymbianmock \ - -lcpframework -} - -# test code -HEADERS += ./inc/ut_infowidgetlinehandler.h -SOURCES += ./src/ut_infowidgetlinehandler.cpp - -# code to be tested -HEADERS += ../../infowidget/inc/infowidgetlinehandler.h -SOURCES += ../../infowidget/src/infowidgetlinehandler.cpp - -# mocks needed for testing -#SOURCES += ../mocks/mock_networkhandlingproxy.cpp diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetnetworkhandler/inc/ut_infowidgetnetworkhandler.h --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetnetworkhandler/inc/ut_infowidgetnetworkhandler.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,75 +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: -* -*/ - -#ifndef UT_INFOWIDGETNETWORKHANDLER_H -#define UT_INFOWIDGETNETWORKHANDLER_H - -#include -#include - -class MNWMessageObserver; -class InfoWidgetNetworkHandler; -class TNWInfo; - -class UT_InfoWidgetNetworkHandler : public QObject, public MockService -{ - Q_OBJECT - -public: - - UT_InfoWidgetNetworkHandler(); - ~UT_InfoWidgetNetworkHandler(); - -public slots: - void generateException(); - void doLeaveL(); - -private slots: - - void init(); - void cleanup(); - - void t_homeZoneTextTag(); - void t_homeZoneIndicatorType(); - void t_mcnName(); - void t_mcnIndicatorType(); - void t_isOnline(); - void t_networkRegistrationStatus(); - void t_HandleNetworkMessage(); - void t_HandleNetworkMessageExceptionWhileEmittingSignal(); - void t_HandleNetworkError(); - void t_HandleNetworkErrorExceptionWhileEmittingSignal(); - void t_resume(); - void t_suspend(); - void t_serviceProviderName(); - void t_serviceProviderNameDisplayRequired(); - void t_logCurrentInfo(); - void t_createLeave(); - -private: - - void initializeNetworkInfo( - MNWMessageObserver& aMessage, - TNWInfo& aTNWInfo); - -private: - - InfoWidgetNetworkHandler *m_networkHandler; - -}; - -#endif // UT_INFOWIDGETNETWORKHANDLER_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetnetworkhandler/run_auto_tests_qt.bat --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetnetworkhandler/run_auto_tests_qt.bat Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,192 +0,0 @@ -rem -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: -rem - -@echo off -setlocal -goto :startup - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function DEFAULT -:: -:: Modify this function -:: - TESTED_SRC can be changed to match tested code. -:: Specifies path from testcode group directory to -:: tested code -:: - Add test directories to be runned -:: ie. "call :build ut_projectdirectory" or use -:: "for /f %%a in ('dir /b ut_*') do call :build %%a" -:: which compiles, instruments and runs all test directories -:: starting with "ut_". -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:DEFAULT -set TESTED_SRC=..\..\infowidget\src\*.cpp - -for /f %%a in ('dir /b ut_*') do call :build %%a -if [%DOMODULESTESTS%] EQU [TRUE] ( -for /f %%a in ('dir /b mt_*') do call :build %%a -) - -call :finish -goto :END - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function STARTUP -:: -:: Initializing script -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:STARTUP - -set BUILDTESTS=TRUE -set RUNTESTS=TRUE -set INSTRUMENT=TRUE -set REMOVEINSTRUMENT=TRUE -set DOMODULESTESTS=TRUE -set ABLD_CALL= -2comp sbs.bat -c winscw_udeb --keepgoing -set PATH_TO_DLL=\epoc32\release\winscw\udeb -set PATH_TO_COVERAGE_DATA=\coverage_data -set PATH_TO_RESULT=\test_result - -if not exist %PATH_TO_COVERAGE_DATA% ( -mkdir %PATH_TO_COVERAGE_DATA% -) - -if not exist %PATH_TO_RESULT% ( -mkdir %PATH_TO_RESULT% -) - -if [%1] EQU [] ( goto default ) - -call :%1 -call :%2 -call :%3 -call :%4 -call :%5 -echo Running tests = %RUNTESTS% -echo Instrumenting tests = %INSTRUMENT% -goto default - -:/NOCLEANUP -set REMOVEINSTRUMENT=FALSE -goto end - -:/NORUN -set RUNTESTS=FALSE -set REMOVEINSTRUMENT=FALSE -goto end - -:/NOINSTRUMENT -set INSTRUMENT=FALSE -goto end - -:/NOBUILD -set BUILDTESTS=FALSE -goto end - -:/ONLYUNITTESTS -set DOMODULESTESTS=FALSE -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function FINISH -:: -:: Finishes run_auto_tests.bat -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:FINISH - -if [%RUNTESTS%] EQU [TRUE] ( -call :runtests -) - -if [%INSTRUMENT%] EQU [TRUE] ( -call :calculatecoverage -) - -if [%REMOVEINSTRUMENT%] EQU [TRUE] ( -call :removecoverage -) -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function BUILD -:: param directory -:: -:: builds test from given directory -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:BUILD -setlocal -if [%BUILDTESTS%] EQU [FALSE] ( goto end ) -echo Building %1 -if not exist %1 ( -echo %1 Not found! -goto end -) - -pushd . -call cd %1 -call qmake -call sbs -c winscw_udeb clean -if [%INSTRUMENT%] EQU [TRUE] ( -call ctcwrap -n %PATH_TO_COVERAGE_DATA%\%1 -i d -C "EXCLUDE=*" -C "NO_EXCLUDE=%TESTED_SRC%" %ABLD_CALL% -) else ( -call %ABLD_CALL% -) - -popd -endlocal -goto end - - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function RUNTESTS -:: -:: NOTE! Function assumes that test binary is named according to test directory. -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:RUNTESTS -echo Running tests -call %PATH_TO_DLL%\ut_infowidgetnetworkhandler.exe -dtextshell -- -move \epoc32\winscw\c\data\ut_infowidgetnetworkhandler.log %PATH_TO_RESULT%\ut_infowidgetnetworkhandler.log -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function CALCULATECOVERAGE -:: -:: Calculates test coverage. Generates html -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:CALCULATECOVERAGE -echo Calculating coverage -ctcpost %PATH_TO_COVERAGE_DATA%\*.sym | ctcmerge -i - -o profile.txt -call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function REMOVECOVERAGE -:: -:: Removes data from coverage directory -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:REMOVECOVERAGE -echo Removing deleting coverage data -call del %PATH_TO_COVERAGE_DATA%\*.sym -call del %PATH_TO_COVERAGE_DATA%\*.dat -call del profile.txt -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function END -:: -:: Prints done -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:END -echo Done! \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetnetworkhandler/src/ut_infowidgetnetworkhandler.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetnetworkhandler/src/ut_infowidgetnetworkhandler.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,403 +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 -#include -#include "qtestmains60.h" -#include -#include -#include "ut_infowidgetnetworkhandler.h" -#define private public -#include "infowidgetnetworkhandler.h" - -#define EXPECT_EXCEPTION(statements) \ -{ \ - bool exceptionDetected = false; \ - try { \ - statements \ - } catch (...) { \ - exceptionDetected = true; \ - } \ - QVERIFY(true == exceptionDetected); \ -} - -const QString KHomeZoneTextTag("HomeZoneText0"); // max length 13 -const TNWViagIndicatorType - KHomeZoneIndicatorType = ENWViagIndicatorTypeHomeZone; - -const QString KMcnName("McnNameMcnNameMcnNam"); // max length 20 -const TNWMCNIndicatorType - KMcnIndicatorType = ENWMCNIndicatorTypeActive; - - -/*! - UT_InfoWidgetNetworkHandler::UT_InfoWidgetNetworkHandler - */ -UT_InfoWidgetNetworkHandler::UT_InfoWidgetNetworkHandler() - : - m_networkHandler(0) -{ - -} - - -/*! - UT_InfoWidgetNetworkHandler::~UT_InfoWidgetNetworkHandler - */ -UT_InfoWidgetNetworkHandler::~UT_InfoWidgetNetworkHandler() -{ - delete m_networkHandler; -} - -/*! - UT_InfoWidgetNetworkHandler::doLeaveL - */ -void UT_InfoWidgetNetworkHandler::doLeaveL() -{ - User::Leave(KErrGeneral); -} - -/*! - UT_InfoWidgetNetworkHandler::generateException - */ -void UT_InfoWidgetNetworkHandler::generateException() -{ - throw std::bad_alloc(); -} - -/*! - UT_InfoWidgetNetworkHandler::init - */ -void UT_InfoWidgetNetworkHandler::init() -{ - initialize(); - - SmcDefaultValue::SetL(""); - SmcDefaultValue::SetL(""); - QVariant i(1); - EXPECT(XQSettingsManager::readItemValue).returns(i); - EXPECT(CreateL).willOnce(invoke(this, &initializeNetworkInfo)); - m_networkHandler = new InfoWidgetNetworkHandler(); - - QVERIFY(verify()); -} - - -/*! - UT_InfoWidgetNetworkHandler::cleanup - */ -void UT_InfoWidgetNetworkHandler::cleanup() -{ - reset(); - - QVariant i(1); - EXPECT(XQSettingsManager::readItemValue).returns(i); - delete m_networkHandler; - m_networkHandler = 0; - - QVERIFY(verify()); -} - -/*! - UT_InfoWidgetNetworkHandler::t_homeZoneTextTag - */ -void UT_InfoWidgetNetworkHandler::t_homeZoneTextTag() -{ - QVariant i(1); - EXPECT(XQSettingsManager::readItemValue).returns(i); - - QVERIFY(m_networkHandler->homeZoneTextTag() == KHomeZoneTextTag); -} - - -/*! - UT_InfoWidgetNetworkHandler::t_homeZoneIndicatorType - */ -void UT_InfoWidgetNetworkHandler::t_homeZoneIndicatorType() -{ - QVERIFY( - m_networkHandler->homeZoneIndicatorType() == KHomeZoneIndicatorType); -} - - -/*! - UT_InfoWidgetNetworkHandler::t_mcnName - */ -void UT_InfoWidgetNetworkHandler::t_mcnName() -{ - QVERIFY(m_networkHandler->mcnName() == KMcnName); -} - - -/*! - UT_InfoWidgetNetworkHandler::t_mcnIndicatorType - */ -void UT_InfoWidgetNetworkHandler::t_mcnIndicatorType() -{ - QVERIFY(m_networkHandler->mcnIndicatorType() == KMcnIndicatorType); -} - - -/*! - UT_InfoWidgetNetworkHandler::t_isOnline - */ -void UT_InfoWidgetNetworkHandler::t_isOnline() -{ - m_networkHandler->m_nwInfo.iRegistrationStatus = - static_cast(ENWRegisteredBusy); - QVERIFY(m_networkHandler->isOnline() == true); - m_networkHandler->m_nwInfo.iRegistrationStatus = - static_cast(ENWRegisteredOnHomeNetwork); - QVERIFY(m_networkHandler->isOnline() == true); - m_networkHandler->m_nwInfo.iRegistrationStatus = - static_cast(ENWRegisteredRoaming); - QVERIFY(m_networkHandler->isOnline() == true); - - m_networkHandler->m_nwInfo.iRegistrationStatus = - static_cast(ENWRegistrationUnknown); - QVERIFY(m_networkHandler->isOnline() == false); -} - - -/*! - UT_InfoWidgetNetworkHandler::t_networkRegistrationStatus - */ -void UT_InfoWidgetNetworkHandler::t_networkRegistrationStatus() -{ - m_networkHandler->m_nwInfo.iRegistrationStatus = - static_cast(ENWRegistrationUnknown); - QVERIFY(m_networkHandler->networkRegistrationStatus() == 0); -} - - -/*! - UT_InfoWidgetNetworkHandler::t_HandleNetworkMessage - */ -void UT_InfoWidgetNetworkHandler::t_HandleNetworkMessage() -{ - QSignalSpy spy(m_networkHandler, SIGNAL(networkDataChanged())); - - // TODO: investigate, which messages indicate cell info change -// ACCEPTED MESSAGES - m_networkHandler->HandleNetworkMessage( - MNWMessageObserver::ENWMessageCurrentCellInfoMessage); - -// MESSAGES TO BE FILTERED OUT -// COMMON NETWORK MESSAGES 0 - 99 - m_networkHandler->HandleNetworkMessage( - MNWMessageObserver::ENWMessageNetworkInfoChange); - m_networkHandler->HandleNetworkMessage( - MNWMessageObserver::ENWMessageNetworkModeChange); - m_networkHandler->HandleNetworkMessage( - MNWMessageObserver::ENWMessageNetworkRegistrationStatusChange); - m_networkHandler->HandleNetworkMessage( - MNWMessageObserver::ENWMessageProgrammableOperatorInfoChange); - m_networkHandler->HandleNetworkMessage( - MNWMessageObserver::ENWMessageNetworkProviderNameChange); - m_networkHandler->HandleNetworkMessage( - MNWMessageObserver::ENWMessageServiceProviderNameChange); - m_networkHandler->HandleNetworkMessage( - MNWMessageObserver::ENWMessageProgrammableOperatorInfoUpdating); - m_networkHandler->HandleNetworkMessage( - MNWMessageObserver::ENWMessageNetworkProviderNameUpdating); - m_networkHandler->HandleNetworkMessage( - MNWMessageObserver::ENWMessageServiceProviderNameUpdating); - m_networkHandler->HandleNetworkMessage( - MNWMessageObserver::ENWMessageAllowRefresh); - m_networkHandler->HandleNetworkMessage( - MNWMessageObserver::ENWMessageNetworkSelectionSettingChange); -// GSM SPECIFIC MESSAGES 100 - 199 - m_networkHandler->HandleNetworkMessage( - MNWMessageObserver::ENWMessageNetworkCellReselection); - m_networkHandler->HandleNetworkMessage( - MNWMessageObserver::ENWMessageNetworkConnectionFailure); -// m_networkHandler->HandleNetworkMessage( -// MNWMessageObserver::ENWMessageCurrentCellInfoMessage); - m_networkHandler->HandleNetworkMessage( - MNWMessageObserver::ENWMessageCurrentHomeZoneMessage); - m_networkHandler->HandleNetworkMessage( - MNWMessageObserver::ENWMessageNetworkIndicatorChange); -// CDMA SPECIFIC MESSAGES 200 - 299 - m_networkHandler->HandleNetworkMessage( - MNWMessageObserver::ENWMessageNetworkEmergencyMode); - m_networkHandler->HandleNetworkMessage( - MNWMessageObserver::ENWMessageVoicePrivacyStatusChange); - m_networkHandler->HandleNetworkMessage( - MNWMessageObserver::ENWMessageStartSystemSearchRequestCompleteOk); - m_networkHandler->HandleNetworkMessage( - MNWMessageObserver::ENWMessageStartSystemSearchRequestCompleteFail); - m_networkHandler->HandleNetworkMessage( - MNWMessageObserver::ENWMessageStopProtocolStackRequestCompleteOk); - m_networkHandler->HandleNetworkMessage( - MNWMessageObserver::ENWMessageStopProtocolStackRequestCompleteFail); - - const int KExpectedNumOfSignalEmissions = 3; - QCOMPARE(spy.count(), KExpectedNumOfSignalEmissions); - - const QList &arguments = spy.at(0); - QCOMPARE(arguments.count(), 0); -} - - -/*! - UT_InfoWidgetNetworkHandler::t_HandleNetworkMessageExceptionWhileEmittingSignal - */ -void UT_InfoWidgetNetworkHandler::t_HandleNetworkMessageExceptionWhileEmittingSignal() -{ - QObject::connect( - m_networkHandler, SIGNAL(networkDataChanged()), - this, SLOT(generateException())); - - m_networkHandler->HandleNetworkMessage( - MNWMessageObserver::ENWMessageCurrentCellInfoMessage); - - QVERIFY(verify()); -} - - -/*! - UT_InfoWidgetNetworkHandler::t_HandleNetworkError - */ -Q_DECLARE_METATYPE(MNWMessageObserver::TNWOperation) -void UT_InfoWidgetNetworkHandler::t_HandleNetworkError() -{ - QSignalSpy spy(m_networkHandler, SIGNAL(networkError(int, int))); - qRegisterMetaType - ("MNWMessageObserver::TNWOperation"); - - const int errorCode = -4; - MNWMessageObserver::TNWOperation operation = - MNWMessageObserver::ENWGetServiceProviderName; - m_networkHandler->HandleNetworkError(operation, errorCode); - - operation = MNWMessageObserver::ENWNone; - m_networkHandler->HandleNetworkError(operation, errorCode); - - const int KExpectedNumOfSignalEmissions = 2; - QCOMPARE(spy.count(), KExpectedNumOfSignalEmissions); - const QList &arguments = spy.at(0); - QCOMPARE(arguments.count(), 2); - - QCOMPARE( - qvariant_cast(arguments.at(0)), - operation); - QCOMPARE(arguments.at(1).toInt(), errorCode); -} - - -/*! - UT_InfoWidgetNetworkHandler::t_HandleNetworkErrorExceptionWhileEmittingSignal - */ -void UT_InfoWidgetNetworkHandler::t_HandleNetworkErrorExceptionWhileEmittingSignal() -{ - QObject::connect( - m_networkHandler, SIGNAL(networkError(int, int)), - this, SLOT(generateException())); - - MNWMessageObserver::TNWOperation operation = MNWMessageObserver::ENWNone; - const int errorCode = -4; - m_networkHandler->HandleNetworkError(operation, errorCode); - - QVERIFY(verify()); -} - - -/*! - UT_InfoWidgetNetworkHandler::initializeNetworkInfo - */ -void UT_InfoWidgetNetworkHandler::initializeNetworkInfo( - MNWMessageObserver& /*aObserver*/, TNWInfo& aTNWInfo) -{ - aTNWInfo.iViagTextTag.Copy(KHomeZoneTextTag.utf16()); - aTNWInfo.iViagIndicatorType = KHomeZoneIndicatorType; - - aTNWInfo.iMCNName.Copy(KMcnName.utf16()); - aTNWInfo.iMCNIndicatorType = KMcnIndicatorType; -} - -/*! - UT_InfoWidgetNetworkHandler::t_suspend - */ -void UT_InfoWidgetNetworkHandler::t_suspend() -{ - QVariant i(0); - EXPECT(XQSettingsManager::readItemValue).returns(i); - m_networkHandler->suspend(); - - QVERIFY(verify()); -} - -/*! - UT_InfoWidgetNetworkHandler::t_resume - */ -void UT_InfoWidgetNetworkHandler::t_resume() -{ - QVariant i(0); - bool b = true; - EXPECT(XQSettingsManager::readItemValue).returns(i); - EXPECT(XQSettingsManager::writeItemValue).returns(b); - m_networkHandler->resume(); - - QVERIFY(verify()); -} - -/*! - UT_InfoWidgetNetworkHandler::t_serviceProviderName - */ -void UT_InfoWidgetNetworkHandler::t_serviceProviderName() -{ - QString s = ""; - QCOMPARE(m_networkHandler->serviceProviderName(), s); -} - -/*! - UT_InfoWidgetNetworkHandler::t_serviceProviderNameDisplayRequired - */ -void UT_InfoWidgetNetworkHandler::t_serviceProviderNameDisplayRequired() -{ - m_networkHandler->m_nwInfo.iServiceProviderNameDisplayReq = - RMobilePhone::KDisplaySPNRequired; - QVERIFY(m_networkHandler->serviceProviderNameDisplayRequired() == true); - - m_networkHandler->m_nwInfo.iServiceProviderNameDisplayReq = - RMobilePhone::KDisplaySPNNotRequired; - QVERIFY(m_networkHandler->serviceProviderNameDisplayRequired() == false); -} - -/*! - UT_InfoWidgetNetworkHandler::t_logCurrentInfo - */ -void UT_InfoWidgetNetworkHandler::t_logCurrentInfo() -{ - m_networkHandler->logCurrentInfo(); - - QVERIFY(verify()); -} - -/*! - UT_InfoWidgetNetworkHandler::t_createLeave - */ -void UT_InfoWidgetNetworkHandler::t_createLeave() -{ - QVariant i(1); - EXPECT(XQSettingsManager::readItemValue).returns(i); - EXPECT(CreateL) - .willOnce(invokeWithoutArguments(this, &doLeaveL)); - - EXPECT_EXCEPTION(InfoWidgetNetworkHandler * p = new InfoWidgetNetworkHandler();); -} - -QTEST_MAIN_S60(UT_InfoWidgetNetworkHandler) diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetnetworkhandler/ut_infowidgetnetworkhandler.pro --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetnetworkhandler/ut_infowidgetnetworkhandler.pro Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,53 +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: Project file for building unit test component -# -# - -CONFIG += qtestlib hb -TEMPLATE = app -TARGET = -DEPENDPATH += . ../../infowidget/src -INCLUDEPATH += . -INCLUDEPATH += ../common -INCLUDEPATH += ../../inc/ -INCLUDEPATH += ../../infowidget/inc/ -DEFINES += XQSETTINGSMANAGER_NO_LIBRARY - -QT -= gui -QT += testlib - -symbian: { - CONFIG += no_icon - INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE - LIBS += -lmocklib \ - -lsymbianmock \ - -lcpframework -} - -# test code -HEADERS += ./inc/ut_infowidgetnetworkhandler.h -SOURCES += ./src/ut_infowidgetnetworkhandler.cpp - -# code to be tested -HEADERS += ../../infowidget/inc/infowidgetnetworkhandler.h -SOURCES += ../../infowidget/src/infowidgetnetworkhandler.cpp - -# mocks needed for testing -SOURCES += ../mocks/mock_networkhandlingproxy.cpp - -HEADERS += /epoc32/include/mw/xqsettingskey.h \ - /epoc32/include/mw/xqsettingsmanager.h -SOURCES += ../mocks/mock_xqsettingskey.cpp -SOURCES += ../mocks/mock_xqsettingsmanager.cpp diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetpreferences/inc/ut_infowidgetpreferences.h --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetpreferences/inc/ut_infowidgetpreferences.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,54 +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: -* -*/ - -#ifndef UT_INFOWIDGETPREFERENCES_H -#define UT_INFOWIDGETPREFERENCES_H - -#include -#include - -class InfoWidgetPreferences; - -class UT_InfoWidgetPreferences : public QObject, public MockService -{ - Q_OBJECT - -public: - - UT_InfoWidgetPreferences(); - ~UT_InfoWidgetPreferences(); - -private slots: - - void init(); - void cleanup(); - - void t_storePreferences(); - void t_preference(); - void t_setPreference(); - void t_visibleItemCount(); - void t_isPreferenceSet(); - void t_preferences(); - void t_preferenceNames(); - -private: - - InfoWidgetPreferences *m_infoWidgetPreferences; - -}; - -#endif // UT_INFOWIDGETPREFERENCES_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetpreferences/run_auto_tests_qt.bat --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetpreferences/run_auto_tests_qt.bat Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,192 +0,0 @@ -rem -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: -rem - -@echo off -setlocal -goto :startup - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function DEFAULT -:: -:: Modify this function -:: - TESTED_SRC can be changed to match tested code. -:: Specifies path from testcode group directory to -:: tested code -:: - Add test directories to be runned -:: ie. "call :build ut_projectdirectory" or use -:: "for /f %%a in ('dir /b ut_*') do call :build %%a" -:: which compiles, instruments and runs all test directories -:: starting with "ut_". -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:DEFAULT -set TESTED_SRC=..\..\infowidget\src\*.cpp - -for /f %%a in ('dir /b ut_*') do call :build %%a -if [%DOMODULESTESTS%] EQU [TRUE] ( -for /f %%a in ('dir /b mt_*') do call :build %%a -) - -call :finish -goto :END - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function STARTUP -:: -:: Initializing script -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:STARTUP - -set BUILDTESTS=TRUE -set RUNTESTS=TRUE -set INSTRUMENT=TRUE -set REMOVEINSTRUMENT=TRUE -set DOMODULESTESTS=TRUE -set ABLD_CALL= -2comp sbs.bat -c winscw_udeb --keepgoing -set PATH_TO_DLL=\epoc32\release\winscw\udeb -set PATH_TO_COVERAGE_DATA=\coverage_data -set PATH_TO_RESULT=\test_result - -if not exist %PATH_TO_COVERAGE_DATA% ( -mkdir %PATH_TO_COVERAGE_DATA% -) - -if not exist %PATH_TO_RESULT% ( -mkdir %PATH_TO_RESULT% -) - -if [%1] EQU [] ( goto default ) - -call :%1 -call :%2 -call :%3 -call :%4 -call :%5 -echo Running tests = %RUNTESTS% -echo Instrumenting tests = %INSTRUMENT% -goto default - -:/NOCLEANUP -set REMOVEINSTRUMENT=FALSE -goto end - -:/NORUN -set RUNTESTS=FALSE -set REMOVEINSTRUMENT=FALSE -goto end - -:/NOINSTRUMENT -set INSTRUMENT=FALSE -goto end - -:/NOBUILD -set BUILDTESTS=FALSE -goto end - -:/ONLYUNITTESTS -set DOMODULESTESTS=FALSE -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function FINISH -:: -:: Finishes run_auto_tests.bat -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:FINISH - -if [%RUNTESTS%] EQU [TRUE] ( -call :runtests -) - -if [%INSTRUMENT%] EQU [TRUE] ( -call :calculatecoverage -) - -if [%REMOVEINSTRUMENT%] EQU [TRUE] ( -call :removecoverage -) -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function BUILD -:: param directory -:: -:: builds test from given directory -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:BUILD -setlocal -if [%BUILDTESTS%] EQU [FALSE] ( goto end ) -echo Building %1 -if not exist %1 ( -echo %1 Not found! -goto end -) - -pushd . -call cd %1 -call qmake -call sbs -c winscw_udeb clean -if [%INSTRUMENT%] EQU [TRUE] ( -call ctcwrap -n %PATH_TO_COVERAGE_DATA%\%1 -i d -C "EXCLUDE=*" -C "NO_EXCLUDE=%TESTED_SRC%" %ABLD_CALL% -) else ( -call %ABLD_CALL% -) - -popd -endlocal -goto end - - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function RUNTESTS -:: -:: NOTE! Function assumes that test binary is named according to test directory. -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:RUNTESTS -echo Running tests -call %PATH_TO_DLL%\ut_infowidgetpreferences.exe -dtextshell -- -move \epoc32\winscw\c\data\ut_infowidgetpreferences.log %PATH_TO_RESULT%\ut_infowidgetpreferences.log -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function CALCULATECOVERAGE -:: -:: Calculates test coverage. Generates html -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:CALCULATECOVERAGE -echo Calculating coverage -ctcpost %PATH_TO_COVERAGE_DATA%\*.sym | ctcmerge -i - -o profile.txt -call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function REMOVECOVERAGE -:: -:: Removes data from coverage directory -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:REMOVECOVERAGE -echo Removing deleting coverage data -call del %PATH_TO_COVERAGE_DATA%\*.sym -call del %PATH_TO_COVERAGE_DATA%\*.dat -call del profile.txt -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function END -:: -:: Prints done -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:END -echo Done! \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetpreferences/src/ut_infowidgetpreferences.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetpreferences/src/ut_infowidgetpreferences.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,189 +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 "ut_infowidgetpreferences.h" -#define private public -#include "infowidgetpreferences.h" -#include "qtestmains60.h" - -/*! - UT_InfoWidgetPreferences::UT_InfoWidgetPreferences - */ -UT_InfoWidgetPreferences::UT_InfoWidgetPreferences() - : - m_infoWidgetPreferences(0) -{ - -} - - -/*! - UT_InfoWidgetPreferences::~UT_InfoWidgetPreferences - */ -UT_InfoWidgetPreferences::~UT_InfoWidgetPreferences() -{ - delete m_infoWidgetPreferences; -} - - -/*! - UT_InfoWidgetPreferences::init - */ -void UT_InfoWidgetPreferences::init() -{ - initialize(); - - m_infoWidgetPreferences = new InfoWidgetPreferences(); - - QVERIFY(verify()); -} - - -/*! - UT_InfoWidgetPreferences::cleanup - */ -void UT_InfoWidgetPreferences::cleanup() -{ - reset(); - - delete m_infoWidgetPreferences; - m_infoWidgetPreferences = 0; -} - - -/*! - UT_InfoWidgetPreferences::t_storePreferences - */ -void UT_InfoWidgetPreferences::t_storePreferences() -{ - m_infoWidgetPreferences->storePreferences(); - - m_infoWidgetPreferences->m_options = (InfoWidgetPreferences::Option)1; - m_infoWidgetPreferences->m_validatedOptions = (InfoWidgetPreferences::Option)2; - m_infoWidgetPreferences->storePreferences(); - - QVERIFY(verify()); -} - - -/*! - UT_InfoWidgetPreferences::t_preference - */ -void UT_InfoWidgetPreferences::t_preference() -{ - QString preferenceValue = m_infoWidgetPreferences->preference( - InfoWidgetPreferences::DisplayHomeZone); - QVERIFY(DISPLAY_SETTING_OFF == preferenceValue); - - preferenceValue = m_infoWidgetPreferences->preference( - InfoWidgetPreferences::DisplayMcn); - QVERIFY(DISPLAY_SETTING_OFF == preferenceValue); - - preferenceValue = m_infoWidgetPreferences->preference( - InfoWidgetPreferences::DisplayActiveLine); - QVERIFY(DISPLAY_SETTING_OFF == preferenceValue); - - preferenceValue = m_infoWidgetPreferences->preference( - InfoWidgetPreferences::DisplaySatText); - QVERIFY(DISPLAY_SETTING_OFF == preferenceValue); -} - - -/*! - UT_InfoWidgetPreferences::t_setPreference - */ -void UT_InfoWidgetPreferences::t_setPreference() -{ - m_infoWidgetPreferences->setPreference( - InfoWidgetPreferences::DisplayHomeZone, DISPLAY_SETTING_ON); - QVERIFY(DISPLAY_SETTING_ON == m_infoWidgetPreferences->preference( - InfoWidgetPreferences::DisplayHomeZone)); - - m_infoWidgetPreferences->setPreference( - InfoWidgetPreferences::DisplayMcn, DISPLAY_SETTING_ON); - QVERIFY(DISPLAY_SETTING_ON == m_infoWidgetPreferences->preference( - InfoWidgetPreferences::DisplayMcn)); - - m_infoWidgetPreferences->setPreference( - InfoWidgetPreferences::DisplayActiveLine, DISPLAY_SETTING_ON); - QVERIFY(DISPLAY_SETTING_ON == m_infoWidgetPreferences->preference( - InfoWidgetPreferences::DisplayActiveLine)); - - m_infoWidgetPreferences->setPreference( - InfoWidgetPreferences::DisplaySatText, DISPLAY_SETTING_ON); - QVERIFY(DISPLAY_SETTING_ON == m_infoWidgetPreferences->preference( - InfoWidgetPreferences::DisplaySatText)); - - m_infoWidgetPreferences->setPreference( - InfoWidgetPreferences::DisplaySatText, DISPLAY_SETTING_OFF); - QVERIFY(DISPLAY_SETTING_OFF == m_infoWidgetPreferences->preference( - InfoWidgetPreferences::DisplaySatText)); -} - -/*! - UT_InfoWidgetPreferences::t_visibleItemCount - */ -void UT_InfoWidgetPreferences::t_visibleItemCount() -{ - int visibleItems = m_infoWidgetPreferences->visibleItemCount(); - QVERIFY(visibleItems == 0); - - m_infoWidgetPreferences->setPreference( - InfoWidgetPreferences::DisplayHomeZone, DISPLAY_SETTING_ON); - m_infoWidgetPreferences->setPreference( - InfoWidgetPreferences::DisplayMcn, DISPLAY_SETTING_ON); - m_infoWidgetPreferences->setPreference( - InfoWidgetPreferences::DisplayActiveLine, DISPLAY_SETTING_ON); - m_infoWidgetPreferences->setPreference( - InfoWidgetPreferences::DisplaySatText, DISPLAY_SETTING_ON); - m_infoWidgetPreferences->setPreference( - InfoWidgetPreferences::DisplaySpn, DISPLAY_SETTING_ON); - visibleItems = m_infoWidgetPreferences->visibleItemCount(); - QVERIFY(visibleItems == 5); -} - -/*! - UT_InfoWidgetPreferences::t_isPreferenceSet - */ -void UT_InfoWidgetPreferences::t_isPreferenceSet() -{ - m_infoWidgetPreferences->isPreferenceSet - (InfoWidgetPreferences::DisplayHomeZone); - - QVERIFY(verify()); -} - -/*! - UT_InfoWidgetPreferences::t_preferences - */ -void UT_InfoWidgetPreferences::t_preferences() -{ - m_infoWidgetPreferences->preferences(); - - QVERIFY(verify()); -} - -/*! - UT_InfoWidgetPreferences::t_preferenceNames - */ -void UT_InfoWidgetPreferences::t_preferenceNames() -{ - m_infoWidgetPreferences->preferenceNames(); - - QVERIFY(verify()); -} - -QTEST_MAIN_S60(UT_InfoWidgetPreferences) diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetpreferences/ut_infowidgetpreferences.pro --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetpreferences/ut_infowidgetpreferences.pro Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,46 +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: Project file for building unit test component -# -# - -CONFIG += qtestlib hb -TEMPLATE = app -TARGET = -DEPENDPATH += . ../../infowidget/src ../../infowidget/inc -INCLUDEPATH += . -INCLUDEPATH += ../common -INCLUDEPATH += ../../inc/ -INCLUDEPATH += ../../infowidget/inc/ -DEFINES += XQSETTINGSMANAGER_NO_LIBRARY -DEFINES += QT_NO_DEBUG_STREAM - -QT -= gui -QT += testlib - -symbian: { - CONFIG += no_icon - INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE - LIBS += -lmocklib \ - -lsymbianmock \ - -lcpframework -} - -# test code -HEADERS += ./inc/ut_infowidgetpreferences.h -SOURCES += ./src/ut_infowidgetpreferences.cpp - -# code to be tested -HEADERS += ../../infowidget/inc/infowidgetpreferences.h -SOURCES += ../../infowidget/src/infowidgetpreferences.cpp diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetprovider/inc/ut_infowidgetprovider.h --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetprovider/inc/ut_infowidgetprovider.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,46 +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: -* -*/ - -#ifndef UT_INFOWIDGETPROVIDER_H -#define UT_INFOWIDGETPROVIDER_H - -#include -#include -#include - -QTM_USE_NAMESPACE - -class InfoWidgetProvider; - -class UT_InfoWidgetProvider : public QObject, public MockService -{ - Q_OBJECT - -public: - - UT_InfoWidgetProvider(); - ~UT_InfoWidgetProvider(); - -private slots: - - void init(); - void cleanup(); - void t_createInstance(); - -}; - -#endif // UT_INFOWIDGET_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetprovider/run_auto_tests_qt.bat --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetprovider/run_auto_tests_qt.bat Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,192 +0,0 @@ -rem -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: -rem - -@echo off -setlocal -goto :startup - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function DEFAULT -:: -:: Modify this function -:: - TESTED_SRC can be changed to match tested code. -:: Specifies path from testcode group directory to -:: tested code -:: - Add test directories to be runned -:: ie. "call :build ut_projectdirectory" or use -:: "for /f %%a in ('dir /b ut_*') do call :build %%a" -:: which compiles, instruments and runs all test directories -:: starting with "ut_". -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:DEFAULT -set TESTED_SRC=..\..\src\*.cpp - -for /f %%a in ('dir /b ut_*') do call :build %%a -if [%DOMODULESTESTS%] EQU [TRUE] ( -for /f %%a in ('dir /b mt_*') do call :build %%a -) - -call :finish -goto :END - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function STARTUP -:: -:: Initializing script -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:STARTUP - -set BUILDTESTS=TRUE -set RUNTESTS=TRUE -set INSTRUMENT=TRUE -set REMOVEINSTRUMENT=TRUE -set DOMODULESTESTS=TRUE -set ABLD_CALL= -2comp sbs.bat -c winscw_udeb --keepgoing -set PATH_TO_DLL=\epoc32\release\winscw\udeb -set PATH_TO_COVERAGE_DATA=\coverage_data -set PATH_TO_RESULT=\test_result - -if not exist %PATH_TO_COVERAGE_DATA% ( -mkdir %PATH_TO_COVERAGE_DATA% -) - -if not exist %PATH_TO_RESULT% ( -mkdir %PATH_TO_RESULT% -) - -if [%1] EQU [] ( goto default ) - -call :%1 -call :%2 -call :%3 -call :%4 -call :%5 -echo Running tests = %RUNTESTS% -echo Instrumenting tests = %INSTRUMENT% -goto default - -:/NOCLEANUP -set REMOVEINSTRUMENT=FALSE -goto end - -:/NORUN -set RUNTESTS=FALSE -set REMOVEINSTRUMENT=FALSE -goto end - -:/NOINSTRUMENT -set INSTRUMENT=FALSE -goto end - -:/NOBUILD -set BUILDTESTS=FALSE -goto end - -:/ONLYUNITTESTS -set DOMODULESTESTS=FALSE -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function FINISH -:: -:: Finishes run_auto_tests.bat -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:FINISH - -if [%RUNTESTS%] EQU [TRUE] ( -call :runtests -) - -if [%INSTRUMENT%] EQU [TRUE] ( -call :calculatecoverage -) - -if [%REMOVEINSTRUMENT%] EQU [TRUE] ( -call :removecoverage -) -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function BUILD -:: param directory -:: -:: builds test from given directory -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:BUILD -setlocal -if [%BUILDTESTS%] EQU [FALSE] ( goto end ) -echo Building %1 -if not exist %1 ( -echo %1 Not found! -goto end -) - -pushd . -call cd %1 -call qmake -call sbs -c winscw_udeb clean -if [%INSTRUMENT%] EQU [TRUE] ( -call ctcwrap -n %PATH_TO_COVERAGE_DATA%\%1 -i d -C "EXCLUDE=*" -C "NO_EXCLUDE=%TESTED_SRC%" %ABLD_CALL% -) else ( -call %ABLD_CALL% -) - -popd -endlocal -goto end - - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function RUNTESTS -:: -:: NOTE! Function assumes that test binary is named according to test directory. -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:RUNTESTS -echo Running tests -call %PATH_TO_DLL%\ut_infowidgetprovider.exe -dtextshell -- -move \epoc32\winscw\c\data\ut_infowidgetprovider.log %PATH_TO_RESULT%\ut_infowidgetprovider.log -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function CALCULATECOVERAGE -:: -:: Calculates test coverage. Generates html -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:CALCULATECOVERAGE -echo Calculating coverage -ctcpost %PATH_TO_COVERAGE_DATA%\*.sym | ctcmerge -i - -o profile.txt -call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function REMOVECOVERAGE -:: -:: Removes data from coverage directory -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:REMOVECOVERAGE -echo Removing deleting coverage data -call del %PATH_TO_COVERAGE_DATA%\*.sym -call del %PATH_TO_COVERAGE_DATA%\*.dat -call del profile.txt -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function END -:: -:: Prints done -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:END -echo Done! \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetprovider/src/ut_infowidgetprovider.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetprovider/src/ut_infowidgetprovider.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,119 +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 "ut_infowidgetprovider.h" -#include "infowidgetprovider.h" -#include "qtestmains60.h" - -#include -#include -#include -#include - -Q_EXTERN_C const char * qt_plugin_query_verification_data(); -Q_EXTERN_C ::QObject * qt_plugin_instance(); - -class MyQServiceInterfaceDescriptor : public QServiceInterfaceDescriptor -{}; - -class MyQServiceContext : public QServiceContext -{ -public: - virtual void notify( ContextType type, const QVariant& variant){ - Q_UNUSED(type) - Q_UNUSED(variant) - }; -}; - -class MyQAbstractSecuritySession : public QAbstractSecuritySession -{ -public: - virtual bool isAllowed(const QStringList& capabilityList){ - Q_UNUSED(capabilityList) - return true; - }; -}; - -QString KValidInfoWidgetInterfaceName("com.nokia.IHomeScreenWidget"); -QString KInvalidInfoWidgetInterfaceName("com"); - - -/*! - UT_InfoWidgetProvider::UT_InfoWidgetProvider - */ -UT_InfoWidgetProvider::UT_InfoWidgetProvider() -{ - const char * verificationData = qt_plugin_query_verification_data(); -} - - -/*! - UT_InfoWidgetProvider::~UT_InfoWidgetProvider - */ -UT_InfoWidgetProvider::~UT_InfoWidgetProvider() -{ - -} - - -/*! - UT_InfoWidgetProvider::init - */ -void UT_InfoWidgetProvider::init() -{ - initialize(); - - QVERIFY(verify()); -} - - -/*! - UT_InfoWidgetProvider::cleanup - */ -void UT_InfoWidgetProvider::cleanup() -{ - reset(); - - delete (InfoWidgetProvider*)qt_plugin_instance(); -} - - -void UT_InfoWidgetProvider::t_createInstance() - { - MyQServiceInterfaceDescriptor myServiceInterfaceDescriptor; - MyQServiceContext myQServiceContext; - MyQAbstractSecuritySession myAbstractSecuritySession; - - QObject *instanceValue = NULL; - InfoWidgetProvider* p = (InfoWidgetProvider*)qt_plugin_instance(); - // Test: instance creation with valid interface name - expect("QtMobility::QServiceInterfaceDescriptor::interfaceName").returns(KValidInfoWidgetInterfaceName); - expect("InfoWidget::InfoWidget"); - instanceValue = p->createInstance(myServiceInterfaceDescriptor, - &myQServiceContext, - &myAbstractSecuritySession); - Q_ASSERT(instanceValue); - - // Test: instance creation with invalid interface name - expect("QtMobility::QServiceInterfaceDescriptor::interfaceName").returns(KInvalidInfoWidgetInterfaceName); - instanceValue = p->createInstance(myServiceInterfaceDescriptor, - &myQServiceContext, - &myAbstractSecuritySession); - Q_ASSERT(instanceValue == NULL); - -} - -QTEST_MAIN_S60(UT_InfoWidgetProvider) diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetprovider/ut_infowidgetprovider.pro --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetprovider/ut_infowidgetprovider.pro Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,51 +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: Project file for building unit test component -# -# - -CONFIG += qtestlib hb mobility -MOBILITY = serviceframework -TEMPLATE = app -TARGET = -INCLUDEPATH += . -INCLUDEPATH += ../common -INCLUDEPATH += ../../inc/ -INCLUDEPATH += ../../infowidget/inc/ -DEFINES += QT_NO_DEBUG_STREAM - -QT -= gui -QT += testlib - -symbian: { - CONFIG += no_icon - INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE - LIBS += -lmocklib \ - -lsymbianmock \ - -lhswidgetmodel -} - -# test code -HEADERS += ./inc/ut_infowidgetprovider.h -SOURCES += ./src/ut_infowidgetprovider.cpp - -# code to be tested -HEADERS += ../../inc/infowidgetprovider.h -SOURCES += ../../src/infowidgetprovider.cpp - -# mocks needed for testing -HEADERS += ../../infowidget/inc/infowidget.h -SOURCES += ../mocks/mock_infowidget.cpp -SOURCES += ../mocks/mock_qserviceplugininterface.cpp -SOURCES += ../mocks/mock_qserviceinterfacedescriptor.cpp \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetsathandler/inc/ut_infowidgetsathandler.h --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetsathandler/inc/ut_infowidgetsathandler.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,54 +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: -* -*/ - -#ifndef UT_INFOWIDGETSATHANDLER_H -#define UT_INFOWIDGETSATHANDLER_H - -#include -#include - -class InfoWidgetSatHandler; - -class UT_InfoWidgetSatHandler : public QObject, public MockService -{ - Q_OBJECT - -public: - - UT_InfoWidgetSatHandler(); - ~UT_InfoWidgetSatHandler(); - -private slots: - - void init(); - void cleanup(); - - void t_satDisplayText(); - void t_setSatDisplayText(); - void t_logCurrentInfo(); - - void t_connect(); - void t_handleIdleModeTxtMessage(); - void t_handleSatError(); - -private: - - InfoWidgetSatHandler *m_satHandler; - -}; - -#endif // UT_INFOWIDGETSATHANDLER_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetsathandler/run_auto_tests_qt.bat --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetsathandler/run_auto_tests_qt.bat Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,194 +0,0 @@ -rem -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: -rem - -@echo off -setlocal -goto :startup - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function DEFAULT -:: -:: Modify this function -:: - TESTED_SRC can be changed to match tested code. -:: Specifies path from testcode group directory to -:: tested code -:: - Add test directories to be runned -:: ie. "call :build ut_projectdirectory" or use -:: "for /f %%a in ('dir /b ut_*') do call :build %%a" -:: which compiles, instruments and runs all test directories -:: starting with "ut_". -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:DEFAULT -set TESTED_SRC=..\..\infowidget\src\*.cpp - -for /f %%a in ('dir /b ut_*') do call :build %%a -if [%DOMODULESTESTS%] EQU [TRUE] ( -for /f %%a in ('dir /b mt_*') do call :build %%a -) - -call :finish -goto :END - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function STARTUP -:: -:: Initializing script -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:STARTUP - -set BUILDTESTS=TRUE -set RUNTESTS=TRUE -set INSTRUMENT=TRUE -set REMOVEINSTRUMENT=TRUE -set DOMODULESTESTS=TRUE -set ABLD_CALL= -2comp sbs.bat -c winscw_udeb --keepgoing -set PATH_TO_DLL=\epoc32\release\winscw\udeb -set PATH_TO_COVERAGE_DATA=\coverage_data -set PATH_TO_RESULT=\test_result - -if not exist %PATH_TO_COVERAGE_DATA% ( -mkdir %PATH_TO_COVERAGE_DATA% -) - -if not exist %PATH_TO_RESULT% ( -mkdir %PATH_TO_RESULT% -) - -if [%1] EQU [] ( goto default ) - -call :%1 -call :%2 -call :%3 -call :%4 -call :%5 -echo Running tests = %RUNTESTS% -echo Instrumenting tests = %INSTRUMENT% -goto default - -:/NOCLEANUP -set REMOVEINSTRUMENT=FALSE -goto end - -:/NORUN -set RUNTESTS=FALSE -set REMOVEINSTRUMENT=FALSE -goto end - -:/NOINSTRUMENT -set INSTRUMENT=FALSE -goto end - -:/NOBUILD -set BUILDTESTS=FALSE -goto end - -:/ONLYUNITTESTS -set DOMODULESTESTS=FALSE -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function FINISH -:: -:: Finishes run_auto_tests.bat -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:FINISH - -if [%RUNTESTS%] EQU [TRUE] ( -call :runtests -) - -if [%INSTRUMENT%] EQU [TRUE] ( -call :calculatecoverage -) - -if [%REMOVEINSTRUMENT%] EQU [TRUE] ( -call :removecoverage -) -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function BUILD -:: param directory -:: -:: builds test from given directory -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:BUILD -setlocal -if [%BUILDTESTS%] EQU [FALSE] ( goto end ) -echo Building %1 -if not exist %1 ( -echo %1 Not found! -goto end -) - -pushd . -call cd %1 -call qmake -call sbs -c winscw_udeb clean -if [%INSTRUMENT%] EQU [TRUE] ( -call ctcwrap -n %PATH_TO_COVERAGE_DATA%\%1 -i d -C "EXCLUDE=*" -C "NO_EXCLUDE=%TESTED_SRC%" %ABLD_CALL% -) else ( -call %ABLD_CALL% -) - -popd -endlocal -goto end - - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function RUNTESTS -:: -:: NOTE! Function assumes that test binary is named according to test directory. -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:RUNTESTS -echo Running tests -call %PATH_TO_DLL%\ut_infowidgetsathandler.exe -dtextshell -- - -move \epoc32\winscw\c\data\ut_infowidgetsathandler.log %PATH_TO_RESULT%\ut_infowidgetsathandler.log - -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function CALCULATECOVERAGE -:: -:: Calculates test coverage. Generates html -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:CALCULATECOVERAGE -echo Calculating coverage -ctcpost %PATH_TO_COVERAGE_DATA%\*.sym | ctcmerge -i - -o profile.txt -call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function REMOVECOVERAGE -:: -:: Removes data from coverage directory -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:REMOVECOVERAGE -echo Removing deleting coverage data -call del %PATH_TO_COVERAGE_DATA%\*.sym -call del %PATH_TO_COVERAGE_DATA%\*.dat -call del profile.txt -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function END -:: -:: Prints done -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:END -echo Done! \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetsathandler/src/ut_infowidgetsathandler.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetsathandler/src/ut_infowidgetsathandler.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,132 +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 "ut_infowidgetsathandler.h" -#define private public -#include "infowidgetsathandler.h" -#include "qtestmains60.h" - -/*! - UT_InfoWidgetSatHandler::UT_InfoWidgetSatHandler - */ -UT_InfoWidgetSatHandler::UT_InfoWidgetSatHandler() - : - m_satHandler(0) -{ - -} - - -/*! - UT_InfoWidgetSatHandler::~UT_InfoWidgetSatHandler - */ -UT_InfoWidgetSatHandler::~UT_InfoWidgetSatHandler() -{ - delete m_satHandler; -} - -/*! - UT_InfoWidgetSatHandler::init - */ -void UT_InfoWidgetSatHandler::init() -{ - initialize(); - - m_satHandler = new InfoWidgetSatHandler(); - - QVERIFY(verify()); -} - - -/*! - UT_InfoWidgetSatHandler::cleanup - */ -void UT_InfoWidgetSatHandler::cleanup() -{ - reset(); - - delete m_satHandler; - m_satHandler = 0; -} - - -/*! - UT_InfoWidgetSatHandler::t_satDisplayText - */ -void UT_InfoWidgetSatHandler::t_satDisplayText() -{ - QString satDisplayText("satDisplayText"); - m_satHandler->setSatDisplayText(satDisplayText); - QVERIFY(satDisplayText == m_satHandler->satDisplayText()); -} - - -/*! - UT_InfoWidgetSatHandler::t_setSatDisplayText - */ -void UT_InfoWidgetSatHandler::t_setSatDisplayText() -{ - QString satDisplayText("satDisplayText"); - m_satHandler->setSatDisplayText(satDisplayText); - - QVERIFY(satDisplayText == m_satHandler->satDisplayText()); -} - - -/*! - UT_InfoWidgetSatHandler::t_logCurrentInfo - */ -void UT_InfoWidgetSatHandler::t_logCurrentInfo() -{ - m_satHandler->logCurrentInfo(); - - QVERIFY(verify()); -} - -void UT_InfoWidgetSatHandler::t_connect() -{ - //}else if (!connect && m_connected){ - m_satHandler->m_connected = 1; - m_satHandler->connect(0); - - - m_satHandler->m_connected = 1; - m_satHandler->connect(1); - - //if(connect && !m_connected){ - m_satHandler->m_connected = 0; - m_satHandler->connect(1); - - QVERIFY(verify()); -} -void UT_InfoWidgetSatHandler::t_handleIdleModeTxtMessage() -{ - m_satHandler->m_connected = 0; - m_satHandler->handleIdleModeTxtMessage(0); - m_satHandler->m_connected = 1; - m_satHandler->handleIdleModeTxtMessage(0); - - QVERIFY(verify()); -} -void UT_InfoWidgetSatHandler::t_handleSatError() -{ - m_satHandler->handleSatError(1,1); - - QVERIFY(verify()); -} - - -QTEST_MAIN_S60(UT_InfoWidgetSatHandler) diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetsathandler/ut_infowidgetsathandler.pro --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetsathandler/ut_infowidgetsathandler.pro Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,49 +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: Project file for building unit test component -# -# - -CONFIG += qtestlib hb -TEMPLATE = app -TARGET = -DEPENDPATH += . ../../infowidget/src -INCLUDEPATH += . -INCLUDEPATH += ../common -INCLUDEPATH += ../../inc/ -INCLUDEPATH += ../../infowidget/inc/ - -QT -= gui -QT += testlib - -symbian: { - CONFIG += no_icon - INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE - LIBS += -lmocklib \ - -lsymbianmock \ - -lcpframework -} - -# test code -HEADERS += ./inc/ut_infowidgetsathandler.h -SOURCES += ./src/ut_infowidgetsathandler.cpp - -# code to be tested -HEADERS += ../../infowidget/inc/infowidgetsathandler.h -SOURCES += ../../infowidget/src/infowidgetsathandler.cpp - -# mocks needed for testing -SOURCES += ../mocks/mock_rsatservice.cpp \ - ../mocks/mock_RSatSession.cpp \ - ../mocks/mock_infowidgetsathandlerprivate.cpp \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetsathandlerprivate/inc/ut_infowidgetsathandlerprivate.h --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetsathandlerprivate/inc/ut_infowidgetsathandlerprivate.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,58 +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: -* -*/ - -#ifndef UT_INFOWIDGETSATHANDLERPRIVATE_H -#define UT_INFOWIDGETSATHANDLERPRIVATE_H - -#include -#include -#include - - -class InfoWidgetSatHandlerPrivate; -class InfoWidgetSatHandler; - -class UT_InfoWidgetSatHandlerPrivate : public QObject, public MockService -{ - Q_OBJECT - -public: - - UT_InfoWidgetSatHandlerPrivate(); - ~UT_InfoWidgetSatHandlerPrivate(); - -private slots: - - void init(); - void cleanup(); - - void t_connect(); - void t_disconnect(); - void t_startObserving(); - - void t_runL(); - void t_doCancel(); - -private: - - InfoWidgetSatHandlerPrivate *m_satHandler; - InfoWidgetSatHandler* m_iwSatHandler; - RSatService m_satService; - -}; - -#endif // UT_INFOWIDGETSATHANDLERPRIVATE_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetsathandlerprivate/run_auto_tests_qt.bat --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetsathandlerprivate/run_auto_tests_qt.bat Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,194 +0,0 @@ -rem -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: -rem - -@echo off -setlocal -goto :startup - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function DEFAULT -:: -:: Modify this function -:: - TESTED_SRC can be changed to match tested code. -:: Specifies path from testcode group directory to -:: tested code -:: - Add test directories to be runned -:: ie. "call :build ut_projectdirectory" or use -:: "for /f %%a in ('dir /b ut_*') do call :build %%a" -:: which compiles, instruments and runs all test directories -:: starting with "ut_". -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:DEFAULT -set TESTED_SRC=..\..\infowidget\src\*.cpp - -for /f %%a in ('dir /b ut_*') do call :build %%a -if [%DOMODULESTESTS%] EQU [TRUE] ( -for /f %%a in ('dir /b mt_*') do call :build %%a -) - -call :finish -goto :END - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function STARTUP -:: -:: Initializing script -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:STARTUP - -set BUILDTESTS=TRUE -set RUNTESTS=TRUE -set INSTRUMENT=TRUE -set REMOVEINSTRUMENT=TRUE -set DOMODULESTESTS=TRUE -set ABLD_CALL= -2comp sbs.bat -c winscw_udeb --keepgoing -set PATH_TO_DLL=\epoc32\release\winscw\udeb -set PATH_TO_COVERAGE_DATA=\coverage_data -set PATH_TO_RESULT=\test_result - -if not exist %PATH_TO_COVERAGE_DATA% ( -mkdir %PATH_TO_COVERAGE_DATA% -) - -if not exist %PATH_TO_RESULT% ( -mkdir %PATH_TO_RESULT% -) - -if [%1] EQU [] ( goto default ) - -call :%1 -call :%2 -call :%3 -call :%4 -call :%5 -echo Running tests = %RUNTESTS% -echo Instrumenting tests = %INSTRUMENT% -goto default - -:/NOCLEANUP -set REMOVEINSTRUMENT=FALSE -goto end - -:/NORUN -set RUNTESTS=FALSE -set REMOVEINSTRUMENT=FALSE -goto end - -:/NOINSTRUMENT -set INSTRUMENT=FALSE -goto end - -:/NOBUILD -set BUILDTESTS=FALSE -goto end - -:/ONLYUNITTESTS -set DOMODULESTESTS=FALSE -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function FINISH -:: -:: Finishes run_auto_tests.bat -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:FINISH - -if [%RUNTESTS%] EQU [TRUE] ( -call :runtests -) - -if [%INSTRUMENT%] EQU [TRUE] ( -call :calculatecoverage -) - -if [%REMOVEINSTRUMENT%] EQU [TRUE] ( -call :removecoverage -) -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function BUILD -:: param directory -:: -:: builds test from given directory -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:BUILD -setlocal -if [%BUILDTESTS%] EQU [FALSE] ( goto end ) -echo Building %1 -if not exist %1 ( -echo %1 Not found! -goto end -) - -pushd . -call cd %1 -call qmake -call sbs -c winscw_udeb clean -if [%INSTRUMENT%] EQU [TRUE] ( -call ctcwrap -n %PATH_TO_COVERAGE_DATA%\%1 -i d -C "EXCLUDE=*" -C "NO_EXCLUDE=%TESTED_SRC%" %ABLD_CALL% -) else ( -call %ABLD_CALL% -) - -popd -endlocal -goto end - - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function RUNTESTS -:: -:: NOTE! Function assumes that test binary is named according to test directory. -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:RUNTESTS -echo Running tests -call %PATH_TO_DLL%\ut_infowidgetsathandlerprivate.exe -dtextshell -- - -move \epoc32\winscw\c\data\ut_infowidgetsathandlerprivate.log %PATH_TO_RESULT%\ut_infowidgetsathandlerprivate.log - -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function CALCULATECOVERAGE -:: -:: Calculates test coverage. Generates html -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:CALCULATECOVERAGE -echo Calculating coverage -ctcpost %PATH_TO_COVERAGE_DATA%\*.sym | ctcmerge -i - -o profile.txt -call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function REMOVECOVERAGE -:: -:: Removes data from coverage directory -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:REMOVECOVERAGE -echo Removing deleting coverage data -call del %PATH_TO_COVERAGE_DATA%\*.sym -call del %PATH_TO_COVERAGE_DATA%\*.dat -call del profile.txt -goto end - -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: function END -:: -:: Prints done -:::::::::::::::::::::::::::::::::::::::::::::::::::::: -:END -echo Done! \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetsathandlerprivate/src/ut_infowidgetsathandlerprivate.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetsathandlerprivate/src/ut_infowidgetsathandlerprivate.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,221 +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 "ut_infowidgetsathandlerprivate.h" -#define private public -#include "infowidgetsathandlerprivate.h" -#include "infowidgetsathandler.h" -#include "infowidgetlogging.h" -#include "qtestmains60.h" - -void SimulateLeaveL() -{ - User::Leave(KErrGeneral); -} - -void FillData( HBufC * aText, - RSatService::TSatIconQualifier & aIconQualifier, - TUint8 & aRecordNumber) -{ - _LIT(KText,"Idle Text"); - TPtr p(aText->Des()); - p.Copy(KText); - aIconQualifier=RSatService::ESatIconNotSelfExplanatory; - aRecordNumber=1; -} - -void FillDataNoIcon( HBufC * aText, - RSatService::TSatIconQualifier & aIconQualifier, - TUint8 & aRecordNumber) -{ - Q_UNUSED(aIconQualifier); - Q_UNUSED(aRecordNumber); - _LIT(KText,"Idle Text"); - TPtr p(aText->Des()); - p.Copy(KText); -} - -void FillDataSelfExplIcon( HBufC * aText, - RSatService::TSatIconQualifier & aIconQualifier, - TUint8 & aRecordNumber) -{ - Q_UNUSED(aText); - aIconQualifier=RSatService::ESatIconSelfExplanatory; - aRecordNumber=1; -} - -/*! - UT_InfoWidgetSatHandlerPrivate ::UT_InfoWidgetSatHandlerPrivate - */ -UT_InfoWidgetSatHandlerPrivate::UT_InfoWidgetSatHandlerPrivate () //: -{ - DPRINT << "IN"; - - m_satHandler = 0; - m_iwSatHandler = 0; - - DPRINT << "OUT"; -} - -/*! - UT_InfoWidgetSatHandlerPrivate ::~UT_InfoWidgetSatHandlerPrivate - */ -UT_InfoWidgetSatHandlerPrivate::~UT_InfoWidgetSatHandlerPrivate () -{ - DPRINT << "IN"; - - delete m_satHandler; - delete m_iwSatHandler; - - DPRINT << "OUT"; -} - -/*! - UT_InfoWidgetSatHandlerPrivate ::init - */ -void UT_InfoWidgetSatHandlerPrivate::init() -{ - DPRINT << "IN"; - - initialize(); - m_iwSatHandler = new InfoWidgetSatHandler; - m_satHandler = new InfoWidgetSatHandlerPrivate( m_iwSatHandler, m_satService); - - QVERIFY(verify()); - - DPRINT << "OUT"; -} - -/*! - UT_InfoWidgetSatHandlerPrivate ::cleanup - */ -void UT_InfoWidgetSatHandlerPrivate::cleanup() -{ - DPRINT << "IN"; - - reset(); - delete m_satHandler; - delete m_iwSatHandler; - - DPRINT << "OUT"; -} - -/*! - UT_InfoWidgetSatHandlerPrivate::t_connect - */ -void UT_InfoWidgetSatHandlerPrivate::t_connect() -{ - DPRINT << "IN"; - - expect("RSatSession::ConnectL"); - expect("RSatService::OpenL"); - m_satHandler->connect(); - - expect("RSatSession::ConnectL") - .willOnce(invokeWithoutArguments(SimulateLeaveL)); - m_satHandler->connect(); - - expect("RSatService::OpenL") - .willOnce(invokeWithoutArguments(SimulateLeaveL)); - m_satHandler->connect(); - - QVERIFY(verify()); - - DPRINT << "OUT"; -} - -/*! - UT_InfoWidgetSatHandlerPrivate::t_disconnect - */ -void UT_InfoWidgetSatHandlerPrivate::t_disconnect() -{ - DPRINT << "IN"; - - m_satHandler->disconnect(); - QVERIFY(verify()); - - DPRINT << "OUT"; -} - -/*! - UT_InfoWidgetSatHandlerPrivate::t_startObserving - */ -void UT_InfoWidgetSatHandlerPrivate::t_startObserving() -{ - DPRINT << "IN"; - - int i = KErrGeneral; - expect("RSatService::NotifySetupIdleModeTextChange").returns(i); - expect("RSatService::GetSetupIdleModeTextL") - .willOnce(invoke(FillData)); - m_satHandler->startObserving(); - - expect("RSatService::NotifySetupIdleModeTextChange").returns(i); - expect("RSatService::GetSetupIdleModeTextL") - .willOnce(invoke(FillDataNoIcon)); - m_satHandler->startObserving(); - - expect("RSatService::NotifySetupIdleModeTextChange").returns(i); - expect("RSatService::GetSetupIdleModeTextL") - .willOnce(invoke(FillDataSelfExplIcon)); - m_satHandler->startObserving(); - - expect("RSatService::GetSetupIdleModeTextL") - .willOnce(invokeWithoutArguments(SimulateLeaveL)); - m_satHandler->startObserving(); - - QVERIFY(verify()); - - DPRINT << "OUT"; -} - -/*! - UT_InfoWidgetSatHandlerPrivate::t_runL - */ -void UT_InfoWidgetSatHandlerPrivate::t_runL() -{ - DPRINT << "IN"; - - int i = 1; - expect("RSatService::GetSetupIdleModeTextL") - .willOnce(invoke(FillData)); - expect("RSatService::NotifySetupIdleModeTextChange").returns(i); - m_satHandler->RunL(); - - m_satHandler->iStatus = KErrGeneral; - expect("RSatService::NotifySetupIdleModeTextChange").returns(i); - m_satHandler->RunL(); - - QVERIFY(verify()); - - DPRINT << "OUT"; -} - -/*! - UT_InfoWidgetSatHandlerPrivate::t_doCancel - */ -void UT_InfoWidgetSatHandlerPrivate::t_doCancel() -{ - DPRINT << "IN"; - - m_satHandler->DoCancel(); - QVERIFY(verify()); - - DPRINT << "OUT"; -} - -QTEST_MAIN_S60(UT_InfoWidgetSatHandlerPrivate ) diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetsathandlerprivate/ut_infowidgetsathandlerprivate.pro --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetsathandlerprivate/ut_infowidgetsathandlerprivate.pro Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,51 +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: Project file for building unit test component -# -# - -CONFIG += qtestlib hb -TEMPLATE = app -TARGET = -DEPENDPATH += . ../../infowidget/src -INCLUDEPATH += . -INCLUDEPATH += ../common -INCLUDEPATH += ../../inc/ -INCLUDEPATH += ../../infowidget/inc/ - -QT -= gui -QT += testlib - -symbian: { - CONFIG += no_icon - INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE - LIBS += -lmocklib \ - -lsymbianmock \ - -lcpframework -} - -# test code -HEADERS += ./inc/ut_infowidgetsathandlerprivate.h -SOURCES += ./src/ut_infowidgetsathandlerprivate.cpp - -# code to be tested -HEADERS += ../../infowidget/inc/infowidgetsathandler.h -HEADERS += ../../infowidget/inc/infowidgetsathandlerprivate.h - -SOURCES += ../../infowidget/src/infowidgetsathandlerprivate.cpp - -# mocks needed for testing -SOURCES += ../mocks/mock_rsatservice.cpp \ - ../mocks/mock_RSatSession.cpp \ - ../mocks/mock_infowidgetsathandler.cpp diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetproviderinstaller/infowidgetproviderinstaller.cpp --- a/phoneplugins/infowidgetplugin/infowidgetproviderinstaller/infowidgetproviderinstaller.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /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: Infowidgetplugin service manager -* registration handler -* -*/ - -#include -#include -#include - -QTM_USE_NAMESPACE - -const QString xml = "z:/private/20022F35/import/widgetregistry/20029F28/infowidgetprovider.xml"; - -int main(int argc, char *argv[]) -{ - QCoreApplication app(argc, argv); - - QServiceManager s; - - if (QFile::exists(xml)) { - s.addService(xml); - } else { - s.removeService("infowidgetprovider"); - } -} diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetproviderinstaller/infowidgetproviderinstaller.pro --- a/phoneplugins/infowidgetplugin/infowidgetproviderinstaller/infowidgetproviderinstaller.pro Fri Jun 04 10:19:18 2010 +0100 +++ /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 "Eclipse Public License v1.0" -# which accompanies this distribution, and is available -# at the URL "http://www.eclipse.org/legal/epl-v10.html". -# -# Initial Contributors: -# Nokia Corporation - initial contribution. -# -# Contributors: -# -# Description: Homescreen Infowidget installer application -# - -TEMPLATE = app - -QT = core -CONFIG += no_icon - -CONFIG += mobility -MOBILITY = serviceframework - -SOURCES += infowidgetproviderinstaller.cpp - -symbian { - load(data_caging_paths) - TARGET.CAPABILITY = ALL -TCB - TARGET.UID3 = 0x2002EA1E - BLD_INF_RULES.prj_exports += \ - "$${LITERAL_HASH}include " \ - "./rom/infowidgetproviderinstaller.iby CORE_APP_LAYER_IBY_EXPORT_PATH(infowidgetproviderinstaller.iby)" -} diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/infowidgetproviderinstaller/rom/infowidgetproviderinstaller.iby --- a/phoneplugins/infowidgetplugin/infowidgetproviderinstaller/rom/infowidgetproviderinstaller.iby Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +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: -* -*/ - -#ifndef __INFOWIDGETPROVIDERINSTALLER_IBY__ -#define __INFOWIDGETPROVIDERINSTALLER_IBY__ - -S60_APP_EXE(infowidgetproviderinstaller) - -#endif //__INFOWIDGETPROVIDERINSTALLER_IBY__ diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/resource/infowidget.docml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/resource/infowidget.docml Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/resource/infowidgetplugin.manifest --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/resource/infowidgetplugin.manifest Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,9 @@ + + + infowidgetplugin + txt_long_caption_operator_widget + txt_operatorwidget_dblist_val_operator_information + + false + infowidgetplugin.xml + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/resource/infowidgetplugin.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/resource/infowidgetplugin.xml Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,13 @@ + + + infowidgetplugin + infowidgetplugin + Operator widget + + com.nokia.symbian.IHomeScreenWidget + 1.0 + + + Operator widget + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/resource/settingsdialog.docml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/resource/settingsdialog.docml Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/rom/infowidgetplugin.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/rom/infowidgetplugin.iby Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,27 @@ +/* +* 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 __INFOWIDGETPLUGIN_IBY__ +#define __INFOWIDGETPLUGIN_IBY__ + +file=ABI_DIR\BUILD_DIR\infowidgetplugin.dll SHARED_LIB_DIR\infowidgetplugin.dll +data=ZPRIVATE\20022f35\import\widgetregistry\20029F28\infowidgetplugin.qtplugin private\20022f35\import\widgetregistry\20029F28\infowidgetplugin.qtplugin +data=ZPRIVATE\20022f35\import\widgetregistry\20029F28\infowidgetplugin.manifest private\20022f35\import\widgetregistry\20029F28\infowidgetplugin.manifest +data=ZPRIVATE\20022f35\import\widgetregistry\20029F28\infowidgetplugin.xml private\20022f35\import\widgetregistry\20029F28\infowidgetplugin.xml + + +#endif //__INFOWIDGETPLUGIN_IBY__ diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/rom/infowidgetplugin_resources.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/rom/infowidgetplugin_resources.iby Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,25 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef __INFOWIDGETPRLUGIN_RESOURCE_IBY__ +#define __INFOWIDGETPRLUGIN_RESOURCE_IBY__ + +#include + +data=DATAZ_\QT_TRANSLATIONS_DIR\operator_widget.qm QT_TRANSLATIONS_DIR\operator_widget.qm + +#endif \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/src/infowidgetplugin.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/src/infowidgetplugin.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: + * + */ + +#include +#include +#include + +#include "infowidgetplugin.h" +#include "infowidget.h" + + +/*! + \class InfoWidgetPlugin + + \brief Homescreen Widget for providing operator information +*/ +QObject *InfoWidgetPlugin::createInstance(const QServiceInterfaceDescriptor &descriptor, + QServiceContext *context, + QAbstractSecuritySession *session) +{ + Q_UNUSED(context); + Q_UNUSED(session); + + if (descriptor.interfaceName() == QLatin1String("com.nokia.symbian.IHomeScreenWidget")) { + return new InfoWidget(); + } else { + return 0; + } +} + + +Q_EXPORT_PLUGIN2(infowidgetplugin, InfoWidgetPlugin) diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/common/qtestmains60.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/common/qtestmains60.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,40 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef QTESTMAINS60 +#define QTESTMAINS60 + +#define QTEST_MAIN_S60(TestObject) \ +int main(int argc, char *argv[]) \ +{ \ +char *new_argv[3]; \ +QCoreApplication app(argc, argv); \ +\ +QString str = "C:\\data\\" + QFileInfo(QCoreApplication::applicationFilePath()).baseName() + ".log"; \ +QByteArray bytes = str.toAscii(); \ +\ +char arg1[] = "-o"; \ +\ +new_argv[0] = argv[0]; \ +new_argv[1] = arg1; \ +new_argv[2] = bytes.data(); \ +\ +TestObject tc; \ +return QTest::qExec(&tc, 3, new_argv); \ +} + +#endif \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/mocks/mock_RSatSession.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_RSatSession.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,52 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include "RSatSession.h" + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// RSatSession::RSatSession +// ----------------------------------------------------------------------------- +// +RSatSession::RSatSession( ) + { + + } + + +// ----------------------------------------------------------------------------- +// RSatSession::ConnectL +// ----------------------------------------------------------------------------- +// +void RSatSession::ConnectL( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// RSatSession::Version +// ----------------------------------------------------------------------------- +// +TVersion RSatSession::Version( ) const + { + SMC_MOCK_METHOD0( TVersion ) + } + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/mocks/mock_hbcolorscheme.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_hbcolorscheme.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// QString::color +// ----------------------------------------------------------------------------- +// +QColor HbColorScheme::color( + const QString & colorRole ) + { + SMC_MOCK_METHOD1( QColor, const QString &, colorRole ) + } + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/mocks/mock_hbdocumentloader.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_hbdocumentloader.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,180 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include +#include +#include +#include + +#include "hbdocumentloader.h" + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// HbDocumentLoader::HbDocumentLoader +// ----------------------------------------------------------------------------- +// +HbDocumentLoader::HbDocumentLoader( ) + : d_ptr(0) + { + + } + + +// ----------------------------------------------------------------------------- +// HbDocumentLoader::HbDocumentLoader +// ----------------------------------------------------------------------------- +// +HbDocumentLoader::HbDocumentLoader( + const HbMainWindow * window ) + : d_ptr(0) + { + + } + + +// ----------------------------------------------------------------------------- +// HbDocumentLoader::~HbDocumentLoader +// ----------------------------------------------------------------------------- +// +HbDocumentLoader::~HbDocumentLoader( ) + { + + } + + +// ----------------------------------------------------------------------------- +// HbDocumentLoader::load +// ----------------------------------------------------------------------------- +// +QObjectList HbDocumentLoader::load( + const QString & fileName, + const QString & section, + bool * ok ) + { + SMC_MOCK_METHOD3( QObjectList, const QString &, fileName, + const QString &, section, + bool *, ok ) + } + + +// ----------------------------------------------------------------------------- +// HbDocumentLoader::load +// ----------------------------------------------------------------------------- +// +QObjectList HbDocumentLoader::load( + QIODevice * device, + const QString & section, + bool * ok ) + { + SMC_MOCK_METHOD3( QObjectList, QIODevice *, device, + const QString &, section, + bool *, ok ) + } + +// ----------------------------------------------------------------------------- +// HbDocumentLoader::load +// ----------------------------------------------------------------------------- +// +QObjectList HbDocumentLoader::load( + const QString & fileName, + bool * ok ) + { + SMC_MOCK_METHOD2( QObjectList, const QString &, fileName, + bool *, ok ) + } + +// ----------------------------------------------------------------------------- +// HbDocumentLoader::load +// ----------------------------------------------------------------------------- +// +QObjectList HbDocumentLoader::load( + QIODevice * device, + bool * ok ) + { + SMC_MOCK_METHOD2( QObjectList, QIODevice *, device, + bool *, ok ) + } + + +// ----------------------------------------------------------------------------- +// HbDocumentLoader::findWidget +// ----------------------------------------------------------------------------- +// +QGraphicsWidget * HbDocumentLoader::findWidget( + const QString & name ) const + { + SMC_MOCK_METHOD1( QGraphicsWidget *, const QString &, name ) + } + + +// ----------------------------------------------------------------------------- +// HbDocumentLoader::findObject +// ----------------------------------------------------------------------------- +// +QObject * HbDocumentLoader::findObject( + const QString & name ) const + { + SMC_MOCK_METHOD1( QObject *, const QString &, name ) + } + + +// ----------------------------------------------------------------------------- +// HbDocumentLoader::setObjectTree +// ----------------------------------------------------------------------------- +// +bool HbDocumentLoader::setObjectTree( + QObjectList roots ) + { + SMC_MOCK_METHOD1( bool, QObjectList, roots ) + } + + +// ----------------------------------------------------------------------------- +// HbDocumentLoader::reset +// ----------------------------------------------------------------------------- +// +void HbDocumentLoader::reset( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// HbDocumentLoader::version +// ----------------------------------------------------------------------------- +// +QString HbDocumentLoader::version( ) + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// HbDocumentLoader::createObject +// ----------------------------------------------------------------------------- +// +QObject * HbDocumentLoader::createObject( + const QString & type, + const QString & name ) + { + SMC_MOCK_METHOD2( QObject *, const QString &, type, + const QString &, name ) + } + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/mocks/mock_hbframedrawer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_hbframedrawer.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,347 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include +#include +#include +#include + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::HbFrameDrawer +// ----------------------------------------------------------------------------- +// +HbFrameDrawer::HbFrameDrawer( + bool cacheFlag ) + { + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::HbFrameDrawer +// ----------------------------------------------------------------------------- +// +HbFrameDrawer::HbFrameDrawer( + const QString & frameGraphicsName, + FrameType type, + bool cacheFlag ) + { + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::~HbFrameDrawer +// ----------------------------------------------------------------------------- +// +HbFrameDrawer::~HbFrameDrawer( ) + { + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::isNull +// ----------------------------------------------------------------------------- +// +bool HbFrameDrawer::isNull( ) const + { + SMC_MOCK_METHOD0( bool ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::frameGraphicsName +// ----------------------------------------------------------------------------- +// +QString HbFrameDrawer::frameGraphicsName( ) const + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::setFrameGraphicsName +// ----------------------------------------------------------------------------- +// +void HbFrameDrawer::setFrameGraphicsName( + const QString & frameGraphicsName ) + { + SMC_MOCK_METHOD1( void, const QString &, frameGraphicsName ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::frameType +// ----------------------------------------------------------------------------- +// +HbFrameDrawer::FrameType HbFrameDrawer::frameType() const + { + SMC_MOCK_METHOD0( FrameType ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::setFrameType +// ----------------------------------------------------------------------------- +// +void HbFrameDrawer::setFrameType( + HbFrameDrawer::FrameType type ) + { + SMC_MOCK_METHOD1( void, FrameType, type ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::borderWidths +// ----------------------------------------------------------------------------- +// +void HbFrameDrawer::borderWidths( + qreal & left, + qreal & top, + qreal & right, + qreal & bottom ) const + { + SMC_MOCK_METHOD4( void, qreal &, left, + qreal &, top, + qreal &, right, + qreal &, bottom ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::setBorderWidths +// ----------------------------------------------------------------------------- +// +void HbFrameDrawer::setBorderWidths( + const qreal left, + const qreal top, + const qreal right, + const qreal bottom ) + { + SMC_MOCK_METHOD4( void, const qreal, left, + const qreal, top, + const qreal, right, + const qreal, bottom ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::setBorderWidths +// ----------------------------------------------------------------------------- +// +void HbFrameDrawer::setBorderWidths( + const qreal horizontal, + const qreal vertical ) + { + SMC_MOCK_METHOD2( void, const qreal, horizontal, + const qreal, vertical ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::setBorderWidth +// ----------------------------------------------------------------------------- +// +void HbFrameDrawer::setBorderWidth( + const qreal width ) + { + SMC_MOCK_METHOD1( void, const qreal, width ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::fillWholeRect +// ----------------------------------------------------------------------------- +// +bool HbFrameDrawer::fillWholeRect( ) const + { + SMC_MOCK_METHOD0( bool ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::setFillWholeRect +// ----------------------------------------------------------------------------- +// +void HbFrameDrawer::setFillWholeRect( + bool fill ) + { + SMC_MOCK_METHOD1( void, bool, fill ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::mirroringMode +// ----------------------------------------------------------------------------- +// +HbIcon::MirroringMode HbFrameDrawer::mirroringMode( ) const + { + SMC_MOCK_METHOD0( HbIcon::MirroringMode ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::setMirroringMode +// ----------------------------------------------------------------------------- +// +void HbFrameDrawer::setMirroringMode( + HbIcon::MirroringMode mode ) + { + SMC_MOCK_METHOD1( void, HbIcon::MirroringMode, mode ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::fileNameSuffixList +// ----------------------------------------------------------------------------- +// +QStringList HbFrameDrawer::fileNameSuffixList( ) const + { + SMC_MOCK_METHOD0( QStringList ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::setFileNameSuffixList +// ----------------------------------------------------------------------------- +// +void HbFrameDrawer::setFileNameSuffixList( + const QStringList & list ) + { + SMC_MOCK_METHOD1( void, const QStringList &, list ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::setMask +// ----------------------------------------------------------------------------- +// +void HbFrameDrawer::setMask( + const QPixmap & mask ) + { + SMC_MOCK_METHOD1( void, const QPixmap &, mask ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::setMask +// ----------------------------------------------------------------------------- +// +void HbFrameDrawer::setMask( + const QBitmap & mask ) + { + SMC_MOCK_METHOD1( void, const QBitmap &, mask ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::mask +// ----------------------------------------------------------------------------- +// +QPixmap HbFrameDrawer::mask( ) const + { + SMC_MOCK_METHOD0( QPixmap ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::maskBitmap +// ----------------------------------------------------------------------------- +// +QBitmap HbFrameDrawer::maskBitmap( ) const + { + SMC_MOCK_METHOD0( QBitmap ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::frameSize +// ----------------------------------------------------------------------------- +// +QSize HbFrameDrawer::frameSize( ) const + { + SMC_MOCK_METHOD0( QSize ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::themeChanged +// ----------------------------------------------------------------------------- +// +void HbFrameDrawer::themeChanged( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::setLayoutDirection +// ----------------------------------------------------------------------------- +// +void HbFrameDrawer::setLayoutDirection( + Qt::LayoutDirection direction ) + { + SMC_MOCK_METHOD1( void, Qt::LayoutDirection, direction ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::setGraphicsItem +// ----------------------------------------------------------------------------- +// +void HbFrameDrawer::setGraphicsItem( + QGraphicsItem * item ) + { + SMC_MOCK_METHOD1( void, QGraphicsItem *, item ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::paint +// ----------------------------------------------------------------------------- +// +void HbFrameDrawer::paint( + QPainter * painter, + const QRectF & rect ) const + { + SMC_MOCK_METHOD2( void, QPainter *, painter, + const QRectF &, rect ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::rect +// ----------------------------------------------------------------------------- +// +QRectF HbFrameDrawer::rect( ) const + { + SMC_MOCK_METHOD0( QRectF ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameDrawer::setRect +// ----------------------------------------------------------------------------- +// +void HbFrameDrawer::setRect( + const QRectF & rect ) + { + SMC_MOCK_METHOD1( void, const QRectF &, rect ) + } + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/mocks/mock_hbframeitem.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_hbframeitem.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,127 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include +#include +#include +#include "hbframeitem.h" + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// HbFrameItem::HbFrameItem +// ----------------------------------------------------------------------------- +// +HbFrameItem::HbFrameItem( + QGraphicsItem * parent ) + { + } + + +// ----------------------------------------------------------------------------- +// HbFrameItem::HbFrameItem +// ----------------------------------------------------------------------------- +// +HbFrameItem::HbFrameItem( + HbFrameDrawer * drawer, + QGraphicsItem * parent ) + { + } + + +// ----------------------------------------------------------------------------- +// HbFrameItem::HbFrameItem +// ----------------------------------------------------------------------------- +// +HbFrameItem::HbFrameItem( + const QString & frameGraphicsName, + HbFrameDrawer::FrameType frameGraphicsType, + QGraphicsItem * parent ) + { + } + + +// ----------------------------------------------------------------------------- +// HbFrameItem::~HbFrameItem +// ----------------------------------------------------------------------------- +// +HbFrameItem::~HbFrameItem( ) + { + } + + +// ----------------------------------------------------------------------------- +// HbFrameItem::frameDrawer +// ----------------------------------------------------------------------------- +// +HbFrameDrawer & HbFrameItem::frameDrawer( ) const + { + SMC_MOCK_METHOD0( HbFrameDrawer & ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameItem::setFrameDrawer +// ----------------------------------------------------------------------------- +// +void HbFrameItem::setFrameDrawer( + HbFrameDrawer * drawer ) + { + SMC_MOCK_METHOD1( void, HbFrameDrawer *, drawer ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameItem::paint +// ----------------------------------------------------------------------------- +// +void HbFrameItem::paint( + QPainter * painter, + const QStyleOptionGraphicsItem * option, + QWidget * widget ) + { + SMC_MOCK_METHOD3( void, QPainter *, painter, + const QStyleOptionGraphicsItem *, option, + QWidget *, widget ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameItem::changeEvent +// ----------------------------------------------------------------------------- +// +void HbFrameItem::changeEvent( + QEvent * event ) + { + SMC_MOCK_METHOD1( void, QEvent *, event ) + } + + +// ----------------------------------------------------------------------------- +// HbFrameItem::sizeHint +// ----------------------------------------------------------------------------- +// +QSizeF HbFrameItem::sizeHint( + Qt::SizeHint which, + const QSizeF & constraint ) const + { + SMC_MOCK_METHOD2( QSizeF, Qt::SizeHint, which, + const QSizeF &, constraint ) + } + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/mocks/mock_hblabel.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_hblabel.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,326 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include + + + + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// HbLabel::Q_PROPERTY +// ----------------------------------------------------------------------------- +// +//void HbLabel::Q_PROPERTY( +// QString plainText READ plainText WRITE setPlainText ) Q_PROPERTY ( QString html READ html WRITE setHtml ) Q_PROPERTY ( Qt::Alignment alignment READ alignment WRITE setAlignment ) Q_PROPERTY ( Qt::TextElideMode elideMode READ elideMode WRITE setElideMode ) Q_PROPERTY ( Hb::TextWrapping textWrapping READ textWrapping WRITE setTextWrapping ) Q_PROPERTY ( QColor textColor READ textColor WRITE setTextColor ) Q_PROPERTY ( HbIcon icon READ icon WRITE setIcon ) Q_PROPERTY ( Qt::AspectRatioMode aspectRatioMode READ aspectRatioMode WRITE setAspectRatioMode ):HbLabel ( QGraphicsItem * parent ) +// { +// SMC_MOCK_METHOD1( void, QString plainText READ plainText WRITE setPlainText ) Q_PROPERTY ( QString html READ html WRITE setHtml ) Q_PROPERTY ( Qt::Alignment alignment READ alignment WRITE setAlignment ) Q_PROPERTY ( Qt::TextElideMode elideMode READ elideMode WRITE setElideMode ) Q_PROPERTY ( Hb::TextWrapping textWrapping READ textWrapping WRITE setTextWrapping ) Q_PROPERTY ( QColor textColor READ textColor WRITE setTextColor ) Q_PROPERTY ( HbIcon icon READ icon WRITE setIcon ) Q_PROPERTY ( Qt::AspectRatioMode aspectRatioMode READ aspectRatioMode WRITE setAspectRatioMode ):HbLabel ( QGraphicsItem *, parent ) +// } + + +// ----------------------------------------------------------------------------- +// HbLabel::HbLabel +// ----------------------------------------------------------------------------- +// +HbLabel::HbLabel( + const QString & displayText, + QGraphicsItem * parent ) + { + } + +// ----------------------------------------------------------------------------- +// HbLabel::HbLabel +// ----------------------------------------------------------------------------- +// +HbLabel::HbLabel(QGraphicsItem *parent) + { + } + +// ----------------------------------------------------------------------------- +// HbLabel::~HbLabel +// ----------------------------------------------------------------------------- +// +HbLabel::~HbLabel( ) + { + } + + +// ----------------------------------------------------------------------------- +// HbLabel::plainText +// ----------------------------------------------------------------------------- +// +QString HbLabel::plainText( ) const + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// HbLabel::html +// ----------------------------------------------------------------------------- +// +QString HbLabel::html( ) const + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// HbLabel::setElideMode +// ----------------------------------------------------------------------------- +// +void HbLabel::setElideMode( + Qt::TextElideMode elideMode ) + { + SMC_MOCK_METHOD1( void, Qt::TextElideMode, elideMode ) + } + + +// ----------------------------------------------------------------------------- +// HbLabel::elideMode +// ----------------------------------------------------------------------------- +// +Qt::TextElideMode HbLabel::elideMode( ) const + { + SMC_MOCK_METHOD0( Qt::TextElideMode ) + } + + +// ----------------------------------------------------------------------------- +// HbLabel::setTextWrapping +// ----------------------------------------------------------------------------- +// +void HbLabel::setTextWrapping( + Hb::TextWrapping mode ) + { + SMC_MOCK_METHOD1( void, Hb::TextWrapping, mode ) + } + + +// ----------------------------------------------------------------------------- +// HbLabel::textWrapping +// ----------------------------------------------------------------------------- +// +Hb::TextWrapping HbLabel::textWrapping( ) const + { + SMC_MOCK_METHOD0( Hb::TextWrapping ) + } + + +// ----------------------------------------------------------------------------- +// HbLabel::setIcon +// ----------------------------------------------------------------------------- +// +void HbLabel::setIcon( + const HbIcon & icon ) + { + SMC_MOCK_METHOD1( void, const HbIcon &, icon ) + } + + +// ----------------------------------------------------------------------------- +// HbLabel::icon +// ----------------------------------------------------------------------------- +// +HbIcon HbLabel::icon( ) const + { + SMC_MOCK_METHOD0( HbIcon ) + } + + +// ----------------------------------------------------------------------------- +// HbLabel::setAspectRatioMode +// ----------------------------------------------------------------------------- +// +void HbLabel::setAspectRatioMode( + Qt::AspectRatioMode mode ) + { + SMC_MOCK_METHOD1( void, Qt::AspectRatioMode, mode ) + } + + +// ----------------------------------------------------------------------------- +// HbLabel::aspectRatioMode +// ----------------------------------------------------------------------------- +// +Qt::AspectRatioMode HbLabel::aspectRatioMode( ) const + { + SMC_MOCK_METHOD0( Qt::AspectRatioMode ) + } + + +// ----------------------------------------------------------------------------- +// HbLabel::setAlignment +// ----------------------------------------------------------------------------- +// +void HbLabel::setAlignment( + Qt::Alignment alignment ) + { + //SMC_MOCK_METHOD1( void, Qt::Alignment, alignment ) + } + + +// ----------------------------------------------------------------------------- +// HbLabel::alignment +// ----------------------------------------------------------------------------- +// +Qt::Alignment HbLabel::alignment( ) const + { + //SMC_MOCK_METHOD0( Qt::Alignment ) + } + + +// ----------------------------------------------------------------------------- +// HbLabel::setTextColor +// ----------------------------------------------------------------------------- +// +void HbLabel::setTextColor( + const QColor & textColor ) + { + SMC_MOCK_METHOD1( void, const QColor &, textColor ) + } + + +// ----------------------------------------------------------------------------- +// HbLabel::textColor +// ----------------------------------------------------------------------------- +// +QColor HbLabel::textColor( ) const + { + SMC_MOCK_METHOD0( QColor ) + } + + +// ----------------------------------------------------------------------------- +// HbLabel::isEmpty +// ----------------------------------------------------------------------------- +// +bool HbLabel::isEmpty( ) const + { + SMC_MOCK_METHOD0( bool ) + } + + +// ----------------------------------------------------------------------------- +// HbLabel::primitive +// ----------------------------------------------------------------------------- +// +QGraphicsItem * HbLabel::primitive( + HbStyle::Primitive primitive ) const + { + SMC_MOCK_METHOD1( QGraphicsItem *, HbStyle::Primitive, primitive ) + } + + +// ----------------------------------------------------------------------------- +// HbLabel::type +// ----------------------------------------------------------------------------- +// +int HbLabel::type( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// HbLabel::setPlainText +// ----------------------------------------------------------------------------- +// +void HbLabel::setPlainText( + const QString & text ) + { + SMC_MOCK_METHOD1( void, const QString &, text ) + } + + +// ----------------------------------------------------------------------------- +// HbLabel::setHtml +// ----------------------------------------------------------------------------- +// +void HbLabel::setHtml( + const QString & text ) + { + SMC_MOCK_METHOD1( void, const QString &, text ) + } + + +// ----------------------------------------------------------------------------- +// HbLabel::setNumber +// ----------------------------------------------------------------------------- +// +void HbLabel::setNumber( + int number ) + { + SMC_MOCK_METHOD1( void, int, number ) + } + + +// ----------------------------------------------------------------------------- +// HbLabel::setNumber +// ----------------------------------------------------------------------------- +// +void HbLabel::setNumber( + qreal number ) + { + SMC_MOCK_METHOD1( void, qreal, number ) + } + + +// ----------------------------------------------------------------------------- +// HbLabel::updatePrimitives +// ----------------------------------------------------------------------------- +// +void HbLabel::updatePrimitives( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// HbLabel::clear +// ----------------------------------------------------------------------------- +// +void HbLabel::clear( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// HbLabel::HbLabel +// ----------------------------------------------------------------------------- +// +HbLabel::HbLabel( + HbLabelPrivate & dd, + QGraphicsItem * parent ) + { + } + + +// ----------------------------------------------------------------------------- +// HbLabel::initStyleOption +// ----------------------------------------------------------------------------- +// +void HbLabel::initStyleOption( + HbStyleOptionLabel * option ) const + { + SMC_MOCK_METHOD1( void, HbStyleOptionLabel *, option ) + } + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/mocks/mock_hbmarqueeitem.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_hbmarqueeitem.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,237 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// QGraphicsWidget::adjustSize +// ----------------------------------------------------------------------------- +// +void QGraphicsWidget::adjustSize() +{ + SMC_MOCK_METHOD0( void ) +} + +// ----------------------------------------------------------------------------- +// HbMarqueeItem::HbMarqueeItem +// ----------------------------------------------------------------------------- +// +HbMarqueeItem::HbMarqueeItem( + QGraphicsItem * parent ) + { + Q_UNUSED(parent) + } + + +// ----------------------------------------------------------------------------- +// HbMarqueeItem::HbMarqueeItem +// ----------------------------------------------------------------------------- +// +HbMarqueeItem::HbMarqueeItem( + const QString & text, + QGraphicsItem * parent ) + { + Q_UNUSED(text) + Q_UNUSED(parent) + } + + +// ----------------------------------------------------------------------------- +// HbMarqueeItem::~HbMarqueeItem +// ----------------------------------------------------------------------------- +// +HbMarqueeItem::~HbMarqueeItem( ) + { + + } + + +// ----------------------------------------------------------------------------- +// HbMarqueeItem::text +// ----------------------------------------------------------------------------- +// +QString HbMarqueeItem::text( ) const + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// HbMarqueeItem::setTextColor +// ----------------------------------------------------------------------------- +// +void HbMarqueeItem::setTextColor( + const QColor & color ) + { + SMC_MOCK_METHOD1( void, const QColor &, color ) + } + + +// ----------------------------------------------------------------------------- +// HbMarqueeItem::textColor +// ----------------------------------------------------------------------------- +// +QColor HbMarqueeItem::textColor( ) const + { + SMC_MOCK_METHOD0( QColor ) + } + + +// ----------------------------------------------------------------------------- +// HbMarqueeItem::isAnimating +// ----------------------------------------------------------------------------- +// +bool HbMarqueeItem::isAnimating( ) const + { + SMC_MOCK_METHOD0( bool ) + } + + +// ----------------------------------------------------------------------------- +// HbMarqueeItem::loopCount +// ----------------------------------------------------------------------------- +// +int HbMarqueeItem::loopCount( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// HbMarqueeItem::setLoopCount +// ----------------------------------------------------------------------------- +// +void HbMarqueeItem::setLoopCount( + int count ) + { + SMC_MOCK_METHOD1( void, int, count ) + } + +// ----------------------------------------------------------------------------- +// HbMarqueeItem::setText +// ----------------------------------------------------------------------------- +// +void HbMarqueeItem::setText( + const QString & text ) + { + SMC_MOCK_METHOD1( void, const QString &, text ) + } + + +// ----------------------------------------------------------------------------- +// HbMarqueeItem::startAnimation +// ----------------------------------------------------------------------------- +// +void HbMarqueeItem::startAnimation( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// HbMarqueeItem::stopAnimation +// ----------------------------------------------------------------------------- +// +void HbMarqueeItem::stopAnimation( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// HbMarqueeItem::animationStarted +// ----------------------------------------------------------------------------- +// +void HbMarqueeItem::animationStarted( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// HbMarqueeItem::animationStopped +// ----------------------------------------------------------------------------- +// +void HbMarqueeItem::animationStopped( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// HbMarqueeItem::sizeHint +// ----------------------------------------------------------------------------- +// +QSizeF HbMarqueeItem::sizeHint( + Qt::SizeHint which, + const QSizeF & constraint ) const + { + SMC_MOCK_METHOD2( QSizeF, Qt::SizeHint, which, + const QSizeF &, constraint ) + } + + +// ----------------------------------------------------------------------------- +// HbMarqueeItem::changeEvent +// ----------------------------------------------------------------------------- +// +void HbMarqueeItem::changeEvent( + QEvent * event ) + { + SMC_MOCK_METHOD1( void, QEvent *, event ) + } + + +// ----------------------------------------------------------------------------- +// HbMarqueeItem::resizeEvent +// ----------------------------------------------------------------------------- +// +void HbMarqueeItem::resizeEvent( + QGraphicsSceneResizeEvent * ) + { + //SMC_MOCK_METHOD1( void, QGraphicsSceneResizeEvent *, event ) + } + + +// ----------------------------------------------------------------------------- +// HbMarqueeItem::itemChange +// ----------------------------------------------------------------------------- +// +QVariant HbMarqueeItem::itemChange( + GraphicsItemChange change, + const QVariant & value ) + { + SMC_MOCK_METHOD2( QVariant, GraphicsItemChange, change, + const QVariant &, value ) + } + + +// ----------------------------------------------------------------------------- +// HbMarqueeItem::HbMarqueeItem +// ----------------------------------------------------------------------------- +// +HbMarqueeItem::HbMarqueeItem( + HbMarqueeItemPrivate & dd, + QGraphicsItem * parent ) + { + Q_UNUSED(dd) + Q_UNUSED(parent) + } + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/mocks/mock_hbstyle.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_hbstyle.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,200 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include "hbstyle.h" + +//needed for TSmcValueSize()const +class HbStyleParameters {}; +//needed for TSmcValueSize()const +class HbWidget {}; + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// HbStyle::HbStyle +// ----------------------------------------------------------------------------- +// +HbStyle::HbStyle( ):d_ptr(NULL) + // QObject * parent ) + { + // Q_UNUSED(parent); + } + + +// ----------------------------------------------------------------------------- +// HbStyle::~HbStyle +// ----------------------------------------------------------------------------- +// +HbStyle::~HbStyle( ) + { + + } + + +// ----------------------------------------------------------------------------- +// HbStyle::createPrimitive +// ----------------------------------------------------------------------------- +// +QGraphicsItem * HbStyle::createPrimitive( + HbStyle::Primitive primitive, + QGraphicsItem * parent ) const + { + SMC_MOCK_METHOD2( QGraphicsItem *, HbStyle::Primitive, primitive, + QGraphicsItem *, parent ) + } + + +// ----------------------------------------------------------------------------- +// HbStyle::updatePrimitive +// ----------------------------------------------------------------------------- +// +void HbStyle::updatePrimitive( + QGraphicsItem * item, + HbStyle::Primitive primitive, + const QStyleOption * option ) const + { + SMC_MOCK_METHOD3( void, QGraphicsItem *, item, + HbStyle::Primitive, primitive, + const QStyleOption *, option ) + } + + +// ----------------------------------------------------------------------------- +// HbStyle::registerPlugin +// ----------------------------------------------------------------------------- +// +int HbStyle::registerPlugin( + const QString & pluginName ) + { + SMC_MOCK_METHOD1( int, const QString &, pluginName ) + } + + +// ----------------------------------------------------------------------------- +// HbStyle::unregisterPlugin +// ----------------------------------------------------------------------------- +// +void HbStyle::unregisterPlugin( + const QString & pluginName ) + { + SMC_MOCK_METHOD1( void, const QString &, pluginName ) + } + + +// ----------------------------------------------------------------------------- +// HbStyle::setItemName +// ----------------------------------------------------------------------------- +// +void HbStyle::setItemName( + QGraphicsItem * item, + const QString & name ) + { + SMC_MOCK_METHOD2( void, QGraphicsItem *, item, + const QString &, name ) + } + + +// ----------------------------------------------------------------------------- +// HbStyle::itemName +// ----------------------------------------------------------------------------- +// +QString HbStyle::itemName( + const QGraphicsItem * item ) + { + SMC_MOCK_METHOD1( QString, const QGraphicsItem *, item ) + } + + +// ----------------------------------------------------------------------------- +// HbStyle::parameter +// ----------------------------------------------------------------------------- +// +bool HbStyle::parameter( + const QString & parameter, + qreal & value, + const HbDeviceProfile & profile ) const + { + SMC_MOCK_METHOD3( bool, const QString &, parameter, + qreal &, value, + const HbDeviceProfile &, profile ) + } + + +// ----------------------------------------------------------------------------- +// HbStyle::parameters +// ----------------------------------------------------------------------------- +// +void HbStyle::parameters( + HbStyleParameters & parameters, + const HbDeviceProfile & profile ) const + { + SMC_MOCK_METHOD2( void, HbStyleParameters &, parameters, + const HbDeviceProfile &, profile ) + } + + +// ----------------------------------------------------------------------------- +// HbStyle::polish +// ----------------------------------------------------------------------------- +// +void HbStyle::polish( + HbWidget * widget, + HbStyleParameters & params ) + { + SMC_MOCK_METHOD2( void, HbWidget *, widget, + HbStyleParameters &, params ) + } + + +// ----------------------------------------------------------------------------- +// HbStyle::updateThemedParams +// ----------------------------------------------------------------------------- +// +void HbStyle::updateThemedParams( + HbWidget * widget ) + { + SMC_MOCK_METHOD1( void, HbWidget *, widget ) + } + + +// ----------------------------------------------------------------------------- +// HbStyle::hasOrientationSpecificStyleRules +// ----------------------------------------------------------------------------- +// +bool HbStyle::hasOrientationSpecificStyleRules( + HbWidget * widget ) + { + SMC_MOCK_METHOD1( bool, HbWidget *, widget ) + } + + +// ----------------------------------------------------------------------------- +// HbStyle::HbStyle +// ----------------------------------------------------------------------------- +// +HbStyle::HbStyle( + HbStylePrivate & dd, + QStyle * parent ):d_ptr(NULL) + //: + //QObject( /*dd, parent*/ ) + { + Q_UNUSED(dd); + Q_UNUSED(parent); + } + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/mocks/mock_hbstyleoptionlabel.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_hbstyleoptionlabel.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,57 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include "hbstyleoptionlabel.h" + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// HbStyleOptionLabel::HbStyleOptionLabel +// ----------------------------------------------------------------------------- +// +HbStyleOptionLabel::HbStyleOptionLabel( ) + //: + //HbStyleOption( /**/ ) + { + + } + + +// ----------------------------------------------------------------------------- +// HbStyleOptionLabel::HbStyleOptionLabel +// ----------------------------------------------------------------------------- +// +HbStyleOptionLabel::HbStyleOptionLabel( + const HbStyleOptionLabel & other ) + //: + //HbStyleOption( /*other*/ ) + { + + } + + +// ----------------------------------------------------------------------------- +// HbStyleOptionLabel::~HbStyleOptionLabel +// ----------------------------------------------------------------------------- +// +HbStyleOptionLabel::~HbStyleOptionLabel( ) + { + + } + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/mocks/mock_hbwidget.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_hbwidget.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,452 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// HbWidget::HbWidget +// ----------------------------------------------------------------------------- +// +HbWidget::HbWidget( + QGraphicsItem * , + Qt::WindowFlags ) + //: + //HbWidgetBase( /*parent, wFlags*/ ) + { + + } + + +// ----------------------------------------------------------------------------- +// HbWidget::~HbWidget +// ----------------------------------------------------------------------------- +// +HbWidget::~HbWidget( ) + { + + } + + +// ----------------------------------------------------------------------------- +// HbWidget::event +// ----------------------------------------------------------------------------- +// +bool HbWidget::event( + QEvent * ) + { + } + + +// ----------------------------------------------------------------------------- +// HbWidget::setStyle +// ----------------------------------------------------------------------------- +// +void HbWidget::setStyle( + HbStyle * ) + { + } + + +// ----------------------------------------------------------------------------- +// HbWidget::style +// ----------------------------------------------------------------------------- +// +HbStyle * HbWidget::style( ) const + { + } + + +// ----------------------------------------------------------------------------- +// HbWidget::clearActions +// ----------------------------------------------------------------------------- +// +void HbWidget::clearActions( ) + { + SMC_MOCK_METHOD0( void ) + } + + + +// ----------------------------------------------------------------------------- +// HbWidget::pluginBaseId +// ----------------------------------------------------------------------------- +// +int HbWidget::pluginBaseId( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::mainWindow +// ----------------------------------------------------------------------------- +// +HbMainWindow * HbWidget::mainWindow( ) const + { + // SMC_MOCK_METHOD0( HbMainWindow * ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::primitive +// ----------------------------------------------------------------------------- +// +QGraphicsItem * HbWidget::primitive( + HbStyle::Primitive ) const + { + // SMC_MOCK_METHOD1( QGraphicsItem *, HbStyle::Primitive, primitive ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::setFocusOrientation +// ----------------------------------------------------------------------------- +// +void HbWidget::setFocusOrientation( + Qt::Orientations , + Qt::Orientations ) + { + // SMC_MOCK_METHOD2( void, Qt::Orientations, previous, + // Qt::Orientations, next ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::keyForFocusNextChild +// ----------------------------------------------------------------------------- +// +QKeySequence HbWidget::keyForFocusNextChild( ) const + { + // SMC_MOCK_METHOD0( QKeySequence ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::keyForFocusPreviousChild +// ----------------------------------------------------------------------------- +// +QKeySequence HbWidget::keyForFocusPreviousChild( ) const + { + // SMC_MOCK_METHOD0( QKeySequence ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::setKeyFocusMode +// ----------------------------------------------------------------------------- +// +void HbWidget::setKeyFocusMode( + const QKeySequence &key ) + { +// SMC_MOCK_METHOD1( void, const QKeySequence &, key ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::keyFocusMode +// ----------------------------------------------------------------------------- +// +QKeySequence HbWidget::keyFocusMode( ) const + { +// SMC_MOCK_METHOD0( QKeySequence ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::lastFocusedChild +// ----------------------------------------------------------------------------- +// +QGraphicsItem * HbWidget::lastFocusedChild( ) const + { + // SMC_MOCK_METHOD0( QGraphicsItem * ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::setFocusOrder +// ----------------------------------------------------------------------------- +// +void HbWidget::setFocusOrder( + QGraphicsItem * , + QGraphicsItem * ) + { + // SMC_MOCK_METHOD2( void, QGraphicsItem *, first, + // QGraphicsItem *, second ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::setFocusDelegation +// ----------------------------------------------------------------------------- +// +void HbWidget::setFocusDelegation( + HbWidget::FocusDelegation ) + { + // SMC_MOCK_METHOD1( void, HbWidget::FocusDelegation, focusDelegation ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::focusDelegation +// ----------------------------------------------------------------------------- +// +HbWidget::FocusDelegation HbWidget::focusDelegation( ) const + { + // SMC_MOCK_METHOD0( HbWidget::FocusDelegation ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::setFocusLooping +// ----------------------------------------------------------------------------- +// +void HbWidget::setFocusLooping( + bool enable ) + { + SMC_MOCK_METHOD1( void, bool, enable ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::hasFocusLooping +// ----------------------------------------------------------------------------- +// +bool HbWidget::hasFocusLooping( ) const + { + SMC_MOCK_METHOD0( bool ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::setFocusMode +// ----------------------------------------------------------------------------- +// +void HbWidget::setFocusMode( + HbWidget::FocusMode ) + { + // SMC_MOCK_METHOD1( void, HbWidget::, FocusMode ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::focusMode +// ----------------------------------------------------------------------------- +// +HbWidget::FocusMode HbWidget::focusMode( ) const + { + // SMC_MOCK_METHOD0( HbWidget::FocusMode ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::setFocusHighlight +// ----------------------------------------------------------------------------- +// +void HbWidget::setFocusHighlight( + HbStyle::Primitive , + HbWidget::FocusHighlight ) + { + // SMC_MOCK_METHOD2( void, HbStyle::Primitive, type, + // HbWidget::FocusHighlight, focusHighlight ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::focusHighlight +// ----------------------------------------------------------------------------- +// +HbStyle::Primitive HbWidget::focusHighlight( + HbWidget::FocusHighlight ) + { + // SMC_MOCK_METHOD1( HbStyle::Primitive, HbWidget::FocusHighlight, focusHighlight ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::setBackgroundItem +// ----------------------------------------------------------------------------- +// +void HbWidget::setBackgroundItem( + HbStyle::Primitive , + int ) + { + // SMC_MOCK_METHOD2( void, HbStyle::Primitive, type, + // int, zValue ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::setBackgroundItem +// ----------------------------------------------------------------------------- +// +void HbWidget::setBackgroundItem( + QGraphicsItem * , + int ) + { + // SMC_MOCK_METHOD2( void, QGraphicsItem *, item, + // int, zValue ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::backgroundItem +// ----------------------------------------------------------------------------- +// +QGraphicsItem * HbWidget::backgroundItem( ) const + { + // SMC_MOCK_METHOD0( QGraphicsItem * ) + } + + + +// ----------------------------------------------------------------------------- +// HbWidget::recreatePrimitives +// ----------------------------------------------------------------------------- +// +void HbWidget::recreatePrimitives( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::updatePrimitives +// ----------------------------------------------------------------------------- +// +void HbWidget::updatePrimitives( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::focusInEvent +// ----------------------------------------------------------------------------- +// +void HbWidget::focusInEvent( + QFocusEvent * ) + { + // SMC_MOCK_METHOD1( void, QFocusEvent *, event ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::focusOutEvent +// ----------------------------------------------------------------------------- +// +void HbWidget::focusOutEvent( + QFocusEvent * ) + { + // SMC_MOCK_METHOD1( void, QFocusEvent *, event ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::resizeEvent +// ----------------------------------------------------------------------------- +// +void HbWidget::resizeEvent( + QGraphicsSceneResizeEvent * ) + { + // SMC_MOCK_METHOD1( void, QGraphicsSceneResizeEvent *, event ) + } + +// ----------------------------------------------------------------------------- +// HbWidget::changeEvent +// ----------------------------------------------------------------------------- +// +void HbWidget::changeEvent( + QEvent * event ) + { + SMC_MOCK_METHOD1( void, QEvent *, event ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::itemChange +// ----------------------------------------------------------------------------- +// +QVariant HbWidget::itemChange( + GraphicsItemChange , + const QVariant & ) + { + // SMC_MOCK_METHOD2( QVariant, GraphicsItemChange, change, + // const QVariant &, value ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::polishEvent +// ----------------------------------------------------------------------------- +// +void HbWidget::polishEvent( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::polish +// ----------------------------------------------------------------------------- +// +void HbWidget::polish( + HbStyleParameters & ) + { + // SMC_MOCK_METHOD1( void, HbStyleParameters &, params ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::repolish +// ----------------------------------------------------------------------------- +// +void HbWidget::repolish( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// HbWidget::setPluginBaseId +// ----------------------------------------------------------------------------- +// +void HbWidget::setPluginBaseId( + int baseId ) + { + SMC_MOCK_METHOD1( void, int, baseId ) + } + + + +// ----------------------------------------------------------------------------- +// HbWidget::HbWidget +// ----------------------------------------------------------------------------- +// +HbWidget::HbWidget( + HbWidgetPrivate & , + QGraphicsItem * , + Qt::WindowFlags ) + //: + //HbWidgetBase( /*dd, parent, wFlags*/ ) + { + + } + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/mocks/mock_infowidget.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_infowidget.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,471 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "infowidget.h" + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// InfoWidget::InfoWidget +// ----------------------------------------------------------------------------- +// +InfoWidget::InfoWidget( + QGraphicsItem * parent, + Qt::WindowFlags flags ) + : HbWidget(parent, flags) + { + + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::~InfoWidget +// ----------------------------------------------------------------------------- +// +InfoWidget::~InfoWidget( ) + { + + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::boundingRect +// ----------------------------------------------------------------------------- +// +QRectF InfoWidget::boundingRect( ) const + { + SMC_MOCK_METHOD0( QRectF ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::sizeHint +// ----------------------------------------------------------------------------- +// +QSizeF InfoWidget::sizeHint( + Qt::SizeHint which, + const QSizeF & constraint ) const + { + SMC_MOCK_METHOD2( QSizeF, Qt::SizeHint, which, + const QSizeF &, constraint ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::sizePolicy +// ----------------------------------------------------------------------------- +// +QSizePolicy InfoWidget::sizePolicy( ) const + { + SMC_MOCK_METHOD0( QSizePolicy ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::homeZoneDisplay +// ----------------------------------------------------------------------------- +// +QString InfoWidget::homeZoneDisplay() + { + SMC_MOCK_METHOD0( QString ); + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::setHomeZoneDisplay +// ----------------------------------------------------------------------------- +// +void InfoWidget::setHomeZoneDisplay( + QString value ) + { + SMC_MOCK_METHOD1( void, QString, value ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::mcnDisplay +// ----------------------------------------------------------------------------- +// +QString InfoWidget::mcnDisplay( ) + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::setMcnDisplay +// ----------------------------------------------------------------------------- +// +void InfoWidget::setMcnDisplay( + QString value ) + { + SMC_MOCK_METHOD1( void, QString, value ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::activeLineDisplay +// ----------------------------------------------------------------------------- +// +QString InfoWidget::activeLineDisplay( ) + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::setActiveLineDisplay +// ----------------------------------------------------------------------------- +// +void InfoWidget::setActiveLineDisplay( + QString value ) + { + SMC_MOCK_METHOD1( void, QString, value ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::satDisplay +// ----------------------------------------------------------------------------- +// +QString InfoWidget::satDisplay( ) + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::setSatDisplay +// ----------------------------------------------------------------------------- +// +void InfoWidget::setSatDisplay( + QString value ) + { + SMC_MOCK_METHOD1( void, QString, value ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::spnDisplay +// ----------------------------------------------------------------------------- +// +QString InfoWidget::spnDisplay( ) + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::setSpnDisplay +// ----------------------------------------------------------------------------- +// +void InfoWidget::setSpnDisplay( + QString value ) + { + SMC_MOCK_METHOD1( void, QString, value ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::onInitialize +// ----------------------------------------------------------------------------- +// +void InfoWidget::onInitialize( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::onUninitialize +// ----------------------------------------------------------------------------- +// +void InfoWidget::onUninitialize( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::onShow +// ----------------------------------------------------------------------------- +// +void InfoWidget::onShow( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::onHide +// ----------------------------------------------------------------------------- +// +void InfoWidget::onHide( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::readModel +// ----------------------------------------------------------------------------- +// +void InfoWidget::readModel( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::handleModelError +// ----------------------------------------------------------------------------- +// +void InfoWidget::handleModelError( + int operation, + int errorCode ) + { + SMC_MOCK_METHOD2( void, int, operation, + int, errorCode ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::spnDisplaySettingChanged +// ----------------------------------------------------------------------------- +// +void InfoWidget::spnDisplaySettingChanged( + int state ) + { + SMC_MOCK_METHOD1( void, int, state ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::mcnDisplaySettingChanged +// ----------------------------------------------------------------------------- +// +void InfoWidget::mcnDisplaySettingChanged( + int state ) + { + SMC_MOCK_METHOD1( void, int, state ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::satDisplaySettingChanged +// ----------------------------------------------------------------------------- +// +void InfoWidget::satDisplaySettingChanged( + int state ) + { + SMC_MOCK_METHOD1( void, int, state ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::settingsEditingFinished +// ----------------------------------------------------------------------------- +// +void InfoWidget::settingsEditingFinished( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::settingsEditingCancelled +// ----------------------------------------------------------------------------- +// +void InfoWidget::settingsEditingCancelled( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::settingsValidationFailed +// ----------------------------------------------------------------------------- +// +void InfoWidget::settingsValidationFailed( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::settingsDialogClosed +// ----------------------------------------------------------------------------- +// +void InfoWidget::settingsDialogClosed( + HbAction * action ) + { + //SMC_MOCK_METHOD1( void, HbAction *, action ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::startMarquees +// ----------------------------------------------------------------------------- +// +bool InfoWidget::startMarquees( + AnimationStartDelay delay ) + { + SMC_MOCK_METHOD1( bool, AnimationStartDelay, delay ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::stopMarquees +// ----------------------------------------------------------------------------- +// +void InfoWidget::stopMarquees( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::marqueeNext +// ----------------------------------------------------------------------------- +// +void InfoWidget::marqueeNext( ) + { + SMC_MOCK_METHOD0( void ) + } + + + +// ----------------------------------------------------------------------------- +// InfoWidget::mousePressEvent +// ----------------------------------------------------------------------------- +// +void InfoWidget::mousePressEvent( + QGraphicsSceneMouseEvent * event ) + { + SMC_MOCK_METHOD1( void, QGraphicsSceneMouseEvent *, event ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::mouseReleaseEvent +// ----------------------------------------------------------------------------- +// +void InfoWidget::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) + { + SMC_MOCK_METHOD1( void, QGraphicsSceneMouseEvent *, event ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::mouseMoveEvent +// ----------------------------------------------------------------------------- +// +void InfoWidget::mouseMoveEvent(QGraphicsSceneMouseEvent *event) + { + SMC_MOCK_METHOD1( void, QGraphicsSceneMouseEvent *, event ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::changeEvent +// ----------------------------------------------------------------------------- +// +void InfoWidget::changeEvent( + QEvent * event ) + { + SMC_MOCK_METHOD1( void, QEvent *, event ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::timerEvent +// ----------------------------------------------------------------------------- +// +void InfoWidget::timerEvent( + QTimerEvent * event ) + { + SMC_MOCK_METHOD1( void, QTimerEvent *, event ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::updateInfoDisplay +// ----------------------------------------------------------------------------- +// +void InfoWidget::updateInfoDisplay( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::readPersistentPreferences +// ----------------------------------------------------------------------------- +// +bool InfoWidget::readPersistentPreferences( ) + { + SMC_MOCK_METHOD0( bool ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::initializeCheckBoxStates +// ----------------------------------------------------------------------------- +// +void InfoWidget::initializeCheckBoxStates( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::installTranslator +// ----------------------------------------------------------------------------- +// +bool InfoWidget::installTranslator( + QString translationFile ) + { + SMC_MOCK_METHOD1( bool, QString, translationFile ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidget::removeTranslators +// ----------------------------------------------------------------------------- +// +void InfoWidget::removeTranslators( ) + { + SMC_MOCK_METHOD0( void ) + } + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/mocks/mock_infowidgetengine.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_infowidgetengine.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,158 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include "infowidgetnetworkhandler.h" +#include "infowidgetsathandler.h" +#include "infowidgetengine.h" +#include "infowidgetpreferences.h" + + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// InfoWidgetEngine::InfoWidgetEngine +// ----------------------------------------------------------------------------- +// +InfoWidgetEngine::InfoWidgetEngine( + QObject * parent ) + :QObject( parent ) + { + + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetEngine::~InfoWidgetEngine +// ----------------------------------------------------------------------------- +// +InfoWidgetEngine::~InfoWidgetEngine( ) + { + + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetEngine::modelData +// ----------------------------------------------------------------------------- +// +const InfoWidgetEngine::ModelData & InfoWidgetEngine::modelData( ) const + { + SMC_MOCK_METHOD0( const InfoWidgetEngine::ModelData & ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetEngine::updateNetworkDataToModel +// ----------------------------------------------------------------------------- +// +void InfoWidgetEngine::updateNetworkDataToModel( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetEngine::updateSatDataToModel +// ----------------------------------------------------------------------------- +// +void InfoWidgetEngine::updateSatDataToModel( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetEngine::updateLineDataToModel +// ----------------------------------------------------------------------------- +// +void InfoWidgetEngine::updateLineDataToModel( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetEngine::handleNetworkError +// ----------------------------------------------------------------------------- +// +void InfoWidgetEngine::handleNetworkError( + int operation, + int errorCode ) + { + SMC_MOCK_METHOD2( void, int, operation, + int, errorCode ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetEngine::handleSatError +// ----------------------------------------------------------------------------- +// +void InfoWidgetEngine::handleSatError( + int operation, + int errorCode ) + { + SMC_MOCK_METHOD2( void, int, operation, + int, errorCode ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetEngine::handleLineError +// ----------------------------------------------------------------------------- +// +void InfoWidgetEngine::handleLineError( + int operation, + int errorCode ) + { + SMC_MOCK_METHOD2( void, int, operation, + int, errorCode ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetEngine::suspend +// ----------------------------------------------------------------------------- +// +void InfoWidgetEngine::suspend( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetEngine::resume +// ----------------------------------------------------------------------------- +// +void InfoWidgetEngine::resume( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetEngine::preferencesChanged +// ----------------------------------------------------------------------------- +// +void InfoWidgetEngine::handlePreferencesChanged( + InfoWidgetPreferences::Options options) + { + //SMC_MOCK_METHOD1( void, InfoWidgetPreferences::Options, options ) + } + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/mocks/mock_infowidgetlayoutmanager.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_infowidgetlayoutmanager.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,291 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include +#include "infowidgetlayoutmanager.h" + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// InfoWidgetLayoutManager::InfoWidgetLayoutManager +// ----------------------------------------------------------------------------- +// +InfoWidgetLayoutManager::InfoWidgetLayoutManager( + QObject * parent ) + :QObject( parent ) + { + + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetLayoutManager::~InfoWidgetLayoutManager +// ----------------------------------------------------------------------------- +// +InfoWidgetLayoutManager::~InfoWidgetLayoutManager( ) + { + + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetLayoutManager::currentDisplayRole +// ----------------------------------------------------------------------------- +// +InfoWidgetLayoutManager::DisplayRole InfoWidgetLayoutManager::currentDisplayRole( ) + { + SMC_MOCK_METHOD0( DisplayRole ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetLayoutManager::currentWidgetRoles +// ----------------------------------------------------------------------------- +// +QList + InfoWidgetLayoutManager::currentWidgetRoles( ) + { + SMC_MOCK_METHOD0( QList ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetLayoutManager::layoutInfoDisplay +// ----------------------------------------------------------------------------- +// +QGraphicsLayout * InfoWidgetLayoutManager::layoutInfoDisplay( ) + { + SMC_MOCK_METHOD0( QGraphicsLayout * ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetLayoutManager::layoutSettingsDialog +// ----------------------------------------------------------------------------- +// +QGraphicsLayout * InfoWidgetLayoutManager::layoutSettingsDialog( ) + { + SMC_MOCK_METHOD0( QGraphicsLayout * ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetLayoutManager::widgetRoles +// ----------------------------------------------------------------------------- +// +const QList + InfoWidgetLayoutManager::widgetRoles(DisplayRole displayRole ) const + { + SMC_MOCK_METHOD1( + const QList , + DisplayRole, displayRole ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetLayoutManager::loadWidgets +// ----------------------------------------------------------------------------- +// +bool InfoWidgetLayoutManager::loadWidgets( + const DisplayRole displayRole, + const QList &displayWidgets, + QMap &widgetMap) + { + typedef QMap & TYPE3; + SMC_MOCK_METHOD3( bool, const DisplayRole, displayRole, + const QList &, displayWidgets, + TYPE3, widgetMap ) + } + +// ----------------------------------------------------------------------------- +// InfoWidgetLayoutManager::reloadWidgets +// ----------------------------------------------------------------------------- +// +bool InfoWidgetLayoutManager::reloadWidgets( + const DisplayRole displayRole ) + { + SMC_MOCK_METHOD1( bool, const DisplayRole, displayRole ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetLayoutManager::loadWidget +// ----------------------------------------------------------------------------- +// +QGraphicsWidget* InfoWidgetLayoutManager::loadWidget( + InfoWidgetDocumentLoader &loader, + DisplayRole displayRole, + LayoutItemRole widgetRole) + { + SMC_MOCK_METHOD3( QGraphicsWidget *, InfoWidgetDocumentLoader &, loader, + DisplayRole, displayRole, + LayoutItemRole, widgetRole ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetLayoutManager::getWidget +// ----------------------------------------------------------------------------- +// +QGraphicsWidget * InfoWidgetLayoutManager::getWidget( + LayoutItemRole itemRole ) + { + SMC_MOCK_METHOD1( QGraphicsWidget *, LayoutItemRole, itemRole ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetLayoutManager::loadObject +// ----------------------------------------------------------------------------- +// +QObject * InfoWidgetLayoutManager::loadObject( + InfoWidgetDocumentLoader & loader, + DisplayRole displayRole, + LayoutItemRole objectRole ) + { + SMC_MOCK_METHOD3( QObject *, InfoWidgetDocumentLoader &, loader, + DisplayRole, displayRole, + LayoutItemRole, objectRole ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetLayoutManager::getObject +// ----------------------------------------------------------------------------- +// +QObject * InfoWidgetLayoutManager::getObject( + LayoutItemRole itemRole ) + { + SMC_MOCK_METHOD1( QObject *, LayoutItemRole, itemRole ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetLayoutManager::contentWidget +// ----------------------------------------------------------------------------- +// +QGraphicsWidget * InfoWidgetLayoutManager::contentWidget( ) + { + SMC_MOCK_METHOD0( QGraphicsWidget * ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetLayoutManager::marqueeItems +// ----------------------------------------------------------------------------- +// +QList InfoWidgetLayoutManager::marqueeItems( ) + { + SMC_MOCK_METHOD0( QList ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetLayoutManager::removeWidget +// ----------------------------------------------------------------------------- +// +void InfoWidgetLayoutManager::removeWidget( + LayoutItemRole itemRole, + bool deleteLater ) + { + SMC_MOCK_METHOD2( void, LayoutItemRole, itemRole, + bool, deleteLater ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetLayoutManager::destroyWidgets +// ----------------------------------------------------------------------------- +// +void InfoWidgetLayoutManager::destroyWidgets( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetLayoutManager::layoutRows +// ----------------------------------------------------------------------------- +// +int InfoWidgetLayoutManager::layoutRows( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetLayoutManager::setLayoutRows +// ----------------------------------------------------------------------------- +// +void InfoWidgetLayoutManager::setLayoutRows( + int rows ) + { + SMC_MOCK_METHOD1( void, int, rows ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetLayoutManager::layoutRowHeight +// ----------------------------------------------------------------------------- +// +qreal InfoWidgetLayoutManager::layoutRowHeight( ) const + { + SMC_MOCK_METHOD0( qreal ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetLayoutManager::textFitsToRect +// ----------------------------------------------------------------------------- +// +bool InfoWidgetLayoutManager::textFitsToRect( + QString text, + QFont font, + QRectF rect ) + { + SMC_MOCK_METHOD3( bool, QString, text, + QFont, font, + QRectF, rect ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetDocumentLoader::InfoWidgetDocumentLoader +// ----------------------------------------------------------------------------- +// +InfoWidgetDocumentLoader::InfoWidgetDocumentLoader( ) + //: + //HbDocumentLoader( /**/ ) + { + + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetDocumentLoader::createObject +// ----------------------------------------------------------------------------- +// +QObject * InfoWidgetDocumentLoader::createObject( + const QString & type, + const QString & name ) + { + SMC_MOCK_METHOD2( QObject *, const QString &, type, + const QString &, name ) + } + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/mocks/mock_infowidgetnetworkhandler.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_infowidgetnetworkhandler.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,235 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include +#include +#include "infowidgetnetworkhandler.h" + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// InfoWidgetNetworkHandler::InfoWidgetNetworkHandler +// ----------------------------------------------------------------------------- +// +InfoWidgetNetworkHandler::InfoWidgetNetworkHandler( + QObject * parent ) + : + QObject(parent), + m_nwSession(0) + { + + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetNetworkHandler::~InfoWidgetNetworkHandler +// ----------------------------------------------------------------------------- +// +InfoWidgetNetworkHandler::~InfoWidgetNetworkHandler( ) + { + + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetNetworkHandler::createSession +// ----------------------------------------------------------------------------- +// +bool InfoWidgetNetworkHandler::createSession( ) + { + SMC_MOCK_METHOD0( bool ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetNetworkHandler::sessionExists +// ----------------------------------------------------------------------------- +// +bool InfoWidgetNetworkHandler::sessionExists( ) + { + SMC_MOCK_METHOD0( bool ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetNetworkHandler::serviceProviderName +// ----------------------------------------------------------------------------- +// +QString InfoWidgetNetworkHandler::serviceProviderName( ) const + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetNetworkHandler::serviceProviderNameDisplayRequired +// ----------------------------------------------------------------------------- +// +bool InfoWidgetNetworkHandler::serviceProviderNameDisplayRequired( ) const + { + SMC_MOCK_METHOD0( bool ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetNetworkHandler::homeZoneTextTag +// ----------------------------------------------------------------------------- +// +QString InfoWidgetNetworkHandler::homeZoneTextTag( ) const + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetNetworkHandler::homeZoneIndicatorType +// ----------------------------------------------------------------------------- +// +int InfoWidgetNetworkHandler::homeZoneIndicatorType( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetNetworkHandler::mcnName +// ----------------------------------------------------------------------------- +// +QString InfoWidgetNetworkHandler::mcnName( ) const + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetNetworkHandler::mcnIndicatorType +// ----------------------------------------------------------------------------- +// +int InfoWidgetNetworkHandler::mcnIndicatorType( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetNetworkHandler::networkRegistrationStatus +// ----------------------------------------------------------------------------- +// +int InfoWidgetNetworkHandler::networkRegistrationStatus( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetNetworkHandler::isOnline +// ----------------------------------------------------------------------------- +// +bool InfoWidgetNetworkHandler::isOnline( ) const + { + SMC_MOCK_METHOD0( bool ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetNetworkHandler::HandleNetworkMessage +// ----------------------------------------------------------------------------- +// +void InfoWidgetNetworkHandler::HandleNetworkMessage( + const TNWMessages aMessage ) + { + SMC_MOCK_METHOD1( void, const TNWMessages, aMessage ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetNetworkHandler::HandleNetworkError +// ----------------------------------------------------------------------------- +// +void InfoWidgetNetworkHandler::HandleNetworkError( + const TNWOperation aOperation, + TInt aErrorCode ) + { + SMC_MOCK_METHOD2( void, const TNWOperation, aOperation, + TInt, aErrorCode ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetNetworkHandler::suspend +// ----------------------------------------------------------------------------- +// +void InfoWidgetNetworkHandler::suspend( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetNetworkHandler::resume +// ----------------------------------------------------------------------------- +// +void InfoWidgetNetworkHandler::resume( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetNetworkHandler::enableMcn +// ----------------------------------------------------------------------------- +// +void InfoWidgetNetworkHandler::enableMcn( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetNetworkHandler::disableMcn +// ----------------------------------------------------------------------------- +// +void InfoWidgetNetworkHandler::disableMcn( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetNetworkHandler::writeMcnDisplayState +// ----------------------------------------------------------------------------- +// +void InfoWidgetNetworkHandler::writeMcnDisplayState( + bool enabled ) + { + SMC_MOCK_METHOD1( void, bool, enabled ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetNetworkHandler::readMcnDisplayState +// ----------------------------------------------------------------------------- +// +bool InfoWidgetNetworkHandler::readMcnDisplayState( ) + { + SMC_MOCK_METHOD0( bool ) + } + + + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/mocks/mock_infowidgetpreferences.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_infowidgetpreferences.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,138 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include "infowidgetpreferences.h" + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// InfoWidgetPreferences::InfoWidgetPreferences +// ----------------------------------------------------------------------------- +// +InfoWidgetPreferences::InfoWidgetPreferences( + QObject * parent ): + QObject( parent ) + { + + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetPreferences::~InfoWidgetPreferences +// ----------------------------------------------------------------------------- +// +InfoWidgetPreferences::~InfoWidgetPreferences( ) + { + + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetPreferences::loadPreferences +// ----------------------------------------------------------------------------- +// +void InfoWidgetPreferences::restorePreferences( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetPreferences::storePreferences +// ----------------------------------------------------------------------------- +// +bool InfoWidgetPreferences::storePreferences( ) + { + SMC_MOCK_METHOD0( bool ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetPreferences::preference +// ----------------------------------------------------------------------------- +// +QString InfoWidgetPreferences::preference( + Option preferenceId ) const + { + SMC_MOCK_METHOD1( QString, Option, preferenceId ) + } + +// ----------------------------------------------------------------------------- +// InfoWidgetPreferences::preferences +// ----------------------------------------------------------------------------- +// +InfoWidgetPreferences::Options InfoWidgetPreferences::preferences() const + { + SMC_MOCK_METHOD0( InfoWidgetPreferences::Options ) + } + +// ----------------------------------------------------------------------------- +// InfoWidgetPreferences::setPreference +// ----------------------------------------------------------------------------- +// +void InfoWidgetPreferences::setPreference( + Option preferenceId, + const QString & preferenceString ) + { + SMC_MOCK_METHOD2( void, Option, preferenceId, + const QString &, preferenceString ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetPreferences::isPreferenceSet +// ----------------------------------------------------------------------------- +// +bool InfoWidgetPreferences::isPreferenceSet( Option preferenceId ) const + { + SMC_MOCK_METHOD1( bool, Option, preferenceId) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetPreferences::validate +// ----------------------------------------------------------------------------- +// +bool InfoWidgetPreferences::validate( ) + { + SMC_MOCK_METHOD0( bool) + } + + + +// ----------------------------------------------------------------------------- +// InfoWidgetPreferences::visibleItemCount +// ----------------------------------------------------------------------------- +// +int InfoWidgetPreferences::visibleItemCount( ) + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetPreferences::preferenceNames +// ----------------------------------------------------------------------------- +// +QStringList InfoWidgetPreferences::preferenceNames() + { + SMC_MOCK_METHOD0( QStringList ) + } + + + \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/mocks/mock_infowidgetsathandler.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_infowidgetsathandler.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,99 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include "infowidgetsathandler.h" + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// InfoWidgetSatHandler::InfoWidgetSatHandler +// ----------------------------------------------------------------------------- +// +InfoWidgetSatHandler::InfoWidgetSatHandler( + QObject * parent ) + { + Q_UNUSED(parent); + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetSatHandler::~InfoWidgetSatHandler +// ----------------------------------------------------------------------------- +// +InfoWidgetSatHandler::~InfoWidgetSatHandler( ) + { + + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetSatHandler::connect +// ----------------------------------------------------------------------------- +// +void InfoWidgetSatHandler::connect( + bool connect ) + { + SMC_MOCK_METHOD1( void, bool, connect ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetSatHandler::satDisplayText +// ----------------------------------------------------------------------------- +// +const QString & InfoWidgetSatHandler::satDisplayText( ) const + { + SMC_MOCK_METHOD0( const QString & ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetSatHandler::setSatDisplayText +// ----------------------------------------------------------------------------- +// +void InfoWidgetSatHandler::setSatDisplayText( + const QString & displayText ) + { + SMC_MOCK_METHOD1( void, const QString &, displayText ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetSatHandler::handleIdleModeTxtMessage +// ----------------------------------------------------------------------------- +// +void InfoWidgetSatHandler::handleIdleModeTxtMessage( + int idleResult ) + { + SMC_MOCK_METHOD1( void, int, idleResult ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetSatHandler::handleSatError +// ----------------------------------------------------------------------------- +// +void InfoWidgetSatHandler::handleSatError( + int operation, + int errorCode ) + { + SMC_MOCK_METHOD2( void, int, operation, + int, errorCode ) + } + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/mocks/mock_infowidgetsathandlerprivate.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_infowidgetsathandlerprivate.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,95 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include "infowidgetsathandlerprivate.h" + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// InfoWidgetSatHandlerPrivate::InfoWidgetSatHandlerPrivate +// ----------------------------------------------------------------------------- +// +InfoWidgetSatHandlerPrivate::InfoWidgetSatHandlerPrivate( + InfoWidgetSatHandler * iwSatHandler, + RSatService & iSatService ) + :CActive( 0 ), + m_satService(iSatService) + + { + Q_UNUSED(iwSatHandler) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetSatHandlerPrivate::~InfoWidgetSatHandlerPrivate +// ----------------------------------------------------------------------------- +// +InfoWidgetSatHandlerPrivate::~InfoWidgetSatHandlerPrivate( ) + { + + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetSatHandlerPrivate::startObserving +// ----------------------------------------------------------------------------- +// +void InfoWidgetSatHandlerPrivate::startObserving( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetSatHandlerPrivate::connect +// ----------------------------------------------------------------------------- +// +bool InfoWidgetSatHandlerPrivate::connect( ) + { + SMC_MOCK_METHOD0( bool ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetSatHandlerPrivate::disconnect +// ----------------------------------------------------------------------------- +// +int InfoWidgetSatHandlerPrivate::disconnect( ) + { + SMC_MOCK_METHOD0( int ) + } + +// ----------------------------------------------------------------------------- +// InfoWidgetSatHandlerPrivate::DoCancel +// ----------------------------------------------------------------------------- +// +void InfoWidgetSatHandlerPrivate::DoCancel( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// InfoWidgetSatHandlerPrivate::RunL +// ----------------------------------------------------------------------------- +// +void InfoWidgetSatHandlerPrivate::RunL( ) + { + SMC_MOCK_METHOD0( void ) + } + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/mocks/mock_networkhandlingproxy.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_networkhandlingproxy.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -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: This file contains the header file of the class NetworkHandlingProxy. +* +*/ + +#include +#include +#include + +// ============================ MEMBER FUNCTIONS =============================== + +CNWSession* CreateL( MNWMessageObserver& aMessage, TNWInfo& aTNWInfo ) + { + SMC_MOCK_METHOD2(CNWSession*, + MNWMessageObserver&, aMessage, + TNWInfo&, aTNWInfo); + } diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/mocks/mock_qfontmetrics.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_qfontmetrics.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,694 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include +#include + +// Stub class implementation, needed in QFontMetrics header +class QFontPrivate { + QFontPrivate(){} + ~QFontPrivate(){} +}; + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// QFontMetrics::QFontMetrics +// ----------------------------------------------------------------------------- +// +QFontMetrics::QFontMetrics( + const QFont & ) + { + + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::QFontMetrics +// ----------------------------------------------------------------------------- +// +QFontMetrics::QFontMetrics( + const QFont &, + QPaintDevice * pd ) + { + + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::QFontMetrics +// ----------------------------------------------------------------------------- +// +QFontMetrics::QFontMetrics( + const QFontMetrics & ) + { + + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::~QFontMetrics +// ----------------------------------------------------------------------------- +// +QFontMetrics::~QFontMetrics( ) + { + + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::ascent +// ----------------------------------------------------------------------------- +// +int QFontMetrics::ascent( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::descent +// ----------------------------------------------------------------------------- +// +int QFontMetrics::descent( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::height +// ----------------------------------------------------------------------------- +// +int QFontMetrics::height( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::leading +// ----------------------------------------------------------------------------- +// +int QFontMetrics::leading( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::lineSpacing +// ----------------------------------------------------------------------------- +// +int QFontMetrics::lineSpacing( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::minLeftBearing +// ----------------------------------------------------------------------------- +// +int QFontMetrics::minLeftBearing( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::minRightBearing +// ----------------------------------------------------------------------------- +// +int QFontMetrics::minRightBearing( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::maxWidth +// ----------------------------------------------------------------------------- +// +int QFontMetrics::maxWidth( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::xHeight +// ----------------------------------------------------------------------------- +// +int QFontMetrics::xHeight( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::averageCharWidth +// ----------------------------------------------------------------------------- +// +int QFontMetrics::averageCharWidth( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::inFont +// ----------------------------------------------------------------------------- +// +bool QFontMetrics::inFont( QChar ) const + { + SMC_MOCK_METHOD0( bool ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::leftBearing +// ----------------------------------------------------------------------------- +// +int QFontMetrics::leftBearing( QChar ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::rightBearing +// ----------------------------------------------------------------------------- +// +int QFontMetrics::rightBearing( QChar ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::width +// ----------------------------------------------------------------------------- +// +int QFontMetrics::width( + const QString & string, + int len ) const + { + SMC_MOCK_METHOD2( int, const QString &, string, + int, len ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::width +// ----------------------------------------------------------------------------- +// +int QFontMetrics::width(QChar) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::charWidth +// ----------------------------------------------------------------------------- +// +int QFontMetrics::charWidth( + const QString & str, + int pos ) const + { + SMC_MOCK_METHOD2( int, const QString &, str, + int, pos ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::boundingRect +// ----------------------------------------------------------------------------- +// +QRect QFontMetrics::boundingRect( QChar ) const + { + SMC_MOCK_METHOD0( QRect ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::boundingRect +// ----------------------------------------------------------------------------- +// +QRect QFontMetrics::boundingRect( + const QString & text ) const + { + SMC_MOCK_METHOD1( QRect, const QString &, text ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::boundingRect +// ----------------------------------------------------------------------------- +// +QRect QFontMetrics::boundingRect( + const QRect & r, + int flags, + const QString & text, + int tabstops, + int * tabarray ) const + { + SMC_MOCK_METHOD5( QRect, const QRect &, r, + int, flags, + const QString &, text, + int, tabstops, + int *, tabarray ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::size +// ----------------------------------------------------------------------------- +// +QSize QFontMetrics::size( + int flags, + const QString & str, + int tabstops, + int * tabarray ) const + { + SMC_MOCK_METHOD4( QSize, int, flags, + const QString &, str, + int, tabstops, + int *, tabarray ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::tightBoundingRect +// ----------------------------------------------------------------------------- +// +QRect QFontMetrics::tightBoundingRect( + const QString & text ) const + { + SMC_MOCK_METHOD1( QRect, const QString &, text ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::elidedText +// ----------------------------------------------------------------------------- +// +QString QFontMetrics::elidedText( + const QString & text, + Qt::TextElideMode mode, + int width, + int flags ) const + { + SMC_MOCK_METHOD4( QString, const QString &, text, + Qt::TextElideMode, mode, + int, width, + int, flags ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::underlinePos +// ----------------------------------------------------------------------------- +// +int QFontMetrics::underlinePos( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::overlinePos +// ----------------------------------------------------------------------------- +// +int QFontMetrics::overlinePos( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::strikeOutPos +// ----------------------------------------------------------------------------- +// +int QFontMetrics::strikeOutPos( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetrics::lineWidth +// ----------------------------------------------------------------------------- +// +int QFontMetrics::lineWidth( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::QFontMetricsF +// ----------------------------------------------------------------------------- +// +QFontMetricsF::QFontMetricsF( + const QFont & ) + { + + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::QFontMetricsF +// ----------------------------------------------------------------------------- +// +QFontMetricsF::QFontMetricsF( + const QFont &, + QPaintDevice * pd ) + { + + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::QFontMetricsF +// ----------------------------------------------------------------------------- +// +QFontMetricsF::QFontMetricsF( + const QFontMetrics & ) + { + + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::QFontMetricsF +// ----------------------------------------------------------------------------- +// +QFontMetricsF::QFontMetricsF( + const QFontMetricsF & ) + { + + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::~QFontMetricsF +// ----------------------------------------------------------------------------- +// +QFontMetricsF::~QFontMetricsF( ) + { + + } + +// ----------------------------------------------------------------------------- +// QFontMetricsF::ascent +// ----------------------------------------------------------------------------- +// +qreal QFontMetricsF::ascent( ) const + { + SMC_MOCK_METHOD0( qreal ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::descent +// ----------------------------------------------------------------------------- +// +qreal QFontMetricsF::descent( ) const + { + SMC_MOCK_METHOD0( qreal ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::height +// ----------------------------------------------------------------------------- +// +qreal QFontMetricsF::height( ) const + { + SMC_MOCK_METHOD0( qreal ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::leading +// ----------------------------------------------------------------------------- +// +qreal QFontMetricsF::leading( ) const + { + SMC_MOCK_METHOD0( qreal ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::lineSpacing +// ----------------------------------------------------------------------------- +// +qreal QFontMetricsF::lineSpacing( ) const + { + SMC_MOCK_METHOD0( qreal ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::minLeftBearing +// ----------------------------------------------------------------------------- +// +qreal QFontMetricsF::minLeftBearing( ) const + { + SMC_MOCK_METHOD0( qreal ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::minRightBearing +// ----------------------------------------------------------------------------- +// +qreal QFontMetricsF::minRightBearing( ) const + { + SMC_MOCK_METHOD0( qreal ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::maxWidth +// ----------------------------------------------------------------------------- +// +qreal QFontMetricsF::maxWidth( ) const + { + SMC_MOCK_METHOD0( qreal ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::xHeight +// ----------------------------------------------------------------------------- +// +qreal QFontMetricsF::xHeight( ) const + { + SMC_MOCK_METHOD0( qreal ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::averageCharWidth +// ----------------------------------------------------------------------------- +// +qreal QFontMetricsF::averageCharWidth( ) const + { + SMC_MOCK_METHOD0( qreal ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::inFont +// ----------------------------------------------------------------------------- +// +//bool QFontMetricsF::inFont( QChar ) const +// { + //SMC_MOCK_METHOD0( bool ) +// } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::leftBearing +// ----------------------------------------------------------------------------- +// +qreal QFontMetricsF::leftBearing( QChar ) const + { + SMC_MOCK_METHOD0( qreal ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::rightBearing +// ----------------------------------------------------------------------------- +// +qreal QFontMetricsF::rightBearing( QChar ) const + { + SMC_MOCK_METHOD0( qreal ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::width +// ----------------------------------------------------------------------------- +// +qreal QFontMetricsF::width( + const QString & string ) const + { + SMC_MOCK_METHOD1( qreal, const QString &, string ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::width +// ----------------------------------------------------------------------------- +// +qreal QFontMetricsF::width( QChar ) const + { + SMC_MOCK_METHOD0( qreal ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::boundingRect +// ----------------------------------------------------------------------------- +// +QRectF QFontMetricsF::boundingRect( + const QString & string ) const + { + SMC_MOCK_METHOD1( QRectF, const QString &, string ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::boundingRect +// ----------------------------------------------------------------------------- +// +QRectF QFontMetricsF::boundingRect( QChar ) const + { + SMC_MOCK_METHOD0( QRectF ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::boundingRect +// ----------------------------------------------------------------------------- +// +QRectF QFontMetricsF::boundingRect( + const QRectF & r, + int flags, + const QString & string, + int tabstops, + int * tabarray ) const + { + SMC_MOCK_METHOD5( QRectF, const QRectF &, r, + int, flags, + const QString &, string, + int, tabstops, + int *, tabarray ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::size +// ----------------------------------------------------------------------------- +// +QSizeF QFontMetricsF::size( + int flags, + const QString & str, + int tabstops, + int * tabarray ) const + { + SMC_MOCK_METHOD4( QSizeF, int, flags, + const QString &, str, + int, tabstops, + int *, tabarray ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::tightBoundingRect +// ----------------------------------------------------------------------------- +// +QRectF QFontMetricsF::tightBoundingRect( + const QString & text ) const + { + SMC_MOCK_METHOD1( QRectF, const QString &, text ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::elidedText +// ----------------------------------------------------------------------------- +// +QString QFontMetricsF::elidedText( + const QString & text, + Qt::TextElideMode mode, + qreal width, + int flags ) const + { + SMC_MOCK_METHOD4( QString, const QString &, text, + Qt::TextElideMode, mode, + qreal, width, + int, flags ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::underlinePos +// ----------------------------------------------------------------------------- +// +qreal QFontMetricsF::underlinePos( ) const + { + SMC_MOCK_METHOD0( qreal ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::overlinePos +// ----------------------------------------------------------------------------- +// +qreal QFontMetricsF::overlinePos( ) const + { + SMC_MOCK_METHOD0( qreal ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::strikeOutPos +// ----------------------------------------------------------------------------- +// +qreal QFontMetricsF::strikeOutPos( ) const + { + SMC_MOCK_METHOD0( qreal ) + } + + +// ----------------------------------------------------------------------------- +// QFontMetricsF::lineWidth +// ----------------------------------------------------------------------------- +// +qreal QFontMetricsF::lineWidth( ) const + { + SMC_MOCK_METHOD0( qreal ) + } + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/mocks/mock_qgraphicslayout.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_qgraphicslayout.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,187 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include "qgraphicslayout.h" + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// QGraphicsLayout::QGraphicsLayout +// ----------------------------------------------------------------------------- +// +QGraphicsLayout::QGraphicsLayout( + QGraphicsLayoutItem * parent ) + //: + //QGraphicsLayoutItem( /*parent*/ ) + { + + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLayout::~QGraphicsLayout +// ----------------------------------------------------------------------------- +// +QGraphicsLayout::~QGraphicsLayout( ) + { + + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLayout::setContentsMargins +// ----------------------------------------------------------------------------- +// +void QGraphicsLayout::setContentsMargins( + qreal left, + qreal top, + qreal right, + qreal bottom ) + { + SMC_MOCK_METHOD4( void, qreal, left, + qreal, top, + qreal, right, + qreal, bottom ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLayout::getContentsMargins +// ----------------------------------------------------------------------------- +// +void QGraphicsLayout::getContentsMargins( + qreal * left, + qreal * top, + qreal * right, + qreal * bottom ) const + { + SMC_MOCK_METHOD4( void, qreal *, left, + qreal *, top, + qreal *, right, + qreal *, bottom ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLayout::activate +// ----------------------------------------------------------------------------- +// +void QGraphicsLayout::activate( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLayout::isActivated +// ----------------------------------------------------------------------------- +// +bool QGraphicsLayout::isActivated( ) const + { + SMC_MOCK_METHOD0( bool ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLayout::invalidate +// ----------------------------------------------------------------------------- +// +void QGraphicsLayout::invalidate( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLayout::updateGeometry +// ----------------------------------------------------------------------------- +// +void QGraphicsLayout::updateGeometry( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLayout::widgetEvent +// ----------------------------------------------------------------------------- +// +void QGraphicsLayout::widgetEvent( + QEvent * e ) + { + SMC_MOCK_METHOD1( void, QEvent *, e ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLayout::count +// ----------------------------------------------------------------------------- +// +int QGraphicsLayout::count( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLayout::itemAt +// ----------------------------------------------------------------------------- +// +QGraphicsLayoutItem * QGraphicsLayout::itemAt( + int i ) const + { + SMC_MOCK_METHOD1( QGraphicsLayoutItem *, int, i ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLayout::removeAt +// ----------------------------------------------------------------------------- +// +void QGraphicsLayout::removeAt( + int index ) + { + SMC_MOCK_METHOD1( void, int, index ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLayout::QGraphicsLayout +// ----------------------------------------------------------------------------- +// +QGraphicsLayout::QGraphicsLayout( + QGraphicsLayoutPrivate &, + QGraphicsLayoutItem * ) + //: + //QGraphicsLayoutItem( /*&, **/ ) + { + + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLayout::addChildLayoutItem +// ----------------------------------------------------------------------------- +// +void QGraphicsLayout::addChildLayoutItem( + QGraphicsLayoutItem * layoutItem ) + { + SMC_MOCK_METHOD1( void, QGraphicsLayoutItem *, layoutItem ) + } + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/mocks/mock_qgraphicslinearlayout.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_qgraphicslinearlayout.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,289 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include "qgraphicslinearlayout.h" + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// QGraphicsLinearLayout::QGraphicsLinearLayout +// ----------------------------------------------------------------------------- +// +QGraphicsLinearLayout::QGraphicsLinearLayout( + QGraphicsLayoutItem * parent ) + //: + //QGraphicsLayout( /*parent*/ ) + { + + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLinearLayout::QGraphicsLinearLayout +// ----------------------------------------------------------------------------- +// +QGraphicsLinearLayout::QGraphicsLinearLayout( + Qt::Orientation orientation, + QGraphicsLayoutItem * parent ) + //: + //QGraphicsLayout( /*orientation, parent*/ ) + { + + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLinearLayout::~QGraphicsLinearLayout +// ----------------------------------------------------------------------------- +// +QGraphicsLinearLayout::~QGraphicsLinearLayout( ) + { + + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLinearLayout::setOrientation +// ----------------------------------------------------------------------------- +// +void QGraphicsLinearLayout::setOrientation( + Qt::Orientation orientation ) + { + SMC_MOCK_METHOD1( void, Qt::Orientation, orientation ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLinearLayout::orientation +// ----------------------------------------------------------------------------- +// +Qt::Orientation QGraphicsLinearLayout::orientation( ) const + { + SMC_MOCK_METHOD0( Qt::Orientation ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLinearLayout::insertItem +// ----------------------------------------------------------------------------- +// +void QGraphicsLinearLayout::insertItem( + int index, + QGraphicsLayoutItem * item ) + { + SMC_MOCK_METHOD2( void, int, index, + QGraphicsLayoutItem *, item ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLinearLayout::insertStretch +// ----------------------------------------------------------------------------- +// +void QGraphicsLinearLayout::insertStretch( + int index, + int stretch ) + { + SMC_MOCK_METHOD2( void, int, index, + int, stretch ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLinearLayout::removeItem +// ----------------------------------------------------------------------------- +// +void QGraphicsLinearLayout::removeItem( + QGraphicsLayoutItem * item ) + { + SMC_MOCK_METHOD1( void, QGraphicsLayoutItem *, item ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLinearLayout::removeAt +// ----------------------------------------------------------------------------- +// +void QGraphicsLinearLayout::removeAt( + int index ) + { + SMC_MOCK_METHOD1( void, int, index ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLinearLayout::setSpacing +// ----------------------------------------------------------------------------- +// +void QGraphicsLinearLayout::setSpacing( + qreal spacing ) + { + SMC_MOCK_METHOD1( void, qreal, spacing ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLinearLayout::spacing +// ----------------------------------------------------------------------------- +// +qreal QGraphicsLinearLayout::spacing( ) const + { + SMC_MOCK_METHOD0( qreal ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLinearLayout::setItemSpacing +// ----------------------------------------------------------------------------- +// +void QGraphicsLinearLayout::setItemSpacing( + int index, + qreal spacing ) + { + SMC_MOCK_METHOD2( void, int, index, + qreal, spacing ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLinearLayout::itemSpacing +// ----------------------------------------------------------------------------- +// +qreal QGraphicsLinearLayout::itemSpacing( + int index ) const + { + SMC_MOCK_METHOD1( qreal, int, index ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLinearLayout::setStretchFactor +// ----------------------------------------------------------------------------- +// +void QGraphicsLinearLayout::setStretchFactor( + QGraphicsLayoutItem * item, + int stretch ) + { + SMC_MOCK_METHOD2( void, QGraphicsLayoutItem *, item, + int, stretch ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLinearLayout::stretchFactor +// ----------------------------------------------------------------------------- +// +int QGraphicsLinearLayout::stretchFactor( + QGraphicsLayoutItem * item ) const + { + SMC_MOCK_METHOD1( int, QGraphicsLayoutItem *, item ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLinearLayout::setAlignment +// ----------------------------------------------------------------------------- +// +void QGraphicsLinearLayout::setAlignment( + QGraphicsLayoutItem * item, + Qt::Alignment alignment ) + { +// SMC_MOCK_METHOD2( void, QGraphicsLayoutItem *, item, +// Qt::Alignment, alignment ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLinearLayout::alignment +// ----------------------------------------------------------------------------- +// +Qt::Alignment QGraphicsLinearLayout::alignment( + QGraphicsLayoutItem * item ) const + { + //SMC_MOCK_METHOD1( Qt::Alignment, QGraphicsLayoutItem *, item ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLinearLayout::setGeometry +// ----------------------------------------------------------------------------- +// +void QGraphicsLinearLayout::setGeometry( + const QRectF & rect ) + { + SMC_MOCK_METHOD1( void, const QRectF &, rect ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLinearLayout::count +// ----------------------------------------------------------------------------- +// +int QGraphicsLinearLayout::count( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLinearLayout::itemAt +// ----------------------------------------------------------------------------- +// +QGraphicsLayoutItem * QGraphicsLinearLayout::itemAt( + int index ) const + { + SMC_MOCK_METHOD1( QGraphicsLayoutItem *, int, index ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLinearLayout::invalidate +// ----------------------------------------------------------------------------- +// +void QGraphicsLinearLayout::invalidate( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLinearLayout::sizeHint +// ----------------------------------------------------------------------------- +// +QSizeF QGraphicsLinearLayout::sizeHint( + Qt::SizeHint which, + const QSizeF & constraint ) const + { + SMC_MOCK_METHOD2( QSizeF, Qt::SizeHint, which, + const QSizeF &, constraint ) + } + + +// ----------------------------------------------------------------------------- +// QGraphicsLinearLayout::dump +// ----------------------------------------------------------------------------- +// +void QGraphicsLinearLayout::dump( + int indent ) const + { + SMC_MOCK_METHOD1( void, int, indent ) + } + + + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/mocks/mock_qserviceinterfacedescriptor.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_qserviceinterfacedescriptor.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,168 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include +#include "qserviceinterfacedescriptor.h" + +QTM_BEGIN_NAMESPACE + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// QServiceInterfaceDescriptor::QServiceInterfaceDescriptor +// ----------------------------------------------------------------------------- +// +QServiceInterfaceDescriptor::QServiceInterfaceDescriptor( ) + { + + } + + +// ----------------------------------------------------------------------------- +// QServiceInterfaceDescriptor::QServiceInterfaceDescriptor +// ----------------------------------------------------------------------------- +// +QServiceInterfaceDescriptor::QServiceInterfaceDescriptor( + const QServiceInterfaceDescriptor & other ) + { + + } + + +// ----------------------------------------------------------------------------- +// QServiceInterfaceDescriptor::~QServiceInterfaceDescriptor +// ----------------------------------------------------------------------------- +// +QServiceInterfaceDescriptor::~QServiceInterfaceDescriptor( ) + { + + } + + +// ----------------------------------------------------------------------------- +// QServiceInterfaceDescriptor::= +// ----------------------------------------------------------------------------- +// +QServiceInterfaceDescriptor & QServiceInterfaceDescriptor::operator=(const QServiceInterfaceDescriptor & other ) + { + SMC_MOCK_METHOD1( QServiceInterfaceDescriptor &, const QServiceInterfaceDescriptor &, other ) + } + + +// ----------------------------------------------------------------------------- +// QServiceInterfaceDescriptor::= +// ----------------------------------------------------------------------------- +// +bool QServiceInterfaceDescriptor::operator==(const QServiceInterfaceDescriptor& other) const + { + SMC_MOCK_METHOD1( bool, const QServiceInterfaceDescriptor &, other ) + } + + +// ----------------------------------------------------------------------------- +// QServiceInterfaceDescriptor::serviceName +// ----------------------------------------------------------------------------- +// +QString QServiceInterfaceDescriptor::serviceName( ) const + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// QServiceInterfaceDescriptor::interfaceName +// ----------------------------------------------------------------------------- +// +QString QServiceInterfaceDescriptor::interfaceName( ) const + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// QServiceInterfaceDescriptor::majorVersion +// ----------------------------------------------------------------------------- +// +int QServiceInterfaceDescriptor::majorVersion( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// QServiceInterfaceDescriptor::minorVersion +// ----------------------------------------------------------------------------- +// +int QServiceInterfaceDescriptor::minorVersion( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// QServiceInterfaceDescriptor::isValid +// ----------------------------------------------------------------------------- +// +bool QServiceInterfaceDescriptor::isValid( ) const + { + SMC_MOCK_METHOD0( bool ) + } + + +// ----------------------------------------------------------------------------- +// QServiceInterfaceDescriptor::scope +// ----------------------------------------------------------------------------- +// +QService::Scope QServiceInterfaceDescriptor::scope( ) const + { + SMC_MOCK_METHOD0( QService::Scope ) + } + + +// ----------------------------------------------------------------------------- +// QServiceInterfaceDescriptor::attribute +// ----------------------------------------------------------------------------- +// +QVariant QServiceInterfaceDescriptor::attribute( + QServiceInterfaceDescriptor::Attribute which ) const + { + SMC_MOCK_METHOD1( QVariant, QServiceInterfaceDescriptor::Attribute, which ) + } + + +// ----------------------------------------------------------------------------- +// QServiceInterfaceDescriptor::customAttribute +// ----------------------------------------------------------------------------- +// +QString QServiceInterfaceDescriptor::customAttribute( + const QString & which ) const + { + SMC_MOCK_METHOD1( QString, const QString &, which ) + } + + +// ----------------------------------------------------------------------------- +// QServiceInterfaceDescriptor::customAttributes +// ----------------------------------------------------------------------------- +// +QStringList QServiceInterfaceDescriptor::customAttributes( ) const + { + SMC_MOCK_METHOD0( QStringList ) + } + +QTM_END_NAMESPACE diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/mocks/mock_qserviceplugininterface.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_qserviceplugininterface.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,65 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include + + +QTM_BEGIN_NAMESPACE + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// QServicePluginInterface::QServicePluginInterface +// ----------------------------------------------------------------------------- +// +QServicePluginInterface::QServicePluginInterface( ) + { + + } + + +// ----------------------------------------------------------------------------- +// QServicePluginInterface::~QServicePluginInterface +// ----------------------------------------------------------------------------- +// +QServicePluginInterface::~QServicePluginInterface( ) + { + + } + + +// ----------------------------------------------------------------------------- +// QServicePluginInterface::installService +// ----------------------------------------------------------------------------- +// +void QServicePluginInterface::installService( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// QServicePluginInterface::uninstallService +// ----------------------------------------------------------------------------- +// +void QServicePluginInterface::uninstallService( ) + { + SMC_MOCK_METHOD0( void ) + } + +QTM_END_NAMESPACE \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/mocks/mock_rsatservice.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_rsatservice.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,137 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include "rsatservice.h" + +class TSatIconInfo{ + +}; + +class RSatSession{ + +}; + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// RSatService::RSatService +// ----------------------------------------------------------------------------- +// +RSatService::RSatService( ) + //: + //RSubSessionBase( /**/ ) + { + + } + + +// ----------------------------------------------------------------------------- +// RSatService::OpenL +// ----------------------------------------------------------------------------- +// +void RSatService::OpenL( + const RSatSession & aSession ) + { + SMC_MOCK_METHOD1( void, const RSatSession &, aSession ) + } + + +// ----------------------------------------------------------------------------- +// RSatService::Close +// ----------------------------------------------------------------------------- +// +void RSatService::Close( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// RSatService::NotifySetupIdleModeTextChange +// ----------------------------------------------------------------------------- +// +TInt RSatService::NotifySetupIdleModeTextChange( + TRequestStatus & aStatus ) + { + SMC_MOCK_METHOD1( TInt, TRequestStatus &, aStatus ) + } + + +// ----------------------------------------------------------------------------- +// RSatService::NotifySetupIdleModeTextChangeCancel +// ----------------------------------------------------------------------------- +// +void RSatService::NotifySetupIdleModeTextChangeCancel( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// RSatService::GetSetupIdleModeTextL +// ----------------------------------------------------------------------------- +// +TBool RSatService::GetSetupIdleModeTextL( + HBufC * & aText, + TSatIconQualifier & aIconQualifier, + TUint8 & aRecordNumber ) + { + aText = HBufC::NewL(15); + SMC_MOCK_METHOD3( TBool, + HBufC* , aText, + TSatIconQualifier &, aIconQualifier, + TUint8 &, aRecordNumber ) + } + + +// ----------------------------------------------------------------------------- +// RSatService::GetIconInfoL +// ----------------------------------------------------------------------------- +// +void RSatService::GetIconInfoL( + TUint8 aRecordNumber, + RIconEf & aIconEf ) const + { + SMC_MOCK_METHOD2( void, TUint8, aRecordNumber, + RIconEf &, aIconEf ) + } + + +// ----------------------------------------------------------------------------- +// RSatService::GetIconL +// ----------------------------------------------------------------------------- +// +CFbsBitmap * RSatService::GetIconL( + const TSatIconInfo & aIconInfo ) const + { + SMC_MOCK_METHOD1( CFbsBitmap *, const TSatIconInfo &, aIconInfo ) + } + + +// ----------------------------------------------------------------------------- +// RSatService::SetIdleModeTextResponse +// ----------------------------------------------------------------------------- +// +void RSatService::SetIdleModeTextResponse( + const TSATIdleResult & aResult ) const + { + SMC_MOCK_METHOD1( void, const TSATIdleResult &, aResult ) + } + + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/mocks/mock_xqsettingskey.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_xqsettingskey.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,126 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include "xqsettingskey.h" + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// XQSettingsKey::XQSettingsKey +// ----------------------------------------------------------------------------- +// +XQSettingsKey::XQSettingsKey( + XQSettingsKey::Target target, + long int uid, + unsigned long int key ) + { + Q_UNUSED(target) + Q_UNUSED(uid) + Q_UNUSED(key) + } + + +// ----------------------------------------------------------------------------- +// XQSettingsKey::~XQSettingsKey +// ----------------------------------------------------------------------------- +// +XQSettingsKey::~XQSettingsKey( ) + { + + } + + +// ----------------------------------------------------------------------------- +// XQSettingsKey::target +// ----------------------------------------------------------------------------- +// +XQSettingsKey::Target XQSettingsKey::target( ) const + { + + XQSettingsKey::Target variable = (XQSettingsKey::Target)1; + return variable; + } + + +// ----------------------------------------------------------------------------- +// XQSettingsKey::uid +// ----------------------------------------------------------------------------- +// +long int XQSettingsKey::uid( ) const + { + + return 0; + } + + +// ----------------------------------------------------------------------------- +// XQSettingsKey::key +// ----------------------------------------------------------------------------- +// +unsigned long int XQSettingsKey::key( ) const + { + + return 0; + } + + +// ----------------------------------------------------------------------------- +// XQPublishAndSubscribeSettingsKey::XQPublishAndSubscribeSettingsKey +// ----------------------------------------------------------------------------- +// +XQPublishAndSubscribeSettingsKey::XQPublishAndSubscribeSettingsKey( + long int categoryUid, + unsigned long int key ) : + XQSettingsKey( XQSettingsKey::TargetPublishAndSubscribe, categoryUid, key ) + { + + } + + +// ----------------------------------------------------------------------------- +// XQPublishAndSubscribeSettingsKey::~XQPublishAndSubscribeSettingsKey +// ----------------------------------------------------------------------------- +// +XQPublishAndSubscribeSettingsKey::~XQPublishAndSubscribeSettingsKey( ) + { + + } + + +// ----------------------------------------------------------------------------- +// XQCentralRepositorySettingsKey::XQCentralRepositorySettingsKey +// ----------------------------------------------------------------------------- +// +XQCentralRepositorySettingsKey::XQCentralRepositorySettingsKey( + long int repositoryUid, + unsigned long int key ) : + XQSettingsKey( XQSettingsKey::TargetCentralRepository, repositoryUid, key ) + { + + } + + +// ----------------------------------------------------------------------------- +// XQCentralRepositorySettingsKey::~XQCentralRepositorySettingsKey +// ----------------------------------------------------------------------------- +// +XQCentralRepositorySettingsKey::~XQCentralRepositorySettingsKey( ) + { + + } + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/mocks/mock_xqsettingsmanager.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_xqsettingsmanager.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,101 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include "xqsettingsmanager.h" + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// XQSettingsManager::XQSettingsManager +// ----------------------------------------------------------------------------- +// +XQSettingsManager::XQSettingsManager( + QObject * parent ) + : QObject( parent ) + { + + } + +// ----------------------------------------------------------------------------- +// XQSettingsManager::~XQSettingsManager +// ----------------------------------------------------------------------------- +// +XQSettingsManager::~XQSettingsManager( ) + { + + } + + +// ----------------------------------------------------------------------------- +// XQSettingsManager::readItemValue +// ----------------------------------------------------------------------------- +// +QVariant XQSettingsManager::readItemValue( + const XQSettingsKey & key, + XQSettingsManager::Type type ) + { + SMC_MOCK_METHOD2( QVariant, XQSettingsKey &, key, XQSettingsManager::Type, type ) + } + + +// ----------------------------------------------------------------------------- +// XQSettingsManager::writeItemValue +// ----------------------------------------------------------------------------- +// +bool XQSettingsManager::writeItemValue( + const XQSettingsKey & key, + const QVariant & value ) + { + SMC_MOCK_METHOD2( bool, XQSettingsKey &, key, QVariant &, value ) + } + + +// ----------------------------------------------------------------------------- +// XQSettingsManager::startMonitoring +// ----------------------------------------------------------------------------- +// +bool XQSettingsManager::startMonitoring( + const XQSettingsKey & key, + XQSettingsManager::Type type ) + { + SMC_MOCK_METHOD2( bool, XQSettingsKey &, key, XQSettingsManager::Type, type ) + } + + +// ----------------------------------------------------------------------------- +// XQSettingsManager::stopMonitoring +// ----------------------------------------------------------------------------- +// +bool XQSettingsManager::stopMonitoring( + const XQSettingsKey & key ) + { + SMC_MOCK_METHOD1( bool, XQSettingsKey &, key ) + } + + +// ----------------------------------------------------------------------------- +// XQSettingsManager::error +// ----------------------------------------------------------------------------- +// +XQSettingsManager::Error XQSettingsManager::error( ) const + { + SMC_MOCK_METHOD0( XQSettingsManager::Error ) + } + + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/run_auto_tests_qt.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/run_auto_tests_qt.bat Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,194 @@ +rem +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: +rem + +@echo off +setlocal +goto :startup + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function DEFAULT +:: +:: Modify this function +:: - TESTED_SRC can be changed to match tested code. +:: Specifies path from testcode group directory to +:: tested code +:: - Add test directories to be runned +:: ie. "call :build ut_projectdirectory" or use +:: "for /f %%a in ('dir /b ut_*') do call :build %%a" +:: which compiles, instruments and runs all test directories +:: starting with "ut_". +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:DEFAULT +set TESTED_SRC=..\..\infowidget\src\*.cpp + +for /f %%a in ('dir /b ut_*') do call :build %%a +if [%DOMODULESTESTS%] EQU [TRUE] ( +for /f %%a in ('dir /b mt_*') do call :build %%a +) + +call :finish +goto :END + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function STARTUP +:: +:: Initializing script +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:STARTUP + +set BUILDTESTS=TRUE +set RUNTESTS=TRUE +set INSTRUMENT=TRUE +set REMOVEINSTRUMENT=TRUE +set DOMODULESTESTS=TRUE +set ABLD_CALL= -2comp sbs.bat -c winscw_udeb --keepgoing +set PATH_TO_DLL=\epoc32\release\winscw\udeb +set PATH_TO_COVERAGE_DATA=\coverage_data +set PATH_TO_RESULT=\test_result + +if not exist %PATH_TO_COVERAGE_DATA% ( +mkdir %PATH_TO_COVERAGE_DATA% +) + +if not exist %PATH_TO_RESULT% ( +mkdir %PATH_TO_RESULT% +) + +if [%1] EQU [] ( goto default ) + +call :%1 +call :%2 +call :%3 +call :%4 +call :%5 +echo Running tests = %RUNTESTS% +echo Instrumenting tests = %INSTRUMENT% +goto default + +:/NOCLEANUP +set REMOVEINSTRUMENT=FALSE +goto end + +:/NORUN +set RUNTESTS=FALSE +set REMOVEINSTRUMENT=FALSE +goto end + +:/NOINSTRUMENT +set INSTRUMENT=FALSE +goto end + +:/NOBUILD +set BUILDTESTS=FALSE +goto end + +:/ONLYUNITTESTS +set DOMODULESTESTS=FALSE +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function FINISH +:: +:: Finishes run_auto_tests.bat +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:FINISH + +if [%RUNTESTS%] EQU [TRUE] ( +call :runtests +) + +if [%INSTRUMENT%] EQU [TRUE] ( +call :calculatecoverage +) + +if [%REMOVEINSTRUMENT%] EQU [TRUE] ( +call :removecoverage +) +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function BUILD +:: param directory +:: +:: builds test from given directory +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:BUILD +setlocal +if [%BUILDTESTS%] EQU [FALSE] ( goto end ) +echo Building %1 +if not exist %1 ( +echo %1 Not found! +goto end +) + +pushd . +call cd %1 +call qmake +call sbs -c winscw_udeb clean +if [%INSTRUMENT%] EQU [TRUE] ( +call ctcwrap -n %PATH_TO_COVERAGE_DATA%\%1 -i d -C "EXCLUDE=*" -C "NO_EXCLUDE=%TESTED_SRC%" %ABLD_CALL% +) else ( +call %ABLD_CALL% +) + +popd +endlocal +goto end + + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function RUNTESTS +:: +:: NOTE! Function assumes that test binary is named according to test directory. +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:RUNTESTS +echo Running tests +for /f %%a in ('dir /b ut_*') do ( + call %PATH_TO_DLL%\%%a.exe + move \epoc32\winscw\c\data\%%a.log %PATH_TO_RESULT%\%%a.log +) +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function CALCULATECOVERAGE +:: +:: Calculates test coverage. Generates html +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:CALCULATECOVERAGE +echo Calculating coverage +ctcpost %PATH_TO_COVERAGE_DATA%\*.sym -p - | ctcmerge -i - -o profile.txt +call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function REMOVECOVERAGE +:: +:: Removes data from coverage directory +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:REMOVECOVERAGE +echo Removing deleting coverage data +call del %PATH_TO_COVERAGE_DATA%\*.sym +call del %PATH_TO_COVERAGE_DATA%\*.dat +call del profile.txt +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function END +:: +:: Prints done +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:END +echo Done! \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidget/inc/ut_infowidget.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidget/inc/ut_infowidget.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,101 @@ +/* +* 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 UT_INFOWIDGET_H +#define UT_INFOWIDGET_H + +#include +#include +#include +#include +#include +#include "infowidgetengine.h" + +class InfoWidget; + +class UT_InfoWidget : public QObject, public MockService +{ + Q_OBJECT + +public: + + UT_InfoWidget(); + ~UT_InfoWidget(); + +private slots: + + void init(); + void cleanup(); + + //From QGraphicsItem. + void t_boundingRect(); + void t_shape(); + void t_sizePolicy(); + + void t_setSpnDisplay(); + void t_setMcnDisplay(); + void t_setSatDisplay(); + + void t_paint(); + void t_mousePressEvent(); + void t_mouseReleaseEvent(); + void t_mouseMoveEvent(); + void t_updateInfoDisplay(); + void t_readPersistentPreferences(); + + void t_onInitialize(); + void t_onUninitialize(); + void t_onShow(); + void t_onHide(); + void t_readModel(); + void t_handleModelError(); + void t_spnDisplaySettingChanged(); + void t_mcnDisplaySettingChanged(); + void t_satDisplaySettingChanged(); + void t_settingsEditingFinished(); + + // private implementation tests + void t_updateItemsVisibility(); + void t_layoutInfoDisplay(); + void t_layoutSettingsDialog(); + void t_initializeSettingsDialogItems(); + void t_startChanges(); + void t_endChanges(); + + void t_sizeHint(); + + void t_startMarquees(); + void t_stopMarquees(); + void t_marqueeNext(); + + /* + * Not work from commmand prompt. + */ + void t_changeEvent(); + + void t_timerEvent(); + +private: + + InfoWidget *m_infoWidget; + InfoWidgetEngine::ModelData m_modelData; + QColor m_qcolor; + QGraphicsWidget m_qgraphicswidget; + +}; + +#endif // UT_INFOWIDGET_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidget/run_auto_tests_qt.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidget/run_auto_tests_qt.bat Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,192 @@ +rem +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: +rem + +@echo off +setlocal +goto :startup + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function DEFAULT +:: +:: Modify this function +:: - TESTED_SRC can be changed to match tested code. +:: Specifies path from testcode group directory to +:: tested code +:: - Add test directories to be runned +:: ie. "call :build ut_projectdirectory" or use +:: "for /f %%a in ('dir /b ut_*') do call :build %%a" +:: which compiles, instruments and runs all test directories +:: starting with "ut_". +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:DEFAULT +set TESTED_SRC=..\..\infowidget\src\*.cpp + +for /f %%a in ('dir /b ut_*') do call :build %%a +if [%DOMODULESTESTS%] EQU [TRUE] ( +for /f %%a in ('dir /b mt_*') do call :build %%a +) + +call :finish +goto :END + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function STARTUP +:: +:: Initializing script +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:STARTUP + +set BUILDTESTS=TRUE +set RUNTESTS=TRUE +set INSTRUMENT=TRUE +set REMOVEINSTRUMENT=TRUE +set DOMODULESTESTS=TRUE +set ABLD_CALL= -2comp sbs.bat -c winscw_udeb --keepgoing +set PATH_TO_DLL=\epoc32\release\winscw\udeb +set PATH_TO_COVERAGE_DATA=\coverage_data +set PATH_TO_RESULT=\test_result + +if not exist %PATH_TO_COVERAGE_DATA% ( +mkdir %PATH_TO_COVERAGE_DATA% +) + +if not exist %PATH_TO_RESULT% ( +mkdir %PATH_TO_RESULT% +) + +if [%1] EQU [] ( goto default ) + +call :%1 +call :%2 +call :%3 +call :%4 +call :%5 +echo Running tests = %RUNTESTS% +echo Instrumenting tests = %INSTRUMENT% +goto default + +:/NOCLEANUP +set REMOVEINSTRUMENT=FALSE +goto end + +:/NORUN +set RUNTESTS=FALSE +set REMOVEINSTRUMENT=FALSE +goto end + +:/NOINSTRUMENT +set INSTRUMENT=FALSE +goto end + +:/NOBUILD +set BUILDTESTS=FALSE +goto end + +:/ONLYUNITTESTS +set DOMODULESTESTS=FALSE +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function FINISH +:: +:: Finishes run_auto_tests.bat +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:FINISH + +if [%RUNTESTS%] EQU [TRUE] ( +call :runtests +) + +if [%INSTRUMENT%] EQU [TRUE] ( +call :calculatecoverage +) + +if [%REMOVEINSTRUMENT%] EQU [TRUE] ( +call :removecoverage +) +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function BUILD +:: param directory +:: +:: builds test from given directory +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:BUILD +setlocal +if [%BUILDTESTS%] EQU [FALSE] ( goto end ) +echo Building %1 +if not exist %1 ( +echo %1 Not found! +goto end +) + +pushd . +call cd %1 +call qmake +call sbs -c winscw_udeb clean +if [%INSTRUMENT%] EQU [TRUE] ( +call ctcwrap -n %PATH_TO_COVERAGE_DATA%\%1 -i d -C "EXCLUDE=*" -C "NO_EXCLUDE=%TESTED_SRC%" %ABLD_CALL% +) else ( +call %ABLD_CALL% +) + +popd +endlocal +goto end + + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function RUNTESTS +:: +:: NOTE! Function assumes that test binary is named according to test directory. +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:RUNTESTS +echo Running tests +call %PATH_TO_DLL%\ut_infowidget.exe -- +move \epoc32\winscw\c\data\ut_infowidget.log %PATH_TO_RESULT%\ut_infowidget.log +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function CALCULATECOVERAGE +:: +:: Calculates test coverage. Generates html +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:CALCULATECOVERAGE +echo Calculating coverage +ctcpost %PATH_TO_COVERAGE_DATA%\*.sym -p - | ctcmerge -i - -o profile.txt +call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function REMOVECOVERAGE +:: +:: Removes data from coverage directory +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:REMOVECOVERAGE +echo Removing deleting coverage data +call del %PATH_TO_COVERAGE_DATA%\*.sym +call del %PATH_TO_COVERAGE_DATA%\*.dat +call del profile.txt +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function END +:: +:: Prints done +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:END +echo Done! \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidget/src/ut_infowidget.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidget/src/ut_infowidget.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,823 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "ut_infowidget.h" +#include "qtestmains60.h" + +#define private friend class UT_InfoWidget;private +#include "infowidget.h" + +// mocked dependencies +#include "infowidgetpreferences.h" + +const QString KPreferenceOn("On"); +const QString KPreferenceOff("Off"); +const QString KSpnName("testprovider"); +const QString KMcnName("tnw1: 3233255435"); +const QString KSatText("satdisplaytesttext"); + + +// Stub +void QGraphicsWidget::resize( + const QSizeF & size ) +{ + Q_UNUSED(size); +} + + +/*! + UT_InfoWidget::UT_InfoWidget + */ +UT_InfoWidget::UT_InfoWidget() + : m_infoWidget(0) +{ + m_modelData.setActiveLine(1); + m_modelData.setHomeZoneIndicatorType(1); + m_modelData.setMcnName(KMcnName); + m_modelData.setServiceProviderName(KSpnName); + m_modelData.setSatDisplayText(KSatText); + + SmcDefaultValue::SetL(m_modelData); + SmcDefaultValue::SetL(m_qcolor); + SmcDefaultValue::SetL(&m_qgraphicswidget); +} + +/*! + UT_InfoWidget::~UT_InfoWidget + */ +UT_InfoWidget::~UT_InfoWidget() +{ + delete m_infoWidget; +} + +/*! + UT_InfoWidget::init + */ +void UT_InfoWidget::init() +{ + initialize(); + + SmcDefaultValue::SetL("On"); + SmcDefaultValue::SetL( + InfoWidgetLayoutManager::InfoDisplay); + m_infoWidget = new InfoWidget(); + SmcDefaultValue::SetL(""); + + QVERIFY(verify()); +} + +/*! + UT_InfoWidget::cleanup + */ +void UT_InfoWidget::cleanup() +{ + reset(); + + delete m_infoWidget; + m_infoWidget = 0; +} + +/*! + UT_InfoWidget::t_boundingRect + */ +void UT_InfoWidget::t_boundingRect() +{ + m_infoWidget->boundingRect(); +} + +/*! + UT_InfoWidget::t_shape + */ +void UT_InfoWidget::t_shape() +{ + m_infoWidget->shape(); +} + + +/*! + UT_InfoWidget::t_sizePolicy + */ +void UT_InfoWidget::t_sizePolicy() +{ + QVERIFY(m_infoWidget->sizePolicy() == + QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed)); +} + +/*! + UT_InfoWidget::t_setSpnDisplay + */ +void UT_InfoWidget::t_setSpnDisplay() +{ + EXPECT(InfoWidgetPreferences::setPreference) + .with(InfoWidgetPreferences::DisplaySpn, KPreferenceOn); + + m_infoWidget->setSpnDisplay(KPreferenceOn); + + QVERIFY(verify()); +} + +/*! + UT_InfoWidget::t_setMcnDisplay + */ +void UT_InfoWidget::t_setMcnDisplay() +{ + EXPECT(InfoWidgetPreferences::setPreference) + .with(InfoWidgetPreferences::DisplayMcn, KPreferenceOn); + + m_infoWidget->setMcnDisplay(KPreferenceOn); + + QVERIFY(verify()); +} + +/*! + UT_InfoWidget::t_setSatDisplay + */ +void UT_InfoWidget::t_setSatDisplay() +{ + EXPECT(InfoWidgetPreferences::setPreference) + .with(InfoWidgetPreferences::DisplaySatText, KPreferenceOn); + + m_infoWidget->setSatDisplay(KPreferenceOn); + + QVERIFY(verify()); +} + +/*! + UT_InfoWidget::t_paint + */ +void UT_InfoWidget::t_paint() +{ + QScopedPointer painter(new QPainter()); + QStyleOptionGraphicsItem *option = NULL; + QWidget *widget = NULL; + + m_infoWidget->paint(painter.data(), option, widget); + + // layout change ongoing while paint requested + m_infoWidget->startChanges(); + m_infoWidget->paint(painter.data(), option, widget); +} + +/*! + UT_InfoWidget::t_mousePressEvent + */ +void UT_InfoWidget::t_mousePressEvent() +{ + QGraphicsSceneMouseEvent event; + m_infoWidget->mousePressEvent(&event); +} + +/*! + UT_InfoWidget::t_mouseReleaseEvent + */ +void UT_InfoWidget::t_mouseReleaseEvent() +{ + QGraphicsSceneMouseEvent event; + + // widget clicked while showing info display => + // switch to settings display expected + EXPECT(InfoWidgetLayoutManager::currentDisplayRole) + .returns(InfoWidgetLayoutManager::InfoDisplay); + EXPECT(InfoWidgetLayoutManager::layoutSettingsDialog); + m_infoWidget->mousePressEvent(&event); + m_infoWidget->mouseReleaseEvent(&event); + + // widget clicked while showing settings display => + // no action expected + EXPECT(InfoWidgetLayoutManager::currentDisplayRole) + .returns(InfoWidgetLayoutManager::SettingsDialog); + EXPECT(InfoWidgetLayoutManager::layoutSettingsDialog).times(0); + m_infoWidget->mousePressEvent(&event); + m_infoWidget->mouseReleaseEvent(&event); + + // release event received after dragging widget => + // no action expected + EXPECT(InfoWidgetLayoutManager::layoutSettingsDialog).times(0); + m_infoWidget->mouseMoveEvent(&event); + m_infoWidget->mouseReleaseEvent(&event); + + QVERIFY(verify()); +} + +/*! + UT_InfoWidget::t_mouseMoveEvent + */ +void UT_InfoWidget::t_mouseMoveEvent() +{ + +} + +/*! + UT_InfoWidget::t_updateInfoDisplay + */ +void UT_InfoWidget::t_updateInfoDisplay() +{ + HbMarqueeItem spnMarqueeItem; + HbMarqueeItem mcnMarqueeItem; + HbMarqueeItem satMarqueeItem; + QGraphicsWidget* pointerSpnMarqueeItem = qobject_cast(&spnMarqueeItem); + QGraphicsWidget* pointerMcnMarqueeItem = qobject_cast(&mcnMarqueeItem); + QGraphicsWidget* pointerSatMarqueeItem = qobject_cast(&satMarqueeItem); + + // Precondition: + m_infoWidget->m_initialized = true; + + InfoWidgetEngine::ModelData modelData; + modelData.setMcnName("testmcn"); + modelData.setServiceProviderName("testspn"); + modelData.setSatDisplayText("testsat"); + const InfoWidgetEngine::ModelData& modelDataConstRef(modelData); + + // Test 1: text data has been initialized to model (in UT_InfoWidget::UT_InfoWidget()) + EXPECT(InfoWidgetLayoutManager::currentDisplayRole).returns(InfoWidgetLayoutManager::InfoDisplay); + EXPECT(InfoWidgetEngine::modelData).returns(modelDataConstRef); + + EXPECT(InfoWidgetLayoutManager::getWidget) + .with(InfoWidgetLayoutManager::RoleSpnMarqueeItem) + .returns(pointerSpnMarqueeItem); + EXPECT(HbMarqueeItem::setText); + EXPECT(HbMarqueeItem::setTextColor); + EXPECT(QGraphicsWidget::adjustSize); + EXPECT(InfoWidgetLayoutManager::textFitsToRect) + .returns(false); + + EXPECT(InfoWidgetLayoutManager::getWidget) + .with(InfoWidgetLayoutManager::RoleMcnMarqueeItem) + .returns(pointerSpnMarqueeItem); + EXPECT(HbMarqueeItem::setText); + EXPECT(HbMarqueeItem::setTextColor); + EXPECT(QGraphicsWidget::adjustSize); + EXPECT(InfoWidgetLayoutManager::textFitsToRect) + .returns(false); + + EXPECT(InfoWidgetLayoutManager::getWidget) + .with(InfoWidgetLayoutManager::RoleSatMarqueeItem) + .returns(pointerSatMarqueeItem); + + EXPECT(HbMarqueeItem::setText); + EXPECT(HbMarqueeItem::setTextColor); + EXPECT(QGraphicsWidget::adjustSize); + EXPECT(InfoWidgetLayoutManager::textFitsToRect) + .returns(false); + + m_infoWidget->updateInfoDisplay(); + QVERIFY(m_infoWidget->m_animatingItems.count() == 3); + + QVERIFY(verify()); + + // Test 2: empty data, verify items are not appended to m_animatingItems + EXPECT(InfoWidgetLayoutManager::currentDisplayRole).returns(InfoWidgetLayoutManager::InfoDisplay); + EXPECT(InfoWidgetEngine::modelData).returns(modelDataConstRef); + + m_modelData.setServiceProviderName("testspn"); + m_modelData.setMcnName("testmcn"); + m_modelData.setSatDisplayText("testsat"); + EXPECT(InfoWidgetLayoutManager::getWidget) + .with(InfoWidgetLayoutManager::RoleSpnMarqueeItem) + .returns(pointerSpnMarqueeItem); + EXPECT(HbMarqueeItem::setText); + EXPECT(HbMarqueeItem::setTextColor); + EXPECT(QGraphicsWidget::adjustSize); + EXPECT(InfoWidgetLayoutManager::textFitsToRect) + .returns(true); + + EXPECT(InfoWidgetLayoutManager::getWidget) + .with(InfoWidgetLayoutManager::RoleMcnMarqueeItem) + .returns(pointerSpnMarqueeItem); + EXPECT(HbMarqueeItem::setText); + EXPECT(HbMarqueeItem::setTextColor); + EXPECT(QGraphicsWidget::adjustSize); + EXPECT(InfoWidgetLayoutManager::textFitsToRect) + .returns(true); + + EXPECT(InfoWidgetLayoutManager::getWidget) + .with(InfoWidgetLayoutManager::RoleSatMarqueeItem) + .returns(pointerSatMarqueeItem); + EXPECT(HbMarqueeItem::setText); + EXPECT(HbMarqueeItem::setTextColor); + EXPECT(QGraphicsWidget::adjustSize); + EXPECT(InfoWidgetLayoutManager::textFitsToRect) + .returns(true); + + m_infoWidget->updateInfoDisplay(); + QVERIFY(m_infoWidget->m_animatingItems.count() == 0); + + QVERIFY(verify()); + + // Change state: + m_infoWidget->m_initialized = false; + m_infoWidget->updateInfoDisplay(); + QVERIFY(m_infoWidget->m_animatingItems.count() == 0); + + QVERIFY(verify()); +} + +/*! + UT_InfoWidget::t_readPersistentPreferences + */ +void UT_InfoWidget::t_readPersistentPreferences() +{ + EXPECT(InfoWidgetPreferences::setPreference) + .with(InfoWidgetPreferences::DisplayHomeZone, QString("")); + + EXPECT(InfoWidgetPreferences::setPreference) + .with(InfoWidgetPreferences::DisplayMcn, QString("")); + + EXPECT(InfoWidgetPreferences::setPreference) + .with(InfoWidgetPreferences::DisplayActiveLine, QString("")); + + EXPECT(InfoWidgetPreferences::setPreference) + .with(InfoWidgetPreferences::DisplaySatText, QString("")); + + EXPECT(InfoWidgetPreferences::setPreference) + .with(InfoWidgetPreferences::DisplaySpn, QString("")); + + EXPECT(InfoWidgetPreferences::validate); + + m_infoWidget->readPersistentPreferences(); + + QVERIFY(verify()); + + // one visible item initially + EXPECT(InfoWidgetPreferences::validate).returns(true); + EXPECT(InfoWidgetPreferences::storePreferences); + + m_infoWidget->readPersistentPreferences(); + + QVERIFY(verify()); +} + +/*! + UT_InfoWidget::t_onInitialize + */ +void UT_InfoWidget::t_onInitialize() +{ + QGraphicsWidget *contentWidget = NULL; + + // Test onInitialize sequence where + // meta-object properties have been + // initialized + EXPECT(InfoWidgetPreferences::validate) + .returns(true); + EXPECT(InfoWidgetPreferences::storePreferences) + .returns(true); + EXPECT(InfoWidgetLayoutManager::contentWidget) + .returns(contentWidget); + + m_infoWidget->onInitialize(); + + // Test onInitialize sequence where + // meta-object properties are + // uninitialized + EXPECT(InfoWidgetPreferences::validate) + .returns(false); + EXPECT(InfoWidgetLayoutManager::contentWidget) + .returns(contentWidget); + m_infoWidget->onInitialize(); +} + +/*! + UT_InfoWidget::t_onUninitialize + */ +void UT_InfoWidget::t_onUninitialize() +{ + m_infoWidget->onUninitialize(); +} + +/*! + UT_InfoWidget::t_onShow + */ +void UT_InfoWidget::t_onShow() +{ + + m_infoWidget->m_animationState = InfoWidget::AnimationIdle; + EXPECT(InfoWidgetEngine::resume); + m_infoWidget->onShow(); + + m_infoWidget->m_animationState = InfoWidget::AnimationOngoing; + EXPECT(InfoWidgetEngine::resume); + m_infoWidget->onShow(); + + m_infoWidget->m_animationState = InfoWidget::AnimationStarting; + EXPECT(InfoWidgetEngine::resume); + m_infoWidget->onShow(); + +} + +/*! + UT_InfoWidget::t_onHide + */ +void UT_InfoWidget::t_onHide() +{ + m_infoWidget->onHide(); +} + +/*! + UT_InfoWidget::t_readModel + */ +void UT_InfoWidget::t_readModel() +{ + EXPECT(InfoWidgetLayoutManager::currentDisplayRole) + .returns(InfoWidgetLayoutManager::InfoDisplay); + m_infoWidget->readModel(); + + EXPECT(InfoWidgetLayoutManager::currentDisplayRole) + .returns(InfoWidgetLayoutManager::SettingsDialog); + m_infoWidget->readModel(); + + QVERIFY(verify()); +} + +/*! + UT_InfoWidget::t_handleModelError + */ +void UT_InfoWidget::t_handleModelError() +{ + int operation(0); + int errorCode(0); + m_infoWidget->handleModelError(operation, errorCode); +} + +void UT_InfoWidget::t_spnDisplaySettingChanged() +{ + // user enables home zone setting + EXPECT(InfoWidgetPreferences::setPreference) + .with(InfoWidgetPreferences::DisplaySpn, KPreferenceOn); + int setting(Qt::Checked); + m_infoWidget->spnDisplaySettingChanged(setting); + + // user disables home zone setting + EXPECT(InfoWidgetPreferences::setPreference) + .with(InfoWidgetPreferences::DisplaySpn, KPreferenceOff); + setting = Qt::Unchecked; + m_infoWidget->spnDisplaySettingChanged(setting); + + QVERIFY(verify()); +} + +void UT_InfoWidget::t_mcnDisplaySettingChanged() +{ + // user enables MCN setting + EXPECT(InfoWidgetPreferences::setPreference) + .with(InfoWidgetPreferences::DisplayMcn, KPreferenceOn); + int setting(Qt::Checked); + m_infoWidget->mcnDisplaySettingChanged(setting); + + // user disables MCN setting + EXPECT(InfoWidgetPreferences::setPreference) + .with(InfoWidgetPreferences::DisplayMcn, KPreferenceOff); + setting = Qt::Unchecked; + m_infoWidget->mcnDisplaySettingChanged(setting); + + QVERIFY(verify()); +} + +void UT_InfoWidget::t_satDisplaySettingChanged() +{ + // user enables SAT setting + EXPECT(InfoWidgetPreferences::setPreference) + .with(InfoWidgetPreferences::DisplaySatText, KPreferenceOn); + int setting(Qt::Checked); + m_infoWidget->satDisplaySettingChanged(setting); + + // user disables SAT setting + EXPECT(InfoWidgetPreferences::setPreference) + .with(InfoWidgetPreferences::DisplaySatText, KPreferenceOff); + setting = Qt::Unchecked; + m_infoWidget->satDisplaySettingChanged(setting); + + QVERIFY(verify()); +} + +void UT_InfoWidget::t_settingsEditingFinished() +{ + EXPECT(InfoWidgetPreferences::validate) + .returns(true); + EXPECT(InfoWidgetPreferences::storePreferences) + .returns(false); + + QGraphicsWidget *contentWidget = NULL; + EXPECT(InfoWidgetLayoutManager::contentWidget) + .returns(contentWidget); + + m_infoWidget->settingsEditingFinished(); +} + +void UT_InfoWidget::t_updateItemsVisibility() +{ + // all items visible + EXPECT(InfoWidgetPreferences::preference) + .with(InfoWidgetPreferences::DisplaySpn) + .returns(KPreferenceOn); + EXPECT(InfoWidgetPreferences::preference) + .with(InfoWidgetPreferences::DisplayMcn) + .returns(KPreferenceOn); + EXPECT(InfoWidgetPreferences::preference) + .with(InfoWidgetPreferences::DisplaySatText) + .returns(KPreferenceOn); + EXPECT(InfoWidgetLayoutManager::setLayoutRows) + .with(3); + + m_infoWidget->updateItemsVisibility(); + QVERIFY(verify()); + +} + +void UT_InfoWidget::t_layoutInfoDisplay() +{ + QGraphicsWidget *contentWidget = NULL; + EXPECT(InfoWidgetLayoutManager::contentWidget) + .returns(contentWidget); + + m_infoWidget->layoutInfoDisplay(); + + QVERIFY(verify()); +} + +void UT_InfoWidget::t_layoutSettingsDialog() +{ + m_infoWidget->layoutSettingsDialog(); + + QVERIFY(verify()); +} + +void UT_InfoWidget::t_initializeSettingsDialogItems() +{ + QGraphicsWidget spnCheckBox; + EXPECT(InfoWidgetLayoutManager::getWidget) + .with(InfoWidgetLayoutManager::RoleSpnCheckBox) + .returns(&spnCheckBox); + + QGraphicsWidget mcnCheckBox; + EXPECT(InfoWidgetLayoutManager::getWidget) + .with(InfoWidgetLayoutManager::RoleMcnCheckBox) + .returns(&mcnCheckBox); + + QGraphicsWidget satTextCheckBox; + EXPECT(InfoWidgetLayoutManager::getWidget) + .with(InfoWidgetLayoutManager::RoleSatTextCheckBox) + .returns(&satTextCheckBox); + + m_infoWidget->initializeSettingsDialogItems(); + + QVERIFY(verify()); +} + +void UT_InfoWidget::t_startChanges() +{ + m_infoWidget->startChanges(); +} + +void UT_InfoWidget::t_endChanges() +{ + m_infoWidget->endChanges(); +} + +/*! + UT_InfoWidget::t_changeEvent + */ +void UT_InfoWidget::t_changeEvent() +{ + /* + * Not work from commmand prompt. + */ + HbEvent event(HbEvent::ThemeChanged); + EXPECT(HbWidget::changeEvent).with(&event); + m_infoWidget->changeEvent(&event); + QVERIFY(verify()); +} + +/*! + UT_InfoWidget::t_sizeHint + */ +void UT_InfoWidget::t_sizeHint() +{ + const QSizeF KMinimumSize(33.5, 160); + const QSizeF KPreferredSize(134, 160); + const QSizeF KDefaultSizeInfoDisplay(200, 100); + const QSizeF KDefaultSizeSettingsDisplay(230, 220); + QGraphicsWidget *contentWidget = NULL; + + // Test: initial size after construction + Qt::SizeHint sizeHint = Qt::PreferredSize; + QSizeF constraint = QSizeF(); + QVERIFY(KDefaultSizeInfoDisplay == m_infoWidget->sizeHint( + sizeHint, constraint)); + + EXPECT(InfoWidgetLayoutManager::contentWidget) + .returns(contentWidget); + + // Test: size after onInitialize is called + // and current display is InfoDisplay + m_infoWidget->onInitialize(); + + QVERIFY(verify()); + + contentWidget = new QGraphicsWidget; + contentWidget->setMinimumSize(KMinimumSize); + EXPECT(InfoWidgetLayoutManager::contentWidget). + returns(contentWidget); + EXPECT(InfoWidgetPreferences::visibleItemCount). + returns(1); + + // No strict verification. + // Data in docml is in "un" format and strict comparison to pixels won't work + QVERIFY(KDefaultSizeInfoDisplay != m_infoWidget->sizeHint(sizeHint, constraint)); + + QVERIFY(verify()); + + delete contentWidget; + contentWidget = NULL; +} + +/*! + UT_InfoWidget::t_startMarquees + */ +void UT_InfoWidget::t_startMarquees() +{ + bool started(false); + HbMarqueeItem spnMarqueeItem; + HbMarqueeItem mcnMarqueeItem; + HbMarqueeItem satMarqueeItem; + + // Initialize: + m_infoWidget->m_animatingItems.append(&spnMarqueeItem); + m_infoWidget->m_animatingItems.append(&mcnMarqueeItem); + m_infoWidget->m_animatingItems.append(&satMarqueeItem); + + // Test 1: + m_infoWidget->m_animationState = InfoWidget::AnimationIdle; + started = m_infoWidget->startMarquees(InfoWidget::StartNoDelay); + QVERIFY(started); + QVERIFY(m_infoWidget->m_animationState == InfoWidget::AnimationOngoing); + + // Test 2: + m_infoWidget->m_animationState = InfoWidget::AnimationIdle; + started = m_infoWidget->startMarquees(InfoWidget::StartDelayed); + QVERIFY(started); + QVERIFY(m_infoWidget->m_animationState == InfoWidget::AnimationStarting); + + // Test 3: + m_infoWidget->m_animationState = InfoWidget::AnimationStarting; + started = m_infoWidget->startMarquees(InfoWidget::StartDelayed); + QVERIFY(!started); + QVERIFY(m_infoWidget->m_animationState == InfoWidget::AnimationStarting); + + // Test 4: + m_infoWidget->m_animationState = InfoWidget::AnimationOngoing; + started = m_infoWidget->startMarquees(InfoWidget::StartDelayed); + QVERIFY(!started); + QVERIFY(m_infoWidget->m_animationState == InfoWidget::AnimationOngoing); + + QVERIFY(verify()); +} + +/*! + UT_InfoWidget::t_stopMarquees + */ +void UT_InfoWidget::t_stopMarquees() +{ + HbMarqueeItem spnMarqueeItem; + HbMarqueeItem mcnMarqueeItem; + HbMarqueeItem satMarqueeItem; + + // Initialize: + m_infoWidget->m_animatingItems.append(&spnMarqueeItem); + m_infoWidget->m_animatingItems.append(&mcnMarqueeItem); + m_infoWidget->m_animatingItems.append(&satMarqueeItem); + + // Test 1: + EXPECT(HbMarqueeItem::isAnimating). + returns(false); + EXPECT(HbMarqueeItem::isAnimating). + returns(false); + EXPECT(HbMarqueeItem::isAnimating). + returns(false); + m_infoWidget->m_animationState = InfoWidget::AnimationOngoing; + m_infoWidget->stopMarquees(); + + QVERIFY(m_infoWidget->m_animationState == InfoWidget::AnimationIdle); + QVERIFY(m_infoWidget->m_animatingItems.count() == 0); + QVERIFY(!m_infoWidget->m_animatingItem); + + + // Test 2: + // Re-initialize: + m_infoWidget->m_animatingItems.append(&spnMarqueeItem); + m_infoWidget->m_animatingItems.append(&mcnMarqueeItem); + m_infoWidget->m_animatingItems.append(&satMarqueeItem); + + EXPECT(HbMarqueeItem::isAnimating). + returns(true); + EXPECT(HbMarqueeItem::isAnimating). + returns(true); + EXPECT(HbMarqueeItem::isAnimating). + returns(true); + + m_infoWidget->m_animationState = InfoWidget::AnimationOngoing; + m_infoWidget->stopMarquees(); + + QVERIFY(m_infoWidget->m_animationState == InfoWidget::AnimationIdle); + QVERIFY(m_infoWidget->m_animatingItems.count() == 0); + QVERIFY(!m_infoWidget->m_animatingItem); + + + QVERIFY(verify()); +} + +/*! + UT_InfoWidget::t_marqueeNext + */ +void UT_InfoWidget::t_marqueeNext() +{ + + HbMarqueeItem spnMarqueeItem; + spnMarqueeItem.setObjectName("id:spnMarqueeItem"); + HbMarqueeItem mcnMarqueeItem; + spnMarqueeItem.setObjectName("id:mcnMarqueeItem"); + HbMarqueeItem satMarqueeItem; + spnMarqueeItem.setObjectName("id:satMarqueeItem"); + + // Initialize: + m_infoWidget->m_animatingItems.append(&spnMarqueeItem); + m_infoWidget->m_animatingItems.append(&mcnMarqueeItem); + m_infoWidget->m_animatingItems.append(&satMarqueeItem); + m_infoWidget->m_animationState = InfoWidget::AnimationOngoing; + + // Test 1: verify loop functionality + m_infoWidget->m_animatingItem = &spnMarqueeItem; + EXPECT(HbMarqueeItem::isAnimating). + returns(false); + m_infoWidget->marqueeNext(); + QVERIFY(m_infoWidget->m_animatingItem == &mcnMarqueeItem); + + // Test 2: verify loop functionality + EXPECT(HbMarqueeItem::isAnimating). + returns(false); + m_infoWidget->marqueeNext(); + QVERIFY(m_infoWidget->m_animatingItem == &satMarqueeItem); + + // Test 3: verify loop functionality, loop to begin + EXPECT(HbMarqueeItem::isAnimating). + returns(false); + m_infoWidget->marqueeNext(); + QVERIFY(m_infoWidget->m_animatingItem == &spnMarqueeItem); + + QVERIFY(verify()); +} + +/*! + UT_InfoWidget::t_timerEvent + */ +void UT_InfoWidget::t_timerEvent() +{ + // Test 1: + QScopedPointer timerEvent(new QTimerEvent(0)); + m_infoWidget->m_animationState = InfoWidget::AnimationStarting; + HbMarqueeItem animatingItem; + if (!m_infoWidget->m_animatingItem) { + m_infoWidget->m_animatingItem = &animatingItem; + } + + m_infoWidget->timerEvent(timerEvent.data()); + QVERIFY(m_infoWidget->m_animationState == InfoWidget::AnimationOngoing); + + // Test 2: + m_infoWidget->m_animationState = InfoWidget::AnimationStarting; + m_infoWidget->m_animatingItem = NULL; + m_infoWidget->timerEvent(timerEvent.data()); + QVERIFY(m_infoWidget->m_animationState == InfoWidget::AnimationStarting); + + // Test 3: + m_infoWidget->m_animationState = InfoWidget::AnimationIdle; + QVERIFY(m_infoWidget->m_animationState == InfoWidget::AnimationIdle); + + QVERIFY(verify()); +} + + +QTEST_MAIN_S60(UT_InfoWidget) diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidget/ut_infowidget.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidget/ut_infowidget.pro Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,66 @@ +# +# 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 file for building unit test component +# +# + +CONFIG += qtestlib hb +TEMPLATE = app +TARGET = +DEPENDPATH += . ../../infowidget/src +INCLUDEPATH += . +INCLUDEPATH += ../common +INCLUDEPATH += ../../inc/ +INCLUDEPATH += ../../infowidget/inc/ +DEFINES += QT_NO_DEBUG_STREAM + + +QT -= gui +QT += testlib + +symbian: { + CONFIG += no_icon + INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE + LIBS += -lmocklib \ + -lsymbianmock \ + -lhswidgetmodel +} + +# test code +HEADERS += ./inc/ut_infowidget.h +SOURCES += ./src/ut_infowidget.cpp + +# code to be tested +HEADERS += ../../infowidget/inc/infowidget.h +SOURCES += ../../infowidget/src/infowidget.cpp + +# mocks needed for testing +HEADERS += ../../infowidget/inc/infowidgetpreferences.h +SOURCES += ../mocks/mock_infowidgetpreferences.cpp +HEADERS += ../../infowidget/inc/infowidgetengine.h +SOURCES += ../mocks/mock_infowidgetengine.cpp +HEADERS += ../../infowidget/inc/infowidgetlayoutmanager.h +SOURCES += ../mocks/mock_infowidgetlayoutmanager.cpp +HEADERS += ../../infowidget/inc/infowidgetnetworkhandler.h +SOURCES += ../mocks/mock_infowidgetnetworkhandler.cpp +HEADERS += ../../infowidget/inc/infowidgetsathandler.h +SOURCES += ../mocks/mock_infowidgetsathandler.cpp + +SOURCES += ../mocks/mock_hbcolorscheme.cpp +SOURCES += ../mocks/mock_hbmarqueeitem.cpp +SOURCES += ../mocks/mock_hbwidget.cpp +SOURCES += ../mocks/mock_qgraphicslinearlayout.cpp +SOURCES += ../mocks/mock_qgraphicslayout.cpp +SOURCES += ../mocks/mock_hbframedrawer.cpp +SOURCES += ../mocks/mock_hbframeitem.cpp diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetengine/inc/ut_infowidgetengine.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetengine/inc/ut_infowidgetengine.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,58 @@ +/* +* 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 UT_INFOWIDGETENGINE_H +#define UT_INFOWIDGETENGINE_H + +#include +#include + +class InfoWidgetEngine; + +class UT_InfoWidgetEngine : public QObject, public MockService +{ + Q_OBJECT + +public: + + UT_InfoWidgetEngine(); + ~UT_InfoWidgetEngine(); + +private slots: + + void init(); + void cleanup(); + + void t_modelData(); + void t_updateNetworkDataToModel(); + void t_updateSatDataToModel(); + void t_updateLineDataToModel(); + void t_handleNetworkError(); + void t_handleSatError(); + void t_handleLineError(); + + void t_handlePreferencesChanged(); + void t_suspend(); + void t_resume(); + +private: + + InfoWidgetEngine *m_infoWidgetEngine; + +}; + +#endif // UT_INFOWIDGETENGINE_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetengine/run_auto_tests_qt.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetengine/run_auto_tests_qt.bat Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,192 @@ +rem +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: +rem + +@echo off +setlocal +goto :startup + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function DEFAULT +:: +:: Modify this function +:: - TESTED_SRC can be changed to match tested code. +:: Specifies path from testcode group directory to +:: tested code +:: - Add test directories to be runned +:: ie. "call :build ut_projectdirectory" or use +:: "for /f %%a in ('dir /b ut_*') do call :build %%a" +:: which compiles, instruments and runs all test directories +:: starting with "ut_". +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:DEFAULT +set TESTED_SRC=..\..\infowidget\src\*.cpp + +for /f %%a in ('dir /b ut_*') do call :build %%a +if [%DOMODULESTESTS%] EQU [TRUE] ( +for /f %%a in ('dir /b mt_*') do call :build %%a +) + +call :finish +goto :END + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function STARTUP +:: +:: Initializing script +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:STARTUP + +set BUILDTESTS=TRUE +set RUNTESTS=TRUE +set INSTRUMENT=TRUE +set REMOVEINSTRUMENT=TRUE +set DOMODULESTESTS=TRUE +set ABLD_CALL= -2comp sbs.bat -c winscw_udeb --keepgoing +set PATH_TO_DLL=\epoc32\release\winscw\udeb +set PATH_TO_COVERAGE_DATA=\coverage_data +set PATH_TO_RESULT=\test_result + +if not exist %PATH_TO_COVERAGE_DATA% ( +mkdir %PATH_TO_COVERAGE_DATA% +) + +if not exist %PATH_TO_RESULT% ( +mkdir %PATH_TO_RESULT% +) + +if [%1] EQU [] ( goto default ) + +call :%1 +call :%2 +call :%3 +call :%4 +call :%5 +echo Running tests = %RUNTESTS% +echo Instrumenting tests = %INSTRUMENT% +goto default + +:/NOCLEANUP +set REMOVEINSTRUMENT=FALSE +goto end + +:/NORUN +set RUNTESTS=FALSE +set REMOVEINSTRUMENT=FALSE +goto end + +:/NOINSTRUMENT +set INSTRUMENT=FALSE +goto end + +:/NOBUILD +set BUILDTESTS=FALSE +goto end + +:/ONLYUNITTESTS +set DOMODULESTESTS=FALSE +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function FINISH +:: +:: Finishes run_auto_tests.bat +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:FINISH + +if [%RUNTESTS%] EQU [TRUE] ( +call :runtests +) + +if [%INSTRUMENT%] EQU [TRUE] ( +call :calculatecoverage +) + +if [%REMOVEINSTRUMENT%] EQU [TRUE] ( +call :removecoverage +) +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function BUILD +:: param directory +:: +:: builds test from given directory +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:BUILD +setlocal +if [%BUILDTESTS%] EQU [FALSE] ( goto end ) +echo Building %1 +if not exist %1 ( +echo %1 Not found! +goto end +) + +pushd . +call cd %1 +call qmake +call sbs -c winscw_udeb clean +if [%INSTRUMENT%] EQU [TRUE] ( +call ctcwrap -n %PATH_TO_COVERAGE_DATA%\%1 -i d -C "EXCLUDE=*" -C "NO_EXCLUDE=%TESTED_SRC%" %ABLD_CALL% +) else ( +call %ABLD_CALL% +) + +popd +endlocal +goto end + + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function RUNTESTS +:: +:: NOTE! Function assumes that test binary is named according to test directory. +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:RUNTESTS +echo Running tests +call %PATH_TO_DLL%\ut_infowidgetengine.exe -dtextshell -- +move \epoc32\winscw\c\data\ut_infowidgetengine.log %PATH_TO_RESULT%\ut_infowidgetengine.log +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function CALCULATECOVERAGE +:: +:: Calculates test coverage. Generates html +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:CALCULATECOVERAGE +echo Calculating coverage +ctcpost %PATH_TO_COVERAGE_DATA%\*.sym -p - | ctcmerge -i - -o profile.txt +call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function REMOVECOVERAGE +:: +:: Removes data from coverage directory +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:REMOVECOVERAGE +echo Removing deleting coverage data +call del %PATH_TO_COVERAGE_DATA%\*.sym +call del %PATH_TO_COVERAGE_DATA%\*.dat +call del profile.txt +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function END +:: +:: Prints done +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:END +echo Done! \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetengine/src/ut_infowidgetengine.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetengine/src/ut_infowidgetengine.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,274 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include "ut_infowidgetengine.h" +#include "infowidgetengine.h" +#include "qtestmains60.h" +#include "infowidgetpreferences.h" + +// mocked dependencies of the class under test +#include "infowidgetnetworkhandler.h" +#include "infowidgetsathandler.h" + +const QString KSpnName("Spn name"); // + +const QString KHomeZoneTextTag("HomeZoneText0"); // max length 13 +const TNWViagIndicatorType + KHomeZoneIndicatorType = ENWViagIndicatorTypeHomeZone; + +const QString KMcnName("McnNameMcnNameMcnNam"); // max length 20 +const TNWMCNIndicatorType + KMcnIndicatorType = ENWMCNIndicatorTypeActive; + +/*! + UT_InfoWidgetEngine::UT_InfoWidgetEngine + */ +UT_InfoWidgetEngine::UT_InfoWidgetEngine() + : + m_infoWidgetEngine(0) +{ + +} + +/*! + UT_InfoWidgetEngine::~UT_InfoWidgetEngine + */ +UT_InfoWidgetEngine::~UT_InfoWidgetEngine() +{ + delete m_infoWidgetEngine; +} + +/*! + UT_InfoWidgetEngine::init + */ +void UT_InfoWidgetEngine::init() +{ + initialize(); + + SmcDefaultValue::SetL(""); + SmcDefaultValue::SetL(""); + + EXPECT(InfoWidgetNetworkHandler::sessionExists) + .returns(true); + EXPECT(InfoWidgetNetworkHandler::isOnline) + .returns(true); + + EXPECT(InfoWidgetNetworkHandler::serviceProviderName) + .returns(KSpnName); + EXPECT(InfoWidgetNetworkHandler::serviceProviderNameDisplayRequired) + .returns(true); + + EXPECT(InfoWidgetNetworkHandler::mcnName).returns(KMcnName); + EXPECT(InfoWidgetNetworkHandler::mcnIndicatorType) + .returns(KMcnIndicatorType); + + EXPECT(InfoWidgetNetworkHandler::homeZoneIndicatorType) + .returns(KHomeZoneIndicatorType); + EXPECT(InfoWidgetNetworkHandler::homeZoneTextTag) + .returns(KHomeZoneTextTag); + + m_infoWidgetEngine = new InfoWidgetEngine(); + + QVERIFY(verify()); +} + +/*! + UT_InfoWidgetEngine::cleanup + */ +void UT_InfoWidgetEngine::cleanup() +{ + reset(); + + delete m_infoWidgetEngine; + m_infoWidgetEngine = 0; +} + +/*! + UT_InfoWidgetEngine::t_modelData + */ +void UT_InfoWidgetEngine::t_modelData() +{ + const InfoWidgetEngine::ModelData& data = m_infoWidgetEngine->modelData(); + QVERIFY(data.serviceProviderName() == KSpnName); + QVERIFY(data.serviceProviderNameDisplayRequired() == true); + QVERIFY(data.homeZoneTextTag() == KHomeZoneTextTag); + QVERIFY(data.homeZoneIndicatorType() == KHomeZoneIndicatorType); + QVERIFY(data.mcnName() == KMcnName); + QVERIFY(data.mcnIndicatorType() == KMcnIndicatorType); +} + +/*! + UT_InfoWidgetEngine::t_updateNetworkDataToModel + */ +void UT_InfoWidgetEngine::t_updateNetworkDataToModel() +{ + // Test: network status is online + EXPECT(InfoWidgetNetworkHandler::sessionExists) + .returns(true); + EXPECT(InfoWidgetNetworkHandler::isOnline) + .returns(true); + + EXPECT(InfoWidgetNetworkHandler::serviceProviderName) + .returns(KSpnName); + EXPECT(InfoWidgetNetworkHandler::serviceProviderNameDisplayRequired) + .returns(true); + + EXPECT(InfoWidgetNetworkHandler::mcnName).returns(KMcnName); + EXPECT(InfoWidgetNetworkHandler::mcnIndicatorType) + .returns(KMcnIndicatorType); + + EXPECT(InfoWidgetNetworkHandler::homeZoneIndicatorType) + .returns(KHomeZoneIndicatorType); + EXPECT(InfoWidgetNetworkHandler::homeZoneTextTag) + .returns(KHomeZoneTextTag); + + QSignalSpy spy(m_infoWidgetEngine, SIGNAL(modelChanged())); + m_infoWidgetEngine->updateNetworkDataToModel(); + + const int KExpectedNumOfSignalEmissions = 1; + QCOMPARE(spy.count(), KExpectedNumOfSignalEmissions); + const QList &arguments = spy.takeFirst(); + QCOMPARE(arguments.count(), 0); + + QVERIFY(verify()); + + // Test: network status is offline + EXPECT(InfoWidgetNetworkHandler::sessionExists) + .returns(true); + EXPECT(InfoWidgetNetworkHandler::isOnline) + .returns(false); + EXPECT(InfoWidgetNetworkHandler::serviceProviderName).times(0); + EXPECT(InfoWidgetNetworkHandler::serviceProviderNameDisplayRequired).times(0); + EXPECT(InfoWidgetNetworkHandler::mcnName).times(0); + EXPECT(InfoWidgetNetworkHandler::mcnIndicatorType).times(0); + EXPECT(InfoWidgetNetworkHandler::homeZoneIndicatorType).times(0); + EXPECT(InfoWidgetNetworkHandler::homeZoneTextTag).times(0); + + m_infoWidgetEngine->updateNetworkDataToModel(); + QCOMPARE(spy.count(), KExpectedNumOfSignalEmissions); + const QList &arguments2 = spy.takeFirst(); + QCOMPARE(arguments2.count(), 0); + + QVERIFY(verify()); + + const InfoWidgetEngine::ModelData& data = m_infoWidgetEngine->modelData(); + QVERIFY(data.serviceProviderName() == QString("")); + QVERIFY(data.homeZoneTextTag() == QString("")); + QVERIFY(data.mcnName() == QString("")); + +} + +/*! + UT_InfoWidgetEngine::t_updateSatDataToModel + */ +void UT_InfoWidgetEngine::t_updateSatDataToModel() +{ + EXPECT(InfoWidgetSatHandler::satDisplayText) + .returns(QString("")); + + m_infoWidgetEngine->updateSatDataToModel(); +} + +/*! + UT_InfoWidgetEngine::t_updateLineDataToModel + */ +void UT_InfoWidgetEngine::t_updateLineDataToModel() +{ + m_infoWidgetEngine->updateLineDataToModel(); + + QVERIFY(verify()); +} + +/*! + UT_InfoWidgetEngine::t_handleNetworkError + */ +void UT_InfoWidgetEngine::t_handleNetworkError() +{ + m_infoWidgetEngine->handleNetworkError(0, 0); + + QVERIFY(verify()); +} + +/*! + UT_InfoWidgetEngine::t_handleSatError + */ +void UT_InfoWidgetEngine::t_handleSatError() +{ + m_infoWidgetEngine->handleSatError(0, 0); + + QVERIFY(verify()); +} + +/*! + UT_InfoWidgetEngine::t_handleLineError + */ +void UT_InfoWidgetEngine::t_handleLineError() +{ + m_infoWidgetEngine->handleLineError(0, 0); + + QVERIFY(verify()); +} + +/*! + UT_InfoWidgetEngine::t_handlePreferencesChanged + */ +void UT_InfoWidgetEngine::t_handlePreferencesChanged() +{ + InfoWidgetPreferences::Options testOptions; + // Preconditions: + testOptions &= ~InfoWidgetPreferences::DisplayHomeZone; + testOptions &= ~InfoWidgetPreferences::DisplayActiveLine; + testOptions &= ~InfoWidgetPreferences::DisplaySpn; + + // Test 1: Mcn ON; SAT OFF + testOptions |= InfoWidgetPreferences::DisplayMcn; + testOptions &= ~InfoWidgetPreferences::DisplaySatText; + EXPECT(InfoWidgetNetworkHandler::enableMcn); + EXPECT(InfoWidgetSatHandler::connect).with(false); + m_infoWidgetEngine->handlePreferencesChanged(testOptions); + QVERIFY(verify()); + + // Test 2: Mcn OFF; SAT ON + testOptions &= ~InfoWidgetPreferences::DisplayMcn; + testOptions |= InfoWidgetPreferences::DisplaySatText; + EXPECT(InfoWidgetNetworkHandler::disableMcn); + EXPECT(InfoWidgetSatHandler::connect).with(true); + m_infoWidgetEngine->handlePreferencesChanged(testOptions); + QVERIFY(verify()); + +} + +/*! + UT_InfoWidgetEngine::t_suspend + */ +void UT_InfoWidgetEngine::t_suspend() +{ + m_infoWidgetEngine->suspend(); + + QVERIFY(verify()); +} + +/*! + UT_InfoWidgetEngine::t_resume + */ +void UT_InfoWidgetEngine::t_resume() +{ + m_infoWidgetEngine->resume(); + + QVERIFY(verify()); +} + +QTEST_MAIN_S60(UT_InfoWidgetEngine) diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetengine/ut_infowidgetengine.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetengine/ut_infowidgetengine.pro Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,59 @@ +# +# 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 file for building unit test component +# +# + +CONFIG += qtestlib hb +TEMPLATE = app +TARGET = +DEPENDPATH += . ../../infowidget/src ../../infowidget/inc +INCLUDEPATH += . +INCLUDEPATH += ../common +INCLUDEPATH += ../../inc/ +INCLUDEPATH += ../../infowidget/inc/ +DEFINES += XQSETTINGSMANAGER_NO_LIBRARY +DEFINES += QT_NO_DEBUG_STREAM + +QT -= gui +QT += testlib + +symbian: { + CONFIG += no_icon + INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE + LIBS += -lmocklib \ + -lsymbianmock \ + -lcpframework +} + +# test code +HEADERS += ./inc/ut_infowidgetengine.h +SOURCES += ./src/ut_infowidgetengine.cpp + +# code to be tested +HEADERS += ../../infowidget/inc/infowidgetengine.h +SOURCES += ../../infowidget/src/infowidgetengine.cpp + +# mocks needed for testing +HEADERS += ../../infowidget/inc/infowidgetnetworkhandler.h \ + ../../infowidget/inc/infowidgetsathandler.h +HEADERS += /epoc32/include/platform/mw/xqsettingskey.h \ + /epoc32/include/platform/mw/xqsettingsmanager.h + +SOURCES += ../mocks/mock_xqsettingsmanager.cpp \ + ../mocks/mock_xqsettingskey.cpp \ + ../mocks/mock_infowidgetnetworkhandler.cpp \ + ../mocks/mock_infowidgetsathandler.cpp \ + ../mocks/mock_rsatservice.cpp + diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetlayoutmanager/inc/ut_infowidgetlayoutmanager.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetlayoutmanager/inc/ut_infowidgetlayoutmanager.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,81 @@ +/* +* 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 UT_INFOWIDGETLAYOUTMANAGER_H +#define UT_INFOWIDGETLAYOUTMANAGER_H + +#include +#include + +class InfoWidgetLayoutManager; +class InfoWidgetDocumentLoader; + +class UT_InfoWidgetLayoutManager : public QObject, public MockService +{ + Q_OBJECT + +public: + UT_InfoWidgetLayoutManager(); + ~UT_InfoWidgetLayoutManager(); + +private: + void fillDisplayContainers(); + void fillCurrentWidgetsContainer(); + void fillParams(const QString & fileName, bool * ok); + +private slots: + void init(); + void cleanup(); + + void t_currentDisplayRole(); + void t_currentWidgetRoles(); + void t_layoutRows(); + void t_setLayoutRows(); + void t_rowHeight(); + void t_layoutInfoDisplay(); + void t_layoutSettingsDialog(); + void t_widgetRoles(); + void t_loadWidgets(); + void t_loadWidget(); + void t_loadObject(); + void t_getWidget(); + void t_contentWidget(); + void t_reloadWidgets(); + void t_removeWidget(); + void t_destroyWidgets(); + void t_textFitsToRect(); + void t_marqueeItems(); + + // InfoWidgetDocumentLoader tests + void t_createObject(); + +private: + InfoWidgetLayoutManager *m_layoutManager; + InfoWidgetDocumentLoader *m_documentLoader; + + QPointer m_graphicsWidgetPtr; + + bool loadResultInfoWidgetDocml; + bool loadResultSettingsDialogDocml; + + QObjectList objectListInfoDisplayWidgets; + QObjectList objectListSettingsDialogWidgets; + + +}; + +#endif // UT_INFOWIDGETLAYOUTMANAGER_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetlayoutmanager/run_auto_tests_qt.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetlayoutmanager/run_auto_tests_qt.bat Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,192 @@ +rem +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: +rem + +@echo off +setlocal +goto :startup + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function DEFAULT +:: +:: Modify this function +:: - TESTED_SRC can be changed to match tested code. +:: Specifies path from testcode group directory to +:: tested code +:: - Add test directories to be runned +:: ie. "call :build ut_projectdirectory" or use +:: "for /f %%a in ('dir /b ut_*') do call :build %%a" +:: which compiles, instruments and runs all test directories +:: starting with "ut_". +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:DEFAULT +set TESTED_SRC=..\..\infowidget\src\*.cpp + +for /f %%a in ('dir /b ut_*') do call :build %%a +if [%DOMODULESTESTS%] EQU [TRUE] ( +for /f %%a in ('dir /b mt_*') do call :build %%a +) + +call :finish +goto :END + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function STARTUP +:: +:: Initializing script +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:STARTUP + +set BUILDTESTS=TRUE +set RUNTESTS=TRUE +set INSTRUMENT=TRUE +set REMOVEINSTRUMENT=TRUE +set DOMODULESTESTS=TRUE +set ABLD_CALL= -2comp sbs.bat -c winscw_udeb --keepgoing +set PATH_TO_DLL=\epoc32\release\winscw\udeb +set PATH_TO_COVERAGE_DATA=\coverage_data +set PATH_TO_RESULT=\test_result + +if not exist %PATH_TO_COVERAGE_DATA% ( +mkdir %PATH_TO_COVERAGE_DATA% +) + +if not exist %PATH_TO_RESULT% ( +mkdir %PATH_TO_RESULT% +) + +if [%1] EQU [] ( goto default ) + +call :%1 +call :%2 +call :%3 +call :%4 +call :%5 +echo Running tests = %RUNTESTS% +echo Instrumenting tests = %INSTRUMENT% +goto default + +:/NOCLEANUP +set REMOVEINSTRUMENT=FALSE +goto end + +:/NORUN +set RUNTESTS=FALSE +set REMOVEINSTRUMENT=FALSE +goto end + +:/NOINSTRUMENT +set INSTRUMENT=FALSE +goto end + +:/NOBUILD +set BUILDTESTS=FALSE +goto end + +:/ONLYUNITTESTS +set DOMODULESTESTS=FALSE +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function FINISH +:: +:: Finishes run_auto_tests.bat +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:FINISH + +if [%RUNTESTS%] EQU [TRUE] ( +call :runtests +) + +if [%INSTRUMENT%] EQU [TRUE] ( +call :calculatecoverage +) + +if [%REMOVEINSTRUMENT%] EQU [TRUE] ( +call :removecoverage +) +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function BUILD +:: param directory +:: +:: builds test from given directory +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:BUILD +setlocal +if [%BUILDTESTS%] EQU [FALSE] ( goto end ) +echo Building %1 +if not exist %1 ( +echo %1 Not found! +goto end +) + +pushd . +call cd %1 +call qmake +call sbs -c winscw_udeb clean +if [%INSTRUMENT%] EQU [TRUE] ( +call ctcwrap -n %PATH_TO_COVERAGE_DATA%\%1 -i d -C "EXCLUDE=*" -C "NO_EXCLUDE=%TESTED_SRC%" %ABLD_CALL% +) else ( +call %ABLD_CALL% +) + +popd +endlocal +goto end + + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function RUNTESTS +:: +:: NOTE! Function assumes that test binary is named according to test directory. +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:RUNTESTS +echo Running tests +call %PATH_TO_DLL%\ut_infowidgetlayoutmanager.exe -dtextshell -- +move \epoc32\winscw\c\data\ut_infowidgetlayoutmanager.log %PATH_TO_RESULT%\ut_infowidgetlayoutmanager.log +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function CALCULATECOVERAGE +:: +:: Calculates test coverage. Generates html +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:CALCULATECOVERAGE +echo Calculating coverage +ctcpost %PATH_TO_COVERAGE_DATA%\*.sym -p - | ctcmerge -i - -o profile.txt +call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function REMOVECOVERAGE +:: +:: Removes data from coverage directory +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:REMOVECOVERAGE +echo Removing deleting coverage data +call del %PATH_TO_COVERAGE_DATA%\*.sym +call del %PATH_TO_COVERAGE_DATA%\*.dat +call del profile.txt +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function END +:: +:: Prints done +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:END +echo Done! \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetlayoutmanager/src/ut_infowidgetlayoutmanager.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetlayoutmanager/src/ut_infowidgetlayoutmanager.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,532 @@ +/* +* 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 "ut_infowidgetlayoutmanager.h" +#include +#include +#include +#include +#include +#include +#include +#include +#define private public +#include "infowidgetlayoutmanager.h" +#include "qtestmains60.h" + +const int KNumOfSettingsDisplayRoles = 5; +const int KNumOfInfoDisplayRoles = 7; +const QString KInfoWidgetDocmlFile = ":/resource/infowidget.docml"; +const QString KSettingsDialogDocmlFile = ":/resource/settingsdialog.docml"; +const QString KMargueeItemClassName = HbMarqueeItem::staticMetaObject.className(); + +//class HbStyle; +/*! + UT_InfoWidgetLayoutManager::UT_InfoWidgetLayoutManager + */ +UT_InfoWidgetLayoutManager::UT_InfoWidgetLayoutManager() + : + m_layoutManager(NULL), + m_documentLoader(NULL) +{ + m_graphicsWidgetPtr = new QGraphicsWidget; +} + + +/*! + UT_InfoWidgetLayoutManager::~UT_InfoWidgetLayoutManager + */ +UT_InfoWidgetLayoutManager::~UT_InfoWidgetLayoutManager() +{ + delete m_layoutManager; + delete m_graphicsWidgetPtr; +} + + +/*! + UT_InfoWidgetLayoutManager::init + */ +void UT_InfoWidgetLayoutManager::init() +{ + initialize(); + bool loadResultInfoWidgetDocml = true; + bool loadResultSettingsDialogDocml = true; + + QObjectList objectListInfoDisplayWidgets; + QObjectList objectListSettingsDialogWidgets; + + EXPECT(HbDocumentLoader::load) + .with(KInfoWidgetDocmlFile, loadResultInfoWidgetDocml) + .returns(&objectListInfoDisplayWidgets); + EXPECT(HbDocumentLoader::load) + .with(KSettingsDialogDocmlFile, loadResultSettingsDialogDocml) + .returns(&objectListSettingsDialogWidgets); + m_layoutManager = new InfoWidgetLayoutManager(); + + m_documentLoader = new InfoWidgetDocumentLoader; + + QVERIFY(verify()); +} + +/*! + UT_InfoWidgetLayoutManager::cleanup + */ +void UT_InfoWidgetLayoutManager::cleanup() +{ + reset(); + + delete m_layoutManager; + m_layoutManager = NULL; + + delete m_documentLoader; + m_documentLoader = NULL; +} + +/*! + UT_InfoWidgetLayoutManager::fillDisplayContainers + */ +void UT_InfoWidgetLayoutManager::fillDisplayContainers() +{ + InfoWidgetLayoutManager::LayoutItemRole currentRole; + + QList infoDisplayWidgetRoles = + m_layoutManager->widgetRoles(InfoWidgetLayoutManager::InfoDisplay); + foreach (currentRole, infoDisplayWidgetRoles) { + m_layoutManager->m_infoDisplayWidgets.insert(currentRole, m_graphicsWidgetPtr.data()); + } + + QList settingsDisplayWidgetRoles = + m_layoutManager->widgetRoles(InfoWidgetLayoutManager::SettingsDialog); + foreach (currentRole, settingsDisplayWidgetRoles) { + m_layoutManager->m_settingsDialogWidgets.insert(currentRole, m_graphicsWidgetPtr.data()); + } +} + +/*! + UT_InfoWidgetLayoutManager::fillParams + */ +void UT_InfoWidgetLayoutManager::fillParams(const QString & fileName, + bool * ok){ + Q_UNUSED(fileName) + *ok = true; +} + +/*! + UT_InfoWidgetLayoutManager::fillCurrentWidgetsContainer + */ +void UT_InfoWidgetLayoutManager::fillCurrentWidgetsContainer() +{ + InfoWidgetLayoutManager::LayoutItemRole currentRole; + + QList infoDisplayWidgetRoles = + m_layoutManager->widgetRoles(InfoWidgetLayoutManager::InfoDisplay); + foreach (currentRole, infoDisplayWidgetRoles) { + m_layoutManager->m_widgets.insert(currentRole, m_graphicsWidgetPtr.data()); + } +} + +/*! + UT_InfoWidgetLayoutManager::t_currentDisplayRole + */ +void UT_InfoWidgetLayoutManager::t_currentDisplayRole() +{ + InfoWidgetLayoutManager::DisplayRole role = + m_layoutManager->currentDisplayRole(); + + QVERIFY(InfoWidgetLayoutManager::InfoDisplay == role); +} + + +/*! + UT_InfoWidgetLayoutManager::t_currentWidgetRoles + */ +void UT_InfoWidgetLayoutManager::t_currentWidgetRoles() +{ + // Initial state after layout manager construction + QList roles = + m_layoutManager->currentWidgetRoles(); + QVERIFY(roles.count() == 0); + + // Fill display container data + fillDisplayContainers(); + + QGraphicsLayout *activeLayout; + activeLayout= m_layoutManager->layoutInfoDisplay(); + QVERIFY(!activeLayout); + + roles = m_layoutManager->currentWidgetRoles(); + + QVERIFY(roles.count() == KNumOfInfoDisplayRoles); + if (roles.count() == KNumOfInfoDisplayRoles) { + QVERIFY(0 <= roles.indexOf( + InfoWidgetLayoutManager::RoleContent)); + QVERIFY(0 <= roles.indexOf( + InfoWidgetLayoutManager::RoleSpnMarqueeItem)); + QVERIFY(0 <= roles.indexOf( + InfoWidgetLayoutManager::RoleMcnMarqueeItem)); + QVERIFY(0 <= roles.indexOf( + InfoWidgetLayoutManager::RoleSatMarqueeItem)); + QVERIFY(0 <= roles.indexOf( + InfoWidgetLayoutManager::RoleSpnIcon)); + QVERIFY(0 <= roles.indexOf( + InfoWidgetLayoutManager::RoleMcnIcon)); + QVERIFY(0 <= roles.indexOf( + InfoWidgetLayoutManager::RoleSatTextIcon)); + } + + activeLayout= m_layoutManager->layoutSettingsDialog(); + QVERIFY(!activeLayout); + + roles = m_layoutManager->currentWidgetRoles(); + int dVar = roles.count(); + QVERIFY(roles.count() == KNumOfSettingsDisplayRoles); + +} + + +/*! + UT_InfoWidgetLayoutManager::t_layoutRows + */ +void UT_InfoWidgetLayoutManager::t_layoutRows() +{ + int rows = m_layoutManager->layoutRows(); + QVERIFY(0 == rows); +} + + +/*! + UT_InfoWidgetLayoutManager::t_setLayoutRows + */ +void UT_InfoWidgetLayoutManager::t_setLayoutRows() +{ + const int KLayoutRows = 1; + m_layoutManager->setLayoutRows(KLayoutRows); + QVERIFY(KLayoutRows == m_layoutManager->layoutRows()); +} + +/*! + UT_InfoWidgetLayoutManager::t_setLayoutRows + */ +void UT_InfoWidgetLayoutManager::t_rowHeight() +{ + bool b = false; + EXPECT(HbStyle::parameter).returns(b); + m_layoutManager->layoutRowHeight(); + + b = true; + EXPECT(HbStyle::parameter).returns(b); + m_layoutManager->layoutRowHeight(); + + QVERIFY(verify()); +} + +/*! + UT_InfoWidgetLayoutManager::t_layoutInfoDisplay + */ +void UT_InfoWidgetLayoutManager::t_layoutInfoDisplay() +{ + QVERIFY(!m_layoutManager->layoutInfoDisplay()); +} + + +/*! + UT_InfoWidgetLayoutManager::t_layoutSettingsDialog + */ +void UT_InfoWidgetLayoutManager::t_layoutSettingsDialog() +{ + QVERIFY(!m_layoutManager->layoutSettingsDialog()); +} + +/*! + UT_InfoWidgetLayoutManager::t_widgetRoles + */ +void UT_InfoWidgetLayoutManager::t_widgetRoles() +{ + const QList settingDisplayRoles = + m_layoutManager->widgetRoles(InfoWidgetLayoutManager::SettingsDialog); + + QVERIFY(settingDisplayRoles.count() == KNumOfSettingsDisplayRoles); + if (settingDisplayRoles.count() == KNumOfSettingsDisplayRoles) { + QVERIFY(0 <= settingDisplayRoles.indexOf( + InfoWidgetLayoutManager::RoleSettingsDialog)); + QVERIFY(0 <= settingDisplayRoles.indexOf( + InfoWidgetLayoutManager::RoleSpnCheckBox)); + QVERIFY(0 <= settingDisplayRoles.indexOf( + InfoWidgetLayoutManager::RoleMcnCheckBox)); + QVERIFY(0 <= settingDisplayRoles.indexOf( + InfoWidgetLayoutManager::RoleSatTextCheckBox)); + QVERIFY(0 <= settingDisplayRoles.indexOf( + InfoWidgetLayoutManager::RoleSettingsContainer)); + } + + const QList infoDisplayRoles = + m_layoutManager->widgetRoles(InfoWidgetLayoutManager::InfoDisplay); + QVERIFY(infoDisplayRoles.count() == KNumOfInfoDisplayRoles); + if (infoDisplayRoles.count() == KNumOfInfoDisplayRoles) { + QVERIFY(0 <= infoDisplayRoles.indexOf( + InfoWidgetLayoutManager::RoleContent)); + QVERIFY(0 <= infoDisplayRoles.indexOf( + InfoWidgetLayoutManager::RoleSpnMarqueeItem)); + QVERIFY(0 <= infoDisplayRoles.indexOf( + InfoWidgetLayoutManager::RoleMcnMarqueeItem)); + QVERIFY(0 <= infoDisplayRoles.indexOf( + InfoWidgetLayoutManager::RoleSatMarqueeItem)); + QVERIFY(0 <= infoDisplayRoles.indexOf( + InfoWidgetLayoutManager::RoleSpnIcon)); + QVERIFY(0 <= infoDisplayRoles.indexOf( + InfoWidgetLayoutManager::RoleMcnIcon)); + QVERIFY(0 <= infoDisplayRoles.indexOf( + InfoWidgetLayoutManager::RoleSatTextIcon)); + } +} + +/*! + UT_InfoWidgetLayoutManager::t_loadWidgets + */ +void UT_InfoWidgetLayoutManager::t_loadWidgets() +{ + QObjectList list = QObjectList(); + EXPECT(HbDocumentLoader::load) + .willOnce(invoke(this, &fillParams)).returns(list); + + const QList settingDisplayRoles = + m_layoutManager->widgetRoles(InfoWidgetLayoutManager::SettingsDialog); + bool loadResult = m_layoutManager->loadWidgets(InfoWidgetLayoutManager::SettingsDialog, + settingDisplayRoles, + m_layoutManager->m_infoDisplayWidgets); + + QVERIFY(!loadResult); +} + +/*! + UT_InfoWidgetLayoutManager::t_loadWidget + */ +void UT_InfoWidgetLayoutManager::t_loadWidget() +{ + QGraphicsWidget *currentWidget; + InfoWidgetLayoutManager::LayoutItemRole currentRole; + + QList + infoDisplayWidgetRoles = m_layoutManager->widgetRoles( + InfoWidgetLayoutManager::InfoDisplay); + + infoDisplayWidgetRoles.append(InfoWidgetLayoutManager::RoleUndefined); + infoDisplayWidgetRoles.append(InfoWidgetLayoutManager::RoleContainer); + + + foreach (currentRole, infoDisplayWidgetRoles) { + currentWidget = m_layoutManager->loadWidget(*m_documentLoader, + InfoWidgetLayoutManager::InfoDisplay, + currentRole); + QVERIFY(!currentWidget); + } + + QList + settingsDisplayWidgetRoles = m_layoutManager->widgetRoles( + InfoWidgetLayoutManager::SettingsDialog); + + foreach (currentRole, settingsDisplayWidgetRoles) { + currentWidget = m_layoutManager->loadWidget(*m_documentLoader, + InfoWidgetLayoutManager::SettingsDialog, + currentRole); + QVERIFY(!currentWidget); + } + + currentWidget = m_layoutManager->loadWidget(*m_documentLoader, + (InfoWidgetLayoutManager::DisplayRole)2, + InfoWidgetLayoutManager::RoleLastEnum ); + + QVERIFY(!currentWidget); +} + +/*! + UT_InfoWidgetLayoutManager::t_loadObject + */ +void UT_InfoWidgetLayoutManager::t_loadObject() +{ + QObject *currentObject(NULL); + InfoWidgetLayoutManager::LayoutItemRole currentRole; + + QList objectRoles; + + objectRoles.append(InfoWidgetLayoutManager::RoleCancelAction); + QObject *okAction = new QObject; + + objectRoles.append(InfoWidgetLayoutManager::RoleOkAction); + QObject *cancelAction = new QObject; + + // Test: + EXPECT(HbDocumentLoader::findObject).with(QString("sd:cancelAction")).returns(cancelAction); + EXPECT(HbDocumentLoader::findObject).with(QString("sd:okAction")).returns(okAction); + + foreach(currentRole, objectRoles) { + currentObject = m_layoutManager->loadObject(*m_documentLoader, + InfoWidgetLayoutManager::SettingsDialog, + currentRole); + QVERIFY(currentObject); + } + + QVERIFY(verify()); +} + + + +/*! + UT_InfoWidgetLayoutManager::t_getWidget + */ +void UT_InfoWidgetLayoutManager::t_getWidget() +{ + fillCurrentWidgetsContainer(); + + QVERIFY(!m_layoutManager->getWidget(InfoWidgetLayoutManager::RoleUndefined)); + QVERIFY(m_layoutManager->getWidget(InfoWidgetLayoutManager::RoleContent)); + QVERIFY(!m_layoutManager->getWidget(InfoWidgetLayoutManager::RoleLastEnum)); +} + +/*! + UT_InfoWidgetLayoutManager::t_removeWidget + */ +void UT_InfoWidgetLayoutManager::t_removeWidget() +{ + fillCurrentWidgetsContainer(); + + m_layoutManager->removeWidget(InfoWidgetLayoutManager::RoleUndefined); + m_layoutManager->removeWidget(InfoWidgetLayoutManager::RoleContent); + m_layoutManager->removeWidget(InfoWidgetLayoutManager::RoleLastEnum); + + QVERIFY(verify()); +} + + +/*! + UT_InfoWidgetLayoutManager::t_contentWidget + */ +void UT_InfoWidgetLayoutManager::t_contentWidget() +{ + fillCurrentWidgetsContainer(); + + QVERIFY(m_layoutManager->contentWidget()); +} + +/*! + UT_InfoWidgetLayoutManager::t_reloadWidgets + */ +void UT_InfoWidgetLayoutManager::t_reloadWidgets() +{ + bool loadResultIw = true; + bool loadResultSd = true; + + QObjectList objectListId; + QObjectList objectListSd; + + EXPECT(HbDocumentLoader::load) + .with(KInfoWidgetDocmlFile, loadResultIw) + .returns(&objectListId); + QVERIFY(!m_layoutManager->reloadWidgets(InfoWidgetLayoutManager::InfoDisplay)); + + EXPECT(HbDocumentLoader::load) + .with(KSettingsDialogDocmlFile, loadResultSd) + .returns(&objectListSd); + QVERIFY(!m_layoutManager->reloadWidgets(InfoWidgetLayoutManager::SettingsDialog)); + + QVERIFY(verify()); +} + +/*! + UT_InfoWidgetLayoutManager::t_destroyWidgets + */ +void UT_InfoWidgetLayoutManager::t_destroyWidgets() +{ + m_layoutManager->destroyWidgets(); + + QGraphicsWidget *widgetInfo = new QGraphicsWidget(); + QGraphicsWidget *widgetSettings = new QGraphicsWidget(); + m_layoutManager->m_infoDisplayWidgets.insert(InfoWidgetLayoutManager::RoleContent, widgetInfo); + m_layoutManager->m_settingsDialogWidgets.insert(InfoWidgetLayoutManager::RoleContent, widgetSettings); + m_layoutManager->destroyWidgets(); + + QVERIFY(verify()); +} + +/*! + UT_InfoWidgetLayoutManager::t_textFitsToRect + */ +void UT_InfoWidgetLayoutManager::t_textFitsToRect() +{ + QString text; + QFont font; + bool fits(false); + + QRectF testRect; + + // Currently not possible to use with .pro definition + // QFontMetrics to be properly mocked + // QT -= gui + // Test 1: use valid text and rect to which text fits + //text = "testtesttesttest"; + //testRect = QRectF(QPointF(0,0), QSizeF(200,100)); + //fits = m_layoutManager->textFitsToRect(text, font, testRect); + //QVERIFY(fits); + + QVERIFY(verify()); +} + + + +/*! + UT_InfoWidgetLayoutManager::t_marqueeItems + */ +void UT_InfoWidgetLayoutManager::t_marqueeItems() +{ + QList items; + + // Test 1: uninitialized + items = m_layoutManager->marqueeItems(); + QVERIFY(items.count() == 0); + + // Test: + HbMarqueeItem item1; + HbMarqueeItem item2; + HbMarqueeItem item3; + + m_layoutManager->m_widgets.insert(InfoWidgetLayoutManager::RoleSpnMarqueeItem, &item1); + m_layoutManager->m_widgets.insert(InfoWidgetLayoutManager::RoleMcnMarqueeItem, &item2); + m_layoutManager->m_widgets.insert(InfoWidgetLayoutManager::RoleSatMarqueeItem, &item3); + + items = m_layoutManager->marqueeItems(); + QVERIFY(items.count() == 3); + + QVERIFY(verify()); +} + + +/*! + UT_InfoWidgetLayoutManager::t_createObject + */ +void UT_InfoWidgetLayoutManager::t_createObject() +{ + QObject *object = m_documentLoader->createObject(QString(), QString()); + QVERIFY(!object); + object = m_documentLoader->createObject(KMargueeItemClassName, QString()); + QVERIFY(object); + delete object; + + //For destructor coverage + delete m_layoutManager->m_documentLoader; + m_layoutManager->m_documentLoader = NULL; +} + +QTEST_MAIN_S60(UT_InfoWidgetLayoutManager) diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetlayoutmanager/ut_infowidgetlayoutmanager.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetlayoutmanager/ut_infowidgetlayoutmanager.pro Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,47 @@ +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# Initial Contributors: +# Nokia Corporation - initial contribution. +# Contributors: +# Description: Project file for building unit test component +CONFIG += qtestlib \ + hb +TEMPLATE = app +TARGET = +DEPENDPATH += . \ + ../../infowidget/src \ + ../../infowidget/inc +INCLUDEPATH += . +INCLUDEPATH += ../common +INCLUDEPATH += ../../inc/ +INCLUDEPATH += ../../infowidget/inc/ +DEFINES += XQSETTINGSMANAGER_NO_LIBRARY +DEFINES += QT_NO_DEBUG_STREAM +QT -= gui +QT += testlib +symbian: { + CONFIG += no_icon + INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE + LIBS += -lmocklib \ + -lsymbianmock \ + -lcpframework +} + +# test code +HEADERS += ./inc/ut_infowidgetlayoutmanager.h +SOURCES += ./src/ut_infowidgetlayoutmanager.cpp + +# code to be tested +HEADERS += ../../infowidget/inc/infowidgetlayoutmanager.h +SOURCES += ../../infowidget/src/infowidgetlayoutmanager.cpp + +# mocks needed for testing +SOURCES += ../mocks/mock_hbdocumentloader.cpp +SOURCES += ../mocks/mock_hbmarqueeitem.cpp +SOURCES += ../mocks/mock_hbstyle.cpp +#SOURCES += ../mocks/mock_qfontmetrics.cpp +RESOURCES = ../../infowidgetplugin.qrc diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetlinehandler/inc/ut_infowidgetlinehandler.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetlinehandler/inc/ut_infowidgetlinehandler.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,48 @@ +/* +* 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 UT_INFOWIDGETLINEHANDLER_H +#define UT_INFOWIDGETLINEHANDLER_H + +#include +#include + +class InfoWidgetLineHandler; + +class UT_InfoWidgetLineHandler : public QObject, public MockService +{ + Q_OBJECT + +public: + + UT_InfoWidgetLineHandler(); + ~UT_InfoWidgetLineHandler(); + +private slots: + + void init(); + void cleanup(); + + void t_activeLine(); + +private: + + InfoWidgetLineHandler *m_lineHandler; + +}; + +#endif // UT_INFOWIDGETLINEHANDLER_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetlinehandler/run_auto_tests_qt.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetlinehandler/run_auto_tests_qt.bat Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,192 @@ +rem +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: +rem + +@echo off +setlocal +goto :startup + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function DEFAULT +:: +:: Modify this function +:: - TESTED_SRC can be changed to match tested code. +:: Specifies path from testcode group directory to +:: tested code +:: - Add test directories to be runned +:: ie. "call :build ut_projectdirectory" or use +:: "for /f %%a in ('dir /b ut_*') do call :build %%a" +:: which compiles, instruments and runs all test directories +:: starting with "ut_". +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:DEFAULT +set TESTED_SRC=..\..\infowidget\src\*.cpp + +for /f %%a in ('dir /b ut_*') do call :build %%a +if [%DOMODULESTESTS%] EQU [TRUE] ( +for /f %%a in ('dir /b mt_*') do call :build %%a +) + +call :finish +goto :END + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function STARTUP +:: +:: Initializing script +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:STARTUP + +set BUILDTESTS=TRUE +set RUNTESTS=TRUE +set INSTRUMENT=TRUE +set REMOVEINSTRUMENT=TRUE +set DOMODULESTESTS=TRUE +set ABLD_CALL= -2comp sbs.bat -c winscw_udeb --keepgoing +set PATH_TO_DLL=\epoc32\release\winscw\udeb +set PATH_TO_COVERAGE_DATA=\coverage_data +set PATH_TO_RESULT=\test_result + +if not exist %PATH_TO_COVERAGE_DATA% ( +mkdir %PATH_TO_COVERAGE_DATA% +) + +if not exist %PATH_TO_RESULT% ( +mkdir %PATH_TO_RESULT% +) + +if [%1] EQU [] ( goto default ) + +call :%1 +call :%2 +call :%3 +call :%4 +call :%5 +echo Running tests = %RUNTESTS% +echo Instrumenting tests = %INSTRUMENT% +goto default + +:/NOCLEANUP +set REMOVEINSTRUMENT=FALSE +goto end + +:/NORUN +set RUNTESTS=FALSE +set REMOVEINSTRUMENT=FALSE +goto end + +:/NOINSTRUMENT +set INSTRUMENT=FALSE +goto end + +:/NOBUILD +set BUILDTESTS=FALSE +goto end + +:/ONLYUNITTESTS +set DOMODULESTESTS=FALSE +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function FINISH +:: +:: Finishes run_auto_tests.bat +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:FINISH + +if [%RUNTESTS%] EQU [TRUE] ( +call :runtests +) + +if [%INSTRUMENT%] EQU [TRUE] ( +call :calculatecoverage +) + +if [%REMOVEINSTRUMENT%] EQU [TRUE] ( +call :removecoverage +) +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function BUILD +:: param directory +:: +:: builds test from given directory +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:BUILD +setlocal +if [%BUILDTESTS%] EQU [FALSE] ( goto end ) +echo Building %1 +if not exist %1 ( +echo %1 Not found! +goto end +) + +pushd . +call cd %1 +call qmake +call sbs -c winscw_udeb clean +if [%INSTRUMENT%] EQU [TRUE] ( +call ctcwrap -n %PATH_TO_COVERAGE_DATA%\%1 -i d -C "EXCLUDE=*" -C "NO_EXCLUDE=%TESTED_SRC%" %ABLD_CALL% +) else ( +call %ABLD_CALL% +) + +popd +endlocal +goto end + + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function RUNTESTS +:: +:: NOTE! Function assumes that test binary is named according to test directory. +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:RUNTESTS +echo Running tests +call %PATH_TO_DLL%\ut_infowidgetlinehandler.exe -dtextshell -- +move \epoc32\winscw\c\data\ut_infowidgetlinehandler.log %PATH_TO_RESULT%\ut_infowidgetlinehandler.log +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function CALCULATECOVERAGE +:: +:: Calculates test coverage. Generates html +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:CALCULATECOVERAGE +echo Calculating coverage +ctcpost %PATH_TO_COVERAGE_DATA%\*.sym -p - | ctcmerge -i - -o profile.txt +call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function REMOVECOVERAGE +:: +:: Removes data from coverage directory +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:REMOVECOVERAGE +echo Removing deleting coverage data +call del %PATH_TO_COVERAGE_DATA%\*.sym +call del %PATH_TO_COVERAGE_DATA%\*.dat +call del profile.txt +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function END +:: +:: Prints done +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:END +echo Done! \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetlinehandler/src/ut_infowidgetlinehandler.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetlinehandler/src/ut_infowidgetlinehandler.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,73 @@ +/* +* 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 "ut_infowidgetlinehandler.h" +#include "infowidgetlinehandler.h" +#include "qtestmains60.h" + +/*! + UT_InfoWidgetLineHandler::UT_InfoWidgetLineHandler + */ +UT_InfoWidgetLineHandler::UT_InfoWidgetLineHandler() + : + m_lineHandler(0) +{ + +} + + +/*! + UT_InfoWidgetLineHandler::~UT_InfoWidgetLineHandler + */ +UT_InfoWidgetLineHandler::~UT_InfoWidgetLineHandler() +{ + delete m_lineHandler; +} + +/*! + UT_InfoWidgetLineHandler::init + */ +void UT_InfoWidgetLineHandler::init() +{ + initialize(); + + m_lineHandler = new InfoWidgetLineHandler(); + + QVERIFY(verify()); +} + + +/*! + UT_InfoWidgetLineHandler::cleanup + */ +void UT_InfoWidgetLineHandler::cleanup() +{ + reset(); + + delete m_lineHandler; + m_lineHandler = 0; +} + +/*! + UT_InfoWidgetLineHandler::t_activeLine + */ +void UT_InfoWidgetLineHandler::t_activeLine() +{ + int activeLine = m_lineHandler->activeLine(); +} + + +QTEST_MAIN_S60(UT_InfoWidgetLineHandler) diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetlinehandler/ut_infowidgetlinehandler.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetlinehandler/ut_infowidgetlinehandler.pro Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,47 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: Project file for building unit test component +# +# + +CONFIG += qtestlib hb +TEMPLATE = app +TARGET = +DEPENDPATH += . ../../infowidget/src +INCLUDEPATH += . +INCLUDEPATH += ../common +INCLUDEPATH += ../../inc/ +INCLUDEPATH += ../../infowidget/inc/ + +QT -= gui +QT += testlib + +symbian: { + CONFIG += no_icon + INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE + LIBS += -lmocklib \ + -lsymbianmock \ + -lcpframework +} + +# test code +HEADERS += ./inc/ut_infowidgetlinehandler.h +SOURCES += ./src/ut_infowidgetlinehandler.cpp + +# code to be tested +HEADERS += ../../infowidget/inc/infowidgetlinehandler.h +SOURCES += ../../infowidget/src/infowidgetlinehandler.cpp + +# mocks needed for testing +#SOURCES += ../mocks/mock_networkhandlingproxy.cpp diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetnetworkhandler/inc/ut_infowidgetnetworkhandler.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetnetworkhandler/inc/ut_infowidgetnetworkhandler.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,74 @@ +/* +* 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 UT_INFOWIDGETNETWORKHANDLER_H +#define UT_INFOWIDGETNETWORKHANDLER_H + +#include +#include + +class MNWMessageObserver; +class InfoWidgetNetworkHandler; +class TNWInfo; + +class UT_InfoWidgetNetworkHandler : public QObject, public MockService +{ + Q_OBJECT + +public: + + UT_InfoWidgetNetworkHandler(); + ~UT_InfoWidgetNetworkHandler(); + +public slots: + void generateException(); + void doLeaveL(); + +private slots: + + void init(); + void cleanup(); + + void t_homeZoneTextTag(); + void t_homeZoneIndicatorType(); + void t_mcnName(); + void t_mcnIndicatorType(); + void t_isOnline(); + void t_networkRegistrationStatus(); + void t_HandleNetworkMessage(); + void t_HandleNetworkMessageExceptionWhileEmittingSignal(); + void t_HandleNetworkError(); + void t_HandleNetworkErrorExceptionWhileEmittingSignal(); + void t_resume(); + void t_suspend(); + void t_serviceProviderName(); + void t_serviceProviderNameDisplayRequired(); + void t_createLeave(); + +private: + + void initializeNetworkInfo( + MNWMessageObserver& aMessage, + TNWInfo& aTNWInfo); + +private: + + InfoWidgetNetworkHandler *m_networkHandler; + +}; + +#endif // UT_INFOWIDGETNETWORKHANDLER_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetnetworkhandler/run_auto_tests_qt.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetnetworkhandler/run_auto_tests_qt.bat Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,192 @@ +rem +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: +rem + +@echo off +setlocal +goto :startup + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function DEFAULT +:: +:: Modify this function +:: - TESTED_SRC can be changed to match tested code. +:: Specifies path from testcode group directory to +:: tested code +:: - Add test directories to be runned +:: ie. "call :build ut_projectdirectory" or use +:: "for /f %%a in ('dir /b ut_*') do call :build %%a" +:: which compiles, instruments and runs all test directories +:: starting with "ut_". +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:DEFAULT +set TESTED_SRC=..\..\infowidget\src\*.cpp + +for /f %%a in ('dir /b ut_*') do call :build %%a +if [%DOMODULESTESTS%] EQU [TRUE] ( +for /f %%a in ('dir /b mt_*') do call :build %%a +) + +call :finish +goto :END + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function STARTUP +:: +:: Initializing script +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:STARTUP + +set BUILDTESTS=TRUE +set RUNTESTS=TRUE +set INSTRUMENT=TRUE +set REMOVEINSTRUMENT=TRUE +set DOMODULESTESTS=TRUE +set ABLD_CALL= -2comp sbs.bat -c winscw_udeb --keepgoing +set PATH_TO_DLL=\epoc32\release\winscw\udeb +set PATH_TO_COVERAGE_DATA=\coverage_data +set PATH_TO_RESULT=\test_result + +if not exist %PATH_TO_COVERAGE_DATA% ( +mkdir %PATH_TO_COVERAGE_DATA% +) + +if not exist %PATH_TO_RESULT% ( +mkdir %PATH_TO_RESULT% +) + +if [%1] EQU [] ( goto default ) + +call :%1 +call :%2 +call :%3 +call :%4 +call :%5 +echo Running tests = %RUNTESTS% +echo Instrumenting tests = %INSTRUMENT% +goto default + +:/NOCLEANUP +set REMOVEINSTRUMENT=FALSE +goto end + +:/NORUN +set RUNTESTS=FALSE +set REMOVEINSTRUMENT=FALSE +goto end + +:/NOINSTRUMENT +set INSTRUMENT=FALSE +goto end + +:/NOBUILD +set BUILDTESTS=FALSE +goto end + +:/ONLYUNITTESTS +set DOMODULESTESTS=FALSE +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function FINISH +:: +:: Finishes run_auto_tests.bat +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:FINISH + +if [%RUNTESTS%] EQU [TRUE] ( +call :runtests +) + +if [%INSTRUMENT%] EQU [TRUE] ( +call :calculatecoverage +) + +if [%REMOVEINSTRUMENT%] EQU [TRUE] ( +call :removecoverage +) +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function BUILD +:: param directory +:: +:: builds test from given directory +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:BUILD +setlocal +if [%BUILDTESTS%] EQU [FALSE] ( goto end ) +echo Building %1 +if not exist %1 ( +echo %1 Not found! +goto end +) + +pushd . +call cd %1 +call qmake +call sbs -c winscw_udeb clean +if [%INSTRUMENT%] EQU [TRUE] ( +call ctcwrap -n %PATH_TO_COVERAGE_DATA%\%1 -i d -C "EXCLUDE=*" -C "NO_EXCLUDE=%TESTED_SRC%" %ABLD_CALL% +) else ( +call %ABLD_CALL% +) + +popd +endlocal +goto end + + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function RUNTESTS +:: +:: NOTE! Function assumes that test binary is named according to test directory. +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:RUNTESTS +echo Running tests +call %PATH_TO_DLL%\ut_infowidgetnetworkhandler.exe -dtextshell -- +move \epoc32\winscw\c\data\ut_infowidgetnetworkhandler.log %PATH_TO_RESULT%\ut_infowidgetnetworkhandler.log +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function CALCULATECOVERAGE +:: +:: Calculates test coverage. Generates html +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:CALCULATECOVERAGE +echo Calculating coverage +ctcpost %PATH_TO_COVERAGE_DATA%\*.sym -p - | ctcmerge -i - -o profile.txt +call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function REMOVECOVERAGE +:: +:: Removes data from coverage directory +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:REMOVECOVERAGE +echo Removing deleting coverage data +call del %PATH_TO_COVERAGE_DATA%\*.sym +call del %PATH_TO_COVERAGE_DATA%\*.dat +call del profile.txt +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function END +:: +:: Prints done +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:END +echo Done! \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetnetworkhandler/src/ut_infowidgetnetworkhandler.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetnetworkhandler/src/ut_infowidgetnetworkhandler.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,383 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include "qtestmains60.h" +#include +#include +#include "ut_infowidgetnetworkhandler.h" +#define private public +#include "infowidgetnetworkhandler.h" + +#define EXPECT_NO_EXCEPTION(statements) \ +{ \ + bool exceptionDetected = false; \ + try { \ + statements \ + } catch (...) { \ + exceptionDetected = true; \ + } \ + QVERIFY(false == exceptionDetected); \ +} + +const QString KHomeZoneTextTag("HomeZoneText0"); // max length 13 +const TNWViagIndicatorType + KHomeZoneIndicatorType = ENWViagIndicatorTypeHomeZone; + +const QString KMcnName("McnNameMcnNameMcnNam"); // max length 20 +const TNWMCNIndicatorType + KMcnIndicatorType = ENWMCNIndicatorTypeActive; + + +/*! + UT_InfoWidgetNetworkHandler::UT_InfoWidgetNetworkHandler + */ +UT_InfoWidgetNetworkHandler::UT_InfoWidgetNetworkHandler() + : + m_networkHandler(0) +{ + +} + + +/*! + UT_InfoWidgetNetworkHandler::~UT_InfoWidgetNetworkHandler + */ +UT_InfoWidgetNetworkHandler::~UT_InfoWidgetNetworkHandler() +{ + delete m_networkHandler; +} + +/*! + UT_InfoWidgetNetworkHandler::doLeaveL + */ +void UT_InfoWidgetNetworkHandler::doLeaveL() +{ + User::Leave(KErrGeneral); +} + +/*! + UT_InfoWidgetNetworkHandler::generateException + */ +void UT_InfoWidgetNetworkHandler::generateException() +{ + throw std::bad_alloc(); +} + +/*! + UT_InfoWidgetNetworkHandler::init + */ +void UT_InfoWidgetNetworkHandler::init() +{ + initialize(); + + SmcDefaultValue::SetL(""); + SmcDefaultValue::SetL(""); + EXPECT(CreateL).willOnce(invoke(this, &initializeNetworkInfo)); + m_networkHandler = new InfoWidgetNetworkHandler(); + + QVERIFY(verify()); +} + + +/*! + UT_InfoWidgetNetworkHandler::cleanup + */ +void UT_InfoWidgetNetworkHandler::cleanup() +{ + reset(); + + QVariant i(1); + EXPECT(XQSettingsManager::readItemValue).returns(i); + delete m_networkHandler; + m_networkHandler = 0; + + QVERIFY(verify()); +} + +/*! + UT_InfoWidgetNetworkHandler::t_homeZoneTextTag + */ +void UT_InfoWidgetNetworkHandler::t_homeZoneTextTag() +{ + QVariant i(1); + EXPECT(XQSettingsManager::readItemValue).returns(i); + + QVERIFY(m_networkHandler->homeZoneTextTag() == KHomeZoneTextTag); +} + + +/*! + UT_InfoWidgetNetworkHandler::t_homeZoneIndicatorType + */ +void UT_InfoWidgetNetworkHandler::t_homeZoneIndicatorType() +{ + QVERIFY( + m_networkHandler->homeZoneIndicatorType() == KHomeZoneIndicatorType); +} + + +/*! + UT_InfoWidgetNetworkHandler::t_mcnName + */ +void UT_InfoWidgetNetworkHandler::t_mcnName() +{ + QVERIFY(m_networkHandler->mcnName() == KMcnName); +} + + +/*! + UT_InfoWidgetNetworkHandler::t_mcnIndicatorType + */ +void UT_InfoWidgetNetworkHandler::t_mcnIndicatorType() +{ + QVERIFY(m_networkHandler->mcnIndicatorType() == KMcnIndicatorType); +} + + +/*! + UT_InfoWidgetNetworkHandler::t_isOnline + */ +void UT_InfoWidgetNetworkHandler::t_isOnline() +{ + m_networkHandler->m_nwInfo.iRegistrationStatus = + static_cast(ENWRegisteredBusy); + QVERIFY(m_networkHandler->isOnline() == true); + m_networkHandler->m_nwInfo.iRegistrationStatus = + static_cast(ENWRegisteredOnHomeNetwork); + QVERIFY(m_networkHandler->isOnline() == true); + m_networkHandler->m_nwInfo.iRegistrationStatus = + static_cast(ENWRegisteredRoaming); + QVERIFY(m_networkHandler->isOnline() == true); + + m_networkHandler->m_nwInfo.iRegistrationStatus = + static_cast(ENWRegistrationUnknown); + QVERIFY(m_networkHandler->isOnline() == false); +} + + +/*! + UT_InfoWidgetNetworkHandler::t_networkRegistrationStatus + */ +void UT_InfoWidgetNetworkHandler::t_networkRegistrationStatus() +{ + m_networkHandler->m_nwInfo.iRegistrationStatus = + static_cast(ENWRegistrationUnknown); + QVERIFY(m_networkHandler->networkRegistrationStatus() == 0); +} + + +/*! + UT_InfoWidgetNetworkHandler::t_HandleNetworkMessage + */ +void UT_InfoWidgetNetworkHandler::t_HandleNetworkMessage() +{ + QSignalSpy spy(m_networkHandler, SIGNAL(networkDataChanged())); + + // TODO: investigate, which messages indicate cell info change +// ACCEPTED MESSAGES + m_networkHandler->HandleNetworkMessage( + MNWMessageObserver::ENWMessageCurrentCellInfoMessage); + +// MESSAGES TO BE FILTERED OUT +// COMMON NETWORK MESSAGES 0 - 99 + m_networkHandler->HandleNetworkMessage( + MNWMessageObserver::ENWMessageNetworkInfoChange); + m_networkHandler->HandleNetworkMessage( + MNWMessageObserver::ENWMessageNetworkModeChange); + m_networkHandler->HandleNetworkMessage( + MNWMessageObserver::ENWMessageNetworkRegistrationStatusChange); + m_networkHandler->HandleNetworkMessage( + MNWMessageObserver::ENWMessageProgrammableOperatorInfoChange); + m_networkHandler->HandleNetworkMessage( + MNWMessageObserver::ENWMessageNetworkProviderNameChange); + m_networkHandler->HandleNetworkMessage( + MNWMessageObserver::ENWMessageServiceProviderNameChange); + m_networkHandler->HandleNetworkMessage( + MNWMessageObserver::ENWMessageProgrammableOperatorInfoUpdating); + m_networkHandler->HandleNetworkMessage( + MNWMessageObserver::ENWMessageNetworkProviderNameUpdating); + m_networkHandler->HandleNetworkMessage( + MNWMessageObserver::ENWMessageServiceProviderNameUpdating); + m_networkHandler->HandleNetworkMessage( + MNWMessageObserver::ENWMessageAllowRefresh); + m_networkHandler->HandleNetworkMessage( + MNWMessageObserver::ENWMessageNetworkSelectionSettingChange); +// GSM SPECIFIC MESSAGES 100 - 199 + m_networkHandler->HandleNetworkMessage( + MNWMessageObserver::ENWMessageNetworkCellReselection); + m_networkHandler->HandleNetworkMessage( + MNWMessageObserver::ENWMessageNetworkConnectionFailure); +// m_networkHandler->HandleNetworkMessage( +// MNWMessageObserver::ENWMessageCurrentCellInfoMessage); + m_networkHandler->HandleNetworkMessage( + MNWMessageObserver::ENWMessageCurrentHomeZoneMessage); + m_networkHandler->HandleNetworkMessage( + MNWMessageObserver::ENWMessageNetworkIndicatorChange); +// CDMA SPECIFIC MESSAGES 200 - 299 + m_networkHandler->HandleNetworkMessage( + MNWMessageObserver::ENWMessageNetworkEmergencyMode); + m_networkHandler->HandleNetworkMessage( + MNWMessageObserver::ENWMessageVoicePrivacyStatusChange); + m_networkHandler->HandleNetworkMessage( + MNWMessageObserver::ENWMessageStartSystemSearchRequestCompleteOk); + m_networkHandler->HandleNetworkMessage( + MNWMessageObserver::ENWMessageStartSystemSearchRequestCompleteFail); + m_networkHandler->HandleNetworkMessage( + MNWMessageObserver::ENWMessageStopProtocolStackRequestCompleteOk); + m_networkHandler->HandleNetworkMessage( + MNWMessageObserver::ENWMessageStopProtocolStackRequestCompleteFail); + + const int KExpectedNumOfSignalEmissions = 3; + QCOMPARE(spy.count(), KExpectedNumOfSignalEmissions); + + const QList &arguments = spy.at(0); + QCOMPARE(arguments.count(), 0); +} + + +/*! + UT_InfoWidgetNetworkHandler::t_HandleNetworkMessageExceptionWhileEmittingSignal + */ +void UT_InfoWidgetNetworkHandler::t_HandleNetworkMessageExceptionWhileEmittingSignal() +{ + QObject::connect( + m_networkHandler, SIGNAL(networkDataChanged()), + this, SLOT(generateException())); + + m_networkHandler->HandleNetworkMessage( + MNWMessageObserver::ENWMessageCurrentCellInfoMessage); + + QVERIFY(verify()); +} + + +/*! + UT_InfoWidgetNetworkHandler::t_HandleNetworkError + */ +Q_DECLARE_METATYPE(MNWMessageObserver::TNWOperation) +void UT_InfoWidgetNetworkHandler::t_HandleNetworkError() +{ + QSignalSpy spy(m_networkHandler, SIGNAL(networkError(int, int))); + qRegisterMetaType + ("MNWMessageObserver::TNWOperation"); + + const int errorCode = -4; + MNWMessageObserver::TNWOperation operation = + MNWMessageObserver::ENWGetServiceProviderName; + m_networkHandler->HandleNetworkError(operation, errorCode); + + operation = MNWMessageObserver::ENWNone; + m_networkHandler->HandleNetworkError(operation, errorCode); + + const int KExpectedNumOfSignalEmissions = 2; + QCOMPARE(spy.count(), KExpectedNumOfSignalEmissions); + const QList &arguments = spy.at(0); + QCOMPARE(arguments.count(), 2); + + QCOMPARE( + qvariant_cast(arguments.at(0)), + operation); + QCOMPARE(arguments.at(1).toInt(), errorCode); +} + + +/*! + UT_InfoWidgetNetworkHandler::t_HandleNetworkErrorExceptionWhileEmittingSignal + */ +void UT_InfoWidgetNetworkHandler::t_HandleNetworkErrorExceptionWhileEmittingSignal() +{ + QObject::connect( + m_networkHandler, SIGNAL(networkError(int, int)), + this, SLOT(generateException())); + + MNWMessageObserver::TNWOperation operation = MNWMessageObserver::ENWNone; + const int errorCode = -4; + m_networkHandler->HandleNetworkError(operation, errorCode); + + QVERIFY(verify()); +} + + +/*! + UT_InfoWidgetNetworkHandler::initializeNetworkInfo + */ +void UT_InfoWidgetNetworkHandler::initializeNetworkInfo( + MNWMessageObserver& /*aObserver*/, TNWInfo& aTNWInfo) +{ + aTNWInfo.iViagTextTag.Copy(KHomeZoneTextTag.utf16()); + aTNWInfo.iViagIndicatorType = KHomeZoneIndicatorType; + + aTNWInfo.iMCNName.Copy(KMcnName.utf16()); + aTNWInfo.iMCNIndicatorType = KMcnIndicatorType; +} + +/*! + UT_InfoWidgetNetworkHandler::t_suspend + */ +void UT_InfoWidgetNetworkHandler::t_suspend() +{ + m_networkHandler->suspend(); + QVERIFY(verify()); +} + +/*! + UT_InfoWidgetNetworkHandler::t_resume + */ +void UT_InfoWidgetNetworkHandler::t_resume() +{ + m_networkHandler->resume(); + QVERIFY(verify()); +} + +/*! + UT_InfoWidgetNetworkHandler::t_serviceProviderName + */ +void UT_InfoWidgetNetworkHandler::t_serviceProviderName() +{ + QString s = ""; + QCOMPARE(m_networkHandler->serviceProviderName(), s); +} + +/*! + UT_InfoWidgetNetworkHandler::t_serviceProviderNameDisplayRequired + */ +void UT_InfoWidgetNetworkHandler::t_serviceProviderNameDisplayRequired() +{ + m_networkHandler->m_nwInfo.iServiceProviderNameDisplayReq = + RMobilePhone::KDisplaySPNRequired; + QVERIFY(m_networkHandler->serviceProviderNameDisplayRequired() == true); + + m_networkHandler->m_nwInfo.iServiceProviderNameDisplayReq = + RMobilePhone::KDisplaySPNNotRequired; + QVERIFY(m_networkHandler->serviceProviderNameDisplayRequired() == false); +} + +/*! + UT_InfoWidgetNetworkHandler::t_createLeave + */ +void UT_InfoWidgetNetworkHandler::t_createLeave() +{ + QVariant i(1); + EXPECT(XQSettingsManager::readItemValue).returns(i); + EXPECT(CreateL) + .willOnce(invokeWithoutArguments(this, &doLeaveL)); + + EXPECT_NO_EXCEPTION(InfoWidgetNetworkHandler * p = new InfoWidgetNetworkHandler();); +} + +QTEST_MAIN_S60(UT_InfoWidgetNetworkHandler) diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetnetworkhandler/ut_infowidgetnetworkhandler.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetnetworkhandler/ut_infowidgetnetworkhandler.pro Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,53 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: Project file for building unit test component +# +# + +CONFIG += qtestlib hb +TEMPLATE = app +TARGET = +DEPENDPATH += . ../../infowidget/src +INCLUDEPATH += . +INCLUDEPATH += ../common +INCLUDEPATH += ../../inc/ +INCLUDEPATH += ../../infowidget/inc/ +DEFINES += XQSETTINGSMANAGER_NO_LIBRARY + +QT -= gui +QT += testlib + +symbian: { + CONFIG += no_icon + INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE + LIBS += -lmocklib \ + -lsymbianmock \ + -lcpframework +} + +# test code +HEADERS += ./inc/ut_infowidgetnetworkhandler.h +SOURCES += ./src/ut_infowidgetnetworkhandler.cpp + +# code to be tested +HEADERS += ../../infowidget/inc/infowidgetnetworkhandler.h +SOURCES += ../../infowidget/src/infowidgetnetworkhandler.cpp + +# mocks needed for testing +SOURCES += ../mocks/mock_networkhandlingproxy.cpp + +HEADERS += /epoc32/include/platform/mw/xqsettingskey.h \ + /epoc32/include/platform/mw/xqsettingsmanager.h +SOURCES += ../mocks/mock_xqsettingskey.cpp +SOURCES += ../mocks/mock_xqsettingsmanager.cpp diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetplugin/inc/ut_infowidgetplugin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetplugin/inc/ut_infowidgetplugin.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,45 @@ +/* +* 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 UT_INFOWIDGETPLUGIN_H +#define UT_INFOWIDGETPLUGIN_H + +#include +#include +#include + +QTM_USE_NAMESPACE + + +class UT_InfoWidgetPlugin : public QObject, public MockService +{ + Q_OBJECT + +public: + + UT_InfoWidgetPlugin(); + ~UT_InfoWidgetPlugin(); + +private slots: + + void init(); + void cleanup(); + void t_createInstance(); + +}; + +#endif // UT_INFOWIDGETPLUGIN_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetplugin/run_auto_tests_qt.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetplugin/run_auto_tests_qt.bat Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,192 @@ +rem +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: +rem + +@echo off +setlocal +goto :startup + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function DEFAULT +:: +:: Modify this function +:: - TESTED_SRC can be changed to match tested code. +:: Specifies path from testcode group directory to +:: tested code +:: - Add test directories to be runned +:: ie. "call :build ut_projectdirectory" or use +:: "for /f %%a in ('dir /b ut_*') do call :build %%a" +:: which compiles, instruments and runs all test directories +:: starting with "ut_". +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:DEFAULT +set TESTED_SRC=..\..\src\*.cpp + +for /f %%a in ('dir /b ut_*') do call :build %%a +if [%DOMODULESTESTS%] EQU [TRUE] ( +for /f %%a in ('dir /b mt_*') do call :build %%a +) + +call :finish +goto :END + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function STARTUP +:: +:: Initializing script +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:STARTUP + +set BUILDTESTS=TRUE +set RUNTESTS=TRUE +set INSTRUMENT=TRUE +set REMOVEINSTRUMENT=TRUE +set DOMODULESTESTS=TRUE +set ABLD_CALL= -2comp sbs.bat -c winscw_udeb --keepgoing +set PATH_TO_DLL=\epoc32\release\winscw\udeb +set PATH_TO_COVERAGE_DATA=\coverage_data +set PATH_TO_RESULT=\test_result + +if not exist %PATH_TO_COVERAGE_DATA% ( +mkdir %PATH_TO_COVERAGE_DATA% +) + +if not exist %PATH_TO_RESULT% ( +mkdir %PATH_TO_RESULT% +) + +if [%1] EQU [] ( goto default ) + +call :%1 +call :%2 +call :%3 +call :%4 +call :%5 +echo Running tests = %RUNTESTS% +echo Instrumenting tests = %INSTRUMENT% +goto default + +:/NOCLEANUP +set REMOVEINSTRUMENT=FALSE +goto end + +:/NORUN +set RUNTESTS=FALSE +set REMOVEINSTRUMENT=FALSE +goto end + +:/NOINSTRUMENT +set INSTRUMENT=FALSE +goto end + +:/NOBUILD +set BUILDTESTS=FALSE +goto end + +:/ONLYUNITTESTS +set DOMODULESTESTS=FALSE +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function FINISH +:: +:: Finishes run_auto_tests.bat +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:FINISH + +if [%RUNTESTS%] EQU [TRUE] ( +call :runtests +) + +if [%INSTRUMENT%] EQU [TRUE] ( +call :calculatecoverage +) + +if [%REMOVEINSTRUMENT%] EQU [TRUE] ( +call :removecoverage +) +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function BUILD +:: param directory +:: +:: builds test from given directory +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:BUILD +setlocal +if [%BUILDTESTS%] EQU [FALSE] ( goto end ) +echo Building %1 +if not exist %1 ( +echo %1 Not found! +goto end +) + +pushd . +call cd %1 +call qmake +call sbs -c winscw_udeb clean +if [%INSTRUMENT%] EQU [TRUE] ( +call ctcwrap -n %PATH_TO_COVERAGE_DATA%\%1 -i d -C "EXCLUDE=*" -C "NO_EXCLUDE=%TESTED_SRC%" %ABLD_CALL% +) else ( +call %ABLD_CALL% +) + +popd +endlocal +goto end + + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function RUNTESTS +:: +:: NOTE! Function assumes that test binary is named according to test directory. +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:RUNTESTS +echo Running tests +call %PATH_TO_DLL%\ut_infowidgetplugin.exe -dtextshell -- +move \epoc32\winscw\c\data\ut_infowidgetplugin.log %PATH_TO_RESULT%\ut_infowidgetplugin.log +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function CALCULATECOVERAGE +:: +:: Calculates test coverage. Generates html +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:CALCULATECOVERAGE +echo Calculating coverage +ctcpost %PATH_TO_COVERAGE_DATA%\*.sym -p - | ctcmerge -i - -o profile.txt +call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function REMOVECOVERAGE +:: +:: Removes data from coverage directory +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:REMOVECOVERAGE +echo Removing deleting coverage data +call del %PATH_TO_COVERAGE_DATA%\*.sym +call del %PATH_TO_COVERAGE_DATA%\*.dat +call del profile.txt +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function END +:: +:: Prints done +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:END +echo Done! \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetplugin/src/ut_infowidgetplugin.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetplugin/src/ut_infowidgetplugin.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,120 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include "ut_infowidgetplugin.h" +#include "infowidgetplugin.h" +#include "infowidget.h" +#include "qtestmains60.h" + +#include +#include +#include +#include + +Q_EXTERN_C const char * qt_plugin_query_verification_data(); +Q_EXTERN_C ::QObject * qt_plugin_instance(); + +class MyQServiceInterfaceDescriptor : public QServiceInterfaceDescriptor +{}; + +class MyQServiceContext : public QServiceContext +{ +public: + virtual void notify( ContextType type, const QVariant& variant){ + Q_UNUSED(type) + Q_UNUSED(variant) + }; +}; + +class MyQAbstractSecuritySession : public QAbstractSecuritySession +{ +public: + virtual bool isAllowed(const QStringList& capabilityList){ + Q_UNUSED(capabilityList) + return true; + }; +}; + +QString KValidInfoWidgetInterfaceName("com.nokia.symbian.IHomeScreenWidget"); +QString KInvalidInfoWidgetInterfaceName("com.nokia.IHomeScreenWidget"); + + +/*! + UT_InfoWidgetPlugin::UT_InfoWidgetPlugin + */ +UT_InfoWidgetPlugin::UT_InfoWidgetPlugin() +{ + const char * verificationData = qt_plugin_query_verification_data(); +} + + +/*! + UT_InfoWidgetPlugin::~UT_InfoWidgetPlugin + */ +UT_InfoWidgetPlugin::~UT_InfoWidgetPlugin() +{ + +} + + +/*! + UT_InfoWidgetPlugin::init + */ +void UT_InfoWidgetPlugin::init() +{ + initialize(); + + QVERIFY(verify()); +} + + +/*! + UT_InfoWidgetPlugin::cleanup + */ +void UT_InfoWidgetPlugin::cleanup() +{ + reset(); + + delete (InfoWidgetPlugin*)qt_plugin_instance(); +} + + +void UT_InfoWidgetPlugin::t_createInstance() + { + MyQServiceInterfaceDescriptor myServiceInterfaceDescriptor; + MyQServiceContext myQServiceContext; + MyQAbstractSecuritySession myAbstractSecuritySession; + + QObject *instanceValue = NULL; + InfoWidgetPlugin* p = (InfoWidgetPlugin*)qt_plugin_instance(); + // Test: instance creation with valid interface name + expect("QtMobility::QServiceInterfaceDescriptor::interfaceName").returns(KValidInfoWidgetInterfaceName); + //expect("InfoWidget::InfoWidget"); + instanceValue = p->createInstance(myServiceInterfaceDescriptor, + &myQServiceContext, + &myAbstractSecuritySession); + Q_ASSERT(instanceValue); + + // Test: instance creation with invalid interface name + expect("QtMobility::QServiceInterfaceDescriptor::interfaceName").returns(KInvalidInfoWidgetInterfaceName); + instanceValue = p->createInstance(myServiceInterfaceDescriptor, + &myQServiceContext, + &myAbstractSecuritySession); + Q_ASSERT(instanceValue == NULL); + +} + +QTEST_MAIN_S60(UT_InfoWidgetPlugin) diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetplugin/ut_infowidgetplugin.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetplugin/ut_infowidgetplugin.pro Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,51 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: Project file for building unit test component +# +# + +CONFIG += qtestlib hb mobility +MOBILITY = serviceframework +TEMPLATE = app +TARGET = +INCLUDEPATH += . +INCLUDEPATH += ../common +INCLUDEPATH += ../../inc/ +INCLUDEPATH += ../../infowidget/inc/ +DEFINES += QT_NO_DEBUG_STREAM + +QT -= gui +QT += testlib + +symbian: { + CONFIG += no_icon + INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE + LIBS += -lmocklib \ + -lsymbianmock \ + -lhswidgetmodel +} + +# test code +HEADERS += ./inc/ut_infowidgetplugin.h +SOURCES += ./src/ut_infowidgetplugin.cpp + +# code to be tested +HEADERS += ../../inc/infowidgetplugin.h +SOURCES += ../../src/infowidgetplugin.cpp + +# mocks needed for testing +HEADERS += ../../infowidget/inc/infowidget.h +SOURCES += ../mocks/mock_infowidget.cpp +SOURCES += ../mocks/mock_qserviceplugininterface.cpp +SOURCES += ../mocks/mock_qserviceinterfacedescriptor.cpp \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetpreferences/inc/ut_infowidgetpreferences.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetpreferences/inc/ut_infowidgetpreferences.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,54 @@ +/* +* 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 UT_INFOWIDGETPREFERENCES_H +#define UT_INFOWIDGETPREFERENCES_H + +#include +#include + +class InfoWidgetPreferences; + +class UT_InfoWidgetPreferences : public QObject, public MockService +{ + Q_OBJECT + +public: + + UT_InfoWidgetPreferences(); + ~UT_InfoWidgetPreferences(); + +private slots: + + void init(); + void cleanup(); + + void t_storePreferences(); + void t_preference(); + void t_setPreference(); + void t_visibleItemCount(); + void t_isPreferenceSet(); + void t_preferences(); + void t_preferenceNames(); + +private: + + InfoWidgetPreferences *m_infoWidgetPreferences; + +}; + +#endif // UT_INFOWIDGETPREFERENCES_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetpreferences/run_auto_tests_qt.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetpreferences/run_auto_tests_qt.bat Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,192 @@ +rem +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: +rem + +@echo off +setlocal +goto :startup + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function DEFAULT +:: +:: Modify this function +:: - TESTED_SRC can be changed to match tested code. +:: Specifies path from testcode group directory to +:: tested code +:: - Add test directories to be runned +:: ie. "call :build ut_projectdirectory" or use +:: "for /f %%a in ('dir /b ut_*') do call :build %%a" +:: which compiles, instruments and runs all test directories +:: starting with "ut_". +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:DEFAULT +set TESTED_SRC=..\..\infowidget\src\*.cpp + +for /f %%a in ('dir /b ut_*') do call :build %%a +if [%DOMODULESTESTS%] EQU [TRUE] ( +for /f %%a in ('dir /b mt_*') do call :build %%a +) + +call :finish +goto :END + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function STARTUP +:: +:: Initializing script +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:STARTUP + +set BUILDTESTS=TRUE +set RUNTESTS=TRUE +set INSTRUMENT=TRUE +set REMOVEINSTRUMENT=TRUE +set DOMODULESTESTS=TRUE +set ABLD_CALL= -2comp sbs.bat -c winscw_udeb --keepgoing +set PATH_TO_DLL=\epoc32\release\winscw\udeb +set PATH_TO_COVERAGE_DATA=\coverage_data +set PATH_TO_RESULT=\test_result + +if not exist %PATH_TO_COVERAGE_DATA% ( +mkdir %PATH_TO_COVERAGE_DATA% +) + +if not exist %PATH_TO_RESULT% ( +mkdir %PATH_TO_RESULT% +) + +if [%1] EQU [] ( goto default ) + +call :%1 +call :%2 +call :%3 +call :%4 +call :%5 +echo Running tests = %RUNTESTS% +echo Instrumenting tests = %INSTRUMENT% +goto default + +:/NOCLEANUP +set REMOVEINSTRUMENT=FALSE +goto end + +:/NORUN +set RUNTESTS=FALSE +set REMOVEINSTRUMENT=FALSE +goto end + +:/NOINSTRUMENT +set INSTRUMENT=FALSE +goto end + +:/NOBUILD +set BUILDTESTS=FALSE +goto end + +:/ONLYUNITTESTS +set DOMODULESTESTS=FALSE +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function FINISH +:: +:: Finishes run_auto_tests.bat +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:FINISH + +if [%RUNTESTS%] EQU [TRUE] ( +call :runtests +) + +if [%INSTRUMENT%] EQU [TRUE] ( +call :calculatecoverage +) + +if [%REMOVEINSTRUMENT%] EQU [TRUE] ( +call :removecoverage +) +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function BUILD +:: param directory +:: +:: builds test from given directory +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:BUILD +setlocal +if [%BUILDTESTS%] EQU [FALSE] ( goto end ) +echo Building %1 +if not exist %1 ( +echo %1 Not found! +goto end +) + +pushd . +call cd %1 +call qmake +call sbs -c winscw_udeb clean +if [%INSTRUMENT%] EQU [TRUE] ( +call ctcwrap -n %PATH_TO_COVERAGE_DATA%\%1 -i d -C "EXCLUDE=*" -C "NO_EXCLUDE=%TESTED_SRC%" %ABLD_CALL% +) else ( +call %ABLD_CALL% +) + +popd +endlocal +goto end + + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function RUNTESTS +:: +:: NOTE! Function assumes that test binary is named according to test directory. +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:RUNTESTS +echo Running tests +call %PATH_TO_DLL%\ut_infowidgetpreferences.exe -dtextshell -- +move \epoc32\winscw\c\data\ut_infowidgetpreferences.log %PATH_TO_RESULT%\ut_infowidgetpreferences.log +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function CALCULATECOVERAGE +:: +:: Calculates test coverage. Generates html +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:CALCULATECOVERAGE +echo Calculating coverage +ctcpost %PATH_TO_COVERAGE_DATA%\*.sym -p - | ctcmerge -i - -o profile.txt +call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function REMOVECOVERAGE +:: +:: Removes data from coverage directory +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:REMOVECOVERAGE +echo Removing deleting coverage data +call del %PATH_TO_COVERAGE_DATA%\*.sym +call del %PATH_TO_COVERAGE_DATA%\*.dat +call del profile.txt +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function END +:: +:: Prints done +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:END +echo Done! \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetpreferences/src/ut_infowidgetpreferences.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetpreferences/src/ut_infowidgetpreferences.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,189 @@ +/* +* 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 "ut_infowidgetpreferences.h" +#define private public +#include "infowidgetpreferences.h" +#include "qtestmains60.h" + +/*! + UT_InfoWidgetPreferences::UT_InfoWidgetPreferences + */ +UT_InfoWidgetPreferences::UT_InfoWidgetPreferences() + : + m_infoWidgetPreferences(0) +{ + +} + + +/*! + UT_InfoWidgetPreferences::~UT_InfoWidgetPreferences + */ +UT_InfoWidgetPreferences::~UT_InfoWidgetPreferences() +{ + delete m_infoWidgetPreferences; +} + + +/*! + UT_InfoWidgetPreferences::init + */ +void UT_InfoWidgetPreferences::init() +{ + initialize(); + + m_infoWidgetPreferences = new InfoWidgetPreferences(); + + QVERIFY(verify()); +} + + +/*! + UT_InfoWidgetPreferences::cleanup + */ +void UT_InfoWidgetPreferences::cleanup() +{ + reset(); + + delete m_infoWidgetPreferences; + m_infoWidgetPreferences = 0; +} + + +/*! + UT_InfoWidgetPreferences::t_storePreferences + */ +void UT_InfoWidgetPreferences::t_storePreferences() +{ + m_infoWidgetPreferences->storePreferences(); + + m_infoWidgetPreferences->m_options = (InfoWidgetPreferences::Option)1; + m_infoWidgetPreferences->m_validatedOptions = (InfoWidgetPreferences::Option)2; + m_infoWidgetPreferences->storePreferences(); + + QVERIFY(verify()); +} + + +/*! + UT_InfoWidgetPreferences::t_preference + */ +void UT_InfoWidgetPreferences::t_preference() +{ + QString preferenceValue = m_infoWidgetPreferences->preference( + InfoWidgetPreferences::DisplayHomeZone); + QVERIFY(DISPLAY_SETTING_OFF == preferenceValue); + + preferenceValue = m_infoWidgetPreferences->preference( + InfoWidgetPreferences::DisplayMcn); + QVERIFY(DISPLAY_SETTING_OFF == preferenceValue); + + preferenceValue = m_infoWidgetPreferences->preference( + InfoWidgetPreferences::DisplayActiveLine); + QVERIFY(DISPLAY_SETTING_OFF == preferenceValue); + + preferenceValue = m_infoWidgetPreferences->preference( + InfoWidgetPreferences::DisplaySatText); + QVERIFY(DISPLAY_SETTING_OFF == preferenceValue); +} + + +/*! + UT_InfoWidgetPreferences::t_setPreference + */ +void UT_InfoWidgetPreferences::t_setPreference() +{ + m_infoWidgetPreferences->setPreference( + InfoWidgetPreferences::DisplayHomeZone, DISPLAY_SETTING_ON); + QVERIFY(DISPLAY_SETTING_ON == m_infoWidgetPreferences->preference( + InfoWidgetPreferences::DisplayHomeZone)); + + m_infoWidgetPreferences->setPreference( + InfoWidgetPreferences::DisplayMcn, DISPLAY_SETTING_ON); + QVERIFY(DISPLAY_SETTING_ON == m_infoWidgetPreferences->preference( + InfoWidgetPreferences::DisplayMcn)); + + m_infoWidgetPreferences->setPreference( + InfoWidgetPreferences::DisplayActiveLine, DISPLAY_SETTING_ON); + QVERIFY(DISPLAY_SETTING_ON == m_infoWidgetPreferences->preference( + InfoWidgetPreferences::DisplayActiveLine)); + + m_infoWidgetPreferences->setPreference( + InfoWidgetPreferences::DisplaySatText, DISPLAY_SETTING_ON); + QVERIFY(DISPLAY_SETTING_ON == m_infoWidgetPreferences->preference( + InfoWidgetPreferences::DisplaySatText)); + + m_infoWidgetPreferences->setPreference( + InfoWidgetPreferences::DisplaySatText, DISPLAY_SETTING_OFF); + QVERIFY(DISPLAY_SETTING_OFF == m_infoWidgetPreferences->preference( + InfoWidgetPreferences::DisplaySatText)); +} + +/*! + UT_InfoWidgetPreferences::t_visibleItemCount + */ +void UT_InfoWidgetPreferences::t_visibleItemCount() +{ + int visibleItems = m_infoWidgetPreferences->visibleItemCount(); + QVERIFY(visibleItems == 0); + + m_infoWidgetPreferences->setPreference( + InfoWidgetPreferences::DisplayHomeZone, DISPLAY_SETTING_ON); + m_infoWidgetPreferences->setPreference( + InfoWidgetPreferences::DisplayMcn, DISPLAY_SETTING_ON); + m_infoWidgetPreferences->setPreference( + InfoWidgetPreferences::DisplayActiveLine, DISPLAY_SETTING_ON); + m_infoWidgetPreferences->setPreference( + InfoWidgetPreferences::DisplaySatText, DISPLAY_SETTING_ON); + m_infoWidgetPreferences->setPreference( + InfoWidgetPreferences::DisplaySpn, DISPLAY_SETTING_ON); + visibleItems = m_infoWidgetPreferences->visibleItemCount(); + QVERIFY(visibleItems == 5); +} + +/*! + UT_InfoWidgetPreferences::t_isPreferenceSet + */ +void UT_InfoWidgetPreferences::t_isPreferenceSet() +{ + m_infoWidgetPreferences->isPreferenceSet + (InfoWidgetPreferences::DisplayHomeZone); + + QVERIFY(verify()); +} + +/*! + UT_InfoWidgetPreferences::t_preferences + */ +void UT_InfoWidgetPreferences::t_preferences() +{ + m_infoWidgetPreferences->preferences(); + + QVERIFY(verify()); +} + +/*! + UT_InfoWidgetPreferences::t_preferenceNames + */ +void UT_InfoWidgetPreferences::t_preferenceNames() +{ + m_infoWidgetPreferences->preferenceNames(); + + QVERIFY(verify()); +} + +QTEST_MAIN_S60(UT_InfoWidgetPreferences) diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetpreferences/ut_infowidgetpreferences.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetpreferences/ut_infowidgetpreferences.pro Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,46 @@ +# +# 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 file for building unit test component +# +# + +CONFIG += qtestlib hb +TEMPLATE = app +TARGET = +DEPENDPATH += . ../../infowidget/src ../../infowidget/inc +INCLUDEPATH += . +INCLUDEPATH += ../common +INCLUDEPATH += ../../inc/ +INCLUDEPATH += ../../infowidget/inc/ +DEFINES += XQSETTINGSMANAGER_NO_LIBRARY +DEFINES += QT_NO_DEBUG_STREAM + +QT -= gui +QT += testlib + +symbian: { + CONFIG += no_icon + INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE + LIBS += -lmocklib \ + -lsymbianmock \ + -lcpframework +} + +# test code +HEADERS += ./inc/ut_infowidgetpreferences.h +SOURCES += ./src/ut_infowidgetpreferences.cpp + +# code to be tested +HEADERS += ../../infowidget/inc/infowidgetpreferences.h +SOURCES += ../../infowidget/src/infowidgetpreferences.cpp diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetsathandler/inc/ut_infowidgetsathandler.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetsathandler/inc/ut_infowidgetsathandler.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef UT_INFOWIDGETSATHANDLER_H +#define UT_INFOWIDGETSATHANDLER_H + +#include +#include + +class InfoWidgetSatHandler; + +class UT_InfoWidgetSatHandler : public QObject, public MockService +{ + Q_OBJECT + +public: + + UT_InfoWidgetSatHandler(); + ~UT_InfoWidgetSatHandler(); + +private slots: + + void init(); + void cleanup(); + + void t_satDisplayText(); + void t_setSatDisplayText(); + + void t_connect(); + void t_handleIdleModeTxtMessage(); + void t_handleSatError(); + +private: + + InfoWidgetSatHandler *m_satHandler; + +}; + +#endif // UT_INFOWIDGETSATHANDLER_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetsathandler/run_auto_tests_qt.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetsathandler/run_auto_tests_qt.bat Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,194 @@ +rem +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: +rem + +@echo off +setlocal +goto :startup + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function DEFAULT +:: +:: Modify this function +:: - TESTED_SRC can be changed to match tested code. +:: Specifies path from testcode group directory to +:: tested code +:: - Add test directories to be runned +:: ie. "call :build ut_projectdirectory" or use +:: "for /f %%a in ('dir /b ut_*') do call :build %%a" +:: which compiles, instruments and runs all test directories +:: starting with "ut_". +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:DEFAULT +set TESTED_SRC=..\..\infowidget\src\*.cpp + +for /f %%a in ('dir /b ut_*') do call :build %%a +if [%DOMODULESTESTS%] EQU [TRUE] ( +for /f %%a in ('dir /b mt_*') do call :build %%a +) + +call :finish +goto :END + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function STARTUP +:: +:: Initializing script +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:STARTUP + +set BUILDTESTS=TRUE +set RUNTESTS=TRUE +set INSTRUMENT=TRUE +set REMOVEINSTRUMENT=TRUE +set DOMODULESTESTS=TRUE +set ABLD_CALL= -2comp sbs.bat -c winscw_udeb --keepgoing +set PATH_TO_DLL=\epoc32\release\winscw\udeb +set PATH_TO_COVERAGE_DATA=\coverage_data +set PATH_TO_RESULT=\test_result + +if not exist %PATH_TO_COVERAGE_DATA% ( +mkdir %PATH_TO_COVERAGE_DATA% +) + +if not exist %PATH_TO_RESULT% ( +mkdir %PATH_TO_RESULT% +) + +if [%1] EQU [] ( goto default ) + +call :%1 +call :%2 +call :%3 +call :%4 +call :%5 +echo Running tests = %RUNTESTS% +echo Instrumenting tests = %INSTRUMENT% +goto default + +:/NOCLEANUP +set REMOVEINSTRUMENT=FALSE +goto end + +:/NORUN +set RUNTESTS=FALSE +set REMOVEINSTRUMENT=FALSE +goto end + +:/NOINSTRUMENT +set INSTRUMENT=FALSE +goto end + +:/NOBUILD +set BUILDTESTS=FALSE +goto end + +:/ONLYUNITTESTS +set DOMODULESTESTS=FALSE +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function FINISH +:: +:: Finishes run_auto_tests.bat +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:FINISH + +if [%RUNTESTS%] EQU [TRUE] ( +call :runtests +) + +if [%INSTRUMENT%] EQU [TRUE] ( +call :calculatecoverage +) + +if [%REMOVEINSTRUMENT%] EQU [TRUE] ( +call :removecoverage +) +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function BUILD +:: param directory +:: +:: builds test from given directory +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:BUILD +setlocal +if [%BUILDTESTS%] EQU [FALSE] ( goto end ) +echo Building %1 +if not exist %1 ( +echo %1 Not found! +goto end +) + +pushd . +call cd %1 +call qmake +call sbs -c winscw_udeb clean +if [%INSTRUMENT%] EQU [TRUE] ( +call ctcwrap -n %PATH_TO_COVERAGE_DATA%\%1 -i d -C "EXCLUDE=*" -C "NO_EXCLUDE=%TESTED_SRC%" %ABLD_CALL% +) else ( +call %ABLD_CALL% +) + +popd +endlocal +goto end + + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function RUNTESTS +:: +:: NOTE! Function assumes that test binary is named according to test directory. +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:RUNTESTS +echo Running tests +call %PATH_TO_DLL%\ut_infowidgetsathandler.exe -dtextshell -- + +move \epoc32\winscw\c\data\ut_infowidgetsathandler.log %PATH_TO_RESULT%\ut_infowidgetsathandler.log + +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function CALCULATECOVERAGE +:: +:: Calculates test coverage. Generates html +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:CALCULATECOVERAGE +echo Calculating coverage +ctcpost %PATH_TO_COVERAGE_DATA%\*.sym -p - | ctcmerge -i - -o profile.txt +call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function REMOVECOVERAGE +:: +:: Removes data from coverage directory +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:REMOVECOVERAGE +echo Removing deleting coverage data +call del %PATH_TO_COVERAGE_DATA%\*.sym +call del %PATH_TO_COVERAGE_DATA%\*.dat +call del profile.txt +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function END +:: +:: Prints done +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:END +echo Done! \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetsathandler/src/ut_infowidgetsathandler.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetsathandler/src/ut_infowidgetsathandler.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,126 @@ +/* +* 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 "ut_infowidgetsathandler.h" +#define private public +#include "infowidgetsathandler.h" +#include "qtestmains60.h" + +/*! + UT_InfoWidgetSatHandler::UT_InfoWidgetSatHandler + */ +UT_InfoWidgetSatHandler::UT_InfoWidgetSatHandler() + : + m_satHandler(NULL) +{ + +} + + +/*! + UT_InfoWidgetSatHandler::~UT_InfoWidgetSatHandler + */ +UT_InfoWidgetSatHandler::~UT_InfoWidgetSatHandler() +{ + delete m_satHandler; +} + +/*! + UT_InfoWidgetSatHandler::init + */ +void UT_InfoWidgetSatHandler::init() +{ + initialize(); + + m_satHandler = new InfoWidgetSatHandler(); + + QVERIFY(verify()); +} + + +/*! + UT_InfoWidgetSatHandler::cleanup + */ +void UT_InfoWidgetSatHandler::cleanup() +{ + reset(); + + delete m_satHandler; + m_satHandler = NULL; +} + + +/*! + UT_InfoWidgetSatHandler::t_satDisplayText + */ +void UT_InfoWidgetSatHandler::t_satDisplayText() +{ + QString satDisplayText("satDisplayText"); + m_satHandler->setSatDisplayText(satDisplayText); + QVERIFY(satDisplayText == m_satHandler->satDisplayText()); +} + + +/*! + UT_InfoWidgetSatHandler::t_setSatDisplayText + */ +void UT_InfoWidgetSatHandler::t_setSatDisplayText() +{ + QString satDisplayText("satDisplayText"); + m_satHandler->setSatDisplayText(satDisplayText); + + QVERIFY(satDisplayText == m_satHandler->satDisplayText()); +} + + +void UT_InfoWidgetSatHandler::t_connect() +{ + //}else if (!connect && m_connected){ + m_satHandler->m_connected = true; + m_satHandler->connect(false); + + + m_satHandler->m_connected = true; + m_satHandler->connect(true); + + //if(connect && !m_connected){ + m_satHandler->m_connected = false; + m_satHandler->connect(false); + + QVERIFY(verify()); +} + + +void UT_InfoWidgetSatHandler::t_handleIdleModeTxtMessage() +{ + m_satHandler->m_connected = false; + m_satHandler->handleIdleModeTxtMessage(0); + m_satHandler->m_connected = true; + m_satHandler->handleIdleModeTxtMessage(0); + + QVERIFY(verify()); +} + + +void UT_InfoWidgetSatHandler::t_handleSatError() +{ + m_satHandler->handleSatError(1,1); + + QVERIFY(verify()); +} + + +QTEST_MAIN_S60(UT_InfoWidgetSatHandler) diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetsathandler/ut_infowidgetsathandler.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetsathandler/ut_infowidgetsathandler.pro Wed Jun 23 18:12:20 2010 +0300 @@ -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 file for building unit test component +# +# + +CONFIG += qtestlib hb +TEMPLATE = app +TARGET = +DEPENDPATH += . ../../infowidget/src +INCLUDEPATH += . +INCLUDEPATH += ../common +INCLUDEPATH += ../../inc/ +INCLUDEPATH += ../../infowidget/inc/ + +QT -= gui +QT += testlib + +symbian: { + CONFIG += no_icon + INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE + LIBS += -lmocklib \ + -lsymbianmock \ + -lcpframework +} + +# test code +HEADERS += ./inc/ut_infowidgetsathandler.h +SOURCES += ./src/ut_infowidgetsathandler.cpp + +# code to be tested +HEADERS += ../../infowidget/inc/infowidgetsathandler.h +SOURCES += ../../infowidget/src/infowidgetsathandler.cpp + +# mocks needed for testing +SOURCES += ../mocks/mock_rsatservice.cpp \ + ../mocks/mock_RSatSession.cpp \ + ../mocks/mock_infowidgetsathandlerprivate.cpp \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetsathandlerprivate/inc/ut_infowidgetsathandlerprivate.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetsathandlerprivate/inc/ut_infowidgetsathandlerprivate.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,58 @@ +/* +* 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 UT_INFOWIDGETSATHANDLERPRIVATE_H +#define UT_INFOWIDGETSATHANDLERPRIVATE_H + +#include +#include +#include + + +class InfoWidgetSatHandlerPrivate; +class InfoWidgetSatHandler; + +class UT_InfoWidgetSatHandlerPrivate : public QObject, public MockService +{ + Q_OBJECT + +public: + + UT_InfoWidgetSatHandlerPrivate(); + ~UT_InfoWidgetSatHandlerPrivate(); + +private slots: + + void init(); + void cleanup(); + + void t_connect(); + void t_disconnect(); + void t_startObserving(); + + void t_runL(); + void t_doCancel(); + +private: + + InfoWidgetSatHandlerPrivate *m_satHandler; + InfoWidgetSatHandler* m_iwSatHandler; + RSatService m_satService; + +}; + +#endif // UT_INFOWIDGETSATHANDLERPRIVATE_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetsathandlerprivate/run_auto_tests_qt.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetsathandlerprivate/run_auto_tests_qt.bat Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,194 @@ +rem +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: +rem + +@echo off +setlocal +goto :startup + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function DEFAULT +:: +:: Modify this function +:: - TESTED_SRC can be changed to match tested code. +:: Specifies path from testcode group directory to +:: tested code +:: - Add test directories to be runned +:: ie. "call :build ut_projectdirectory" or use +:: "for /f %%a in ('dir /b ut_*') do call :build %%a" +:: which compiles, instruments and runs all test directories +:: starting with "ut_". +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:DEFAULT +set TESTED_SRC=..\..\infowidget\src\*.cpp + +for /f %%a in ('dir /b ut_*') do call :build %%a +if [%DOMODULESTESTS%] EQU [TRUE] ( +for /f %%a in ('dir /b mt_*') do call :build %%a +) + +call :finish +goto :END + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function STARTUP +:: +:: Initializing script +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:STARTUP + +set BUILDTESTS=TRUE +set RUNTESTS=TRUE +set INSTRUMENT=TRUE +set REMOVEINSTRUMENT=TRUE +set DOMODULESTESTS=TRUE +set ABLD_CALL= -2comp sbs.bat -c winscw_udeb --keepgoing +set PATH_TO_DLL=\epoc32\release\winscw\udeb +set PATH_TO_COVERAGE_DATA=\coverage_data +set PATH_TO_RESULT=\test_result + +if not exist %PATH_TO_COVERAGE_DATA% ( +mkdir %PATH_TO_COVERAGE_DATA% +) + +if not exist %PATH_TO_RESULT% ( +mkdir %PATH_TO_RESULT% +) + +if [%1] EQU [] ( goto default ) + +call :%1 +call :%2 +call :%3 +call :%4 +call :%5 +echo Running tests = %RUNTESTS% +echo Instrumenting tests = %INSTRUMENT% +goto default + +:/NOCLEANUP +set REMOVEINSTRUMENT=FALSE +goto end + +:/NORUN +set RUNTESTS=FALSE +set REMOVEINSTRUMENT=FALSE +goto end + +:/NOINSTRUMENT +set INSTRUMENT=FALSE +goto end + +:/NOBUILD +set BUILDTESTS=FALSE +goto end + +:/ONLYUNITTESTS +set DOMODULESTESTS=FALSE +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function FINISH +:: +:: Finishes run_auto_tests.bat +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:FINISH + +if [%RUNTESTS%] EQU [TRUE] ( +call :runtests +) + +if [%INSTRUMENT%] EQU [TRUE] ( +call :calculatecoverage +) + +if [%REMOVEINSTRUMENT%] EQU [TRUE] ( +call :removecoverage +) +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function BUILD +:: param directory +:: +:: builds test from given directory +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:BUILD +setlocal +if [%BUILDTESTS%] EQU [FALSE] ( goto end ) +echo Building %1 +if not exist %1 ( +echo %1 Not found! +goto end +) + +pushd . +call cd %1 +call qmake +call sbs -c winscw_udeb clean +if [%INSTRUMENT%] EQU [TRUE] ( +call ctcwrap -n %PATH_TO_COVERAGE_DATA%\%1 -i d -C "EXCLUDE=*" -C "NO_EXCLUDE=%TESTED_SRC%" %ABLD_CALL% +) else ( +call %ABLD_CALL% +) + +popd +endlocal +goto end + + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function RUNTESTS +:: +:: NOTE! Function assumes that test binary is named according to test directory. +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:RUNTESTS +echo Running tests +call %PATH_TO_DLL%\ut_infowidgetsathandlerprivate.exe -dtextshell -- + +move \epoc32\winscw\c\data\ut_infowidgetsathandlerprivate.log %PATH_TO_RESULT%\ut_infowidgetsathandlerprivate.log + +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function CALCULATECOVERAGE +:: +:: Calculates test coverage. Generates html +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:CALCULATECOVERAGE +echo Calculating coverage +ctcpost %PATH_TO_COVERAGE_DATA%\*.sym -p - | ctcmerge -i - -o profile.txt +call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function REMOVECOVERAGE +:: +:: Removes data from coverage directory +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:REMOVECOVERAGE +echo Removing deleting coverage data +call del %PATH_TO_COVERAGE_DATA%\*.sym +call del %PATH_TO_COVERAGE_DATA%\*.dat +call del profile.txt +goto end + +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: function END +:: +:: Prints done +:::::::::::::::::::::::::::::::::::::::::::::::::::::: +:END +echo Done! \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetsathandlerprivate/src/ut_infowidgetsathandlerprivate.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetsathandlerprivate/src/ut_infowidgetsathandlerprivate.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,221 @@ +/* +* 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 "ut_infowidgetsathandlerprivate.h" +#define private public +#include "infowidgetsathandlerprivate.h" +#include "infowidgetsathandler.h" +#include "infowidgetlogging.h" +#include "qtestmains60.h" + +void SimulateLeaveL() +{ + User::Leave(KErrGeneral); +} + +void FillData( HBufC * aText, + RSatService::TSatIconQualifier & aIconQualifier, + TUint8 & aRecordNumber) +{ + _LIT(KText,"Idle Text"); + TPtr p(aText->Des()); + p.Copy(KText); + aIconQualifier=RSatService::ESatIconNotSelfExplanatory; + aRecordNumber=1; +} + +void FillDataNoIcon( HBufC * aText, + RSatService::TSatIconQualifier & aIconQualifier, + TUint8 & aRecordNumber) +{ + Q_UNUSED(aIconQualifier); + Q_UNUSED(aRecordNumber); + _LIT(KText,"Idle Text"); + TPtr p(aText->Des()); + p.Copy(KText); +} + +void FillDataSelfExplIcon( HBufC * aText, + RSatService::TSatIconQualifier & aIconQualifier, + TUint8 & aRecordNumber) +{ + Q_UNUSED(aText); + aIconQualifier=RSatService::ESatIconSelfExplanatory; + aRecordNumber=1; +} + +/*! + UT_InfoWidgetSatHandlerPrivate ::UT_InfoWidgetSatHandlerPrivate + */ +UT_InfoWidgetSatHandlerPrivate::UT_InfoWidgetSatHandlerPrivate () //: +{ + DPRINT << "IN"; + + m_satHandler = 0; + m_iwSatHandler = 0; + + DPRINT << "OUT"; +} + +/*! + UT_InfoWidgetSatHandlerPrivate ::~UT_InfoWidgetSatHandlerPrivate + */ +UT_InfoWidgetSatHandlerPrivate::~UT_InfoWidgetSatHandlerPrivate () +{ + DPRINT << "IN"; + + delete m_satHandler; + delete m_iwSatHandler; + + DPRINT << "OUT"; +} + +/*! + UT_InfoWidgetSatHandlerPrivate ::init + */ +void UT_InfoWidgetSatHandlerPrivate::init() +{ + DPRINT << "IN"; + + initialize(); + m_iwSatHandler = new InfoWidgetSatHandler; + m_satHandler = new InfoWidgetSatHandlerPrivate( m_iwSatHandler, m_satService); + + QVERIFY(verify()); + + DPRINT << "OUT"; +} + +/*! + UT_InfoWidgetSatHandlerPrivate ::cleanup + */ +void UT_InfoWidgetSatHandlerPrivate::cleanup() +{ + DPRINT << "IN"; + + reset(); + delete m_satHandler; + delete m_iwSatHandler; + + DPRINT << "OUT"; +} + +/*! + UT_InfoWidgetSatHandlerPrivate::t_connect + */ +void UT_InfoWidgetSatHandlerPrivate::t_connect() +{ + DPRINT << "IN"; + + expect("RSatSession::ConnectL"); + expect("RSatService::OpenL"); + m_satHandler->connect(); + + expect("RSatSession::ConnectL") + .willOnce(invokeWithoutArguments(SimulateLeaveL)); + m_satHandler->connect(); + + expect("RSatService::OpenL") + .willOnce(invokeWithoutArguments(SimulateLeaveL)); + m_satHandler->connect(); + + QVERIFY(verify()); + + DPRINT << "OUT"; +} + +/*! + UT_InfoWidgetSatHandlerPrivate::t_disconnect + */ +void UT_InfoWidgetSatHandlerPrivate::t_disconnect() +{ + DPRINT << "IN"; + + m_satHandler->disconnect(); + QVERIFY(verify()); + + DPRINT << "OUT"; +} + +/*! + UT_InfoWidgetSatHandlerPrivate::t_startObserving + */ +void UT_InfoWidgetSatHandlerPrivate::t_startObserving() +{ + DPRINT << "IN"; + + int i = KErrGeneral; + expect("RSatService::NotifySetupIdleModeTextChange").returns(i); + expect("RSatService::GetSetupIdleModeTextL") + .willOnce(invoke(FillData)); + m_satHandler->startObserving(); + + expect("RSatService::NotifySetupIdleModeTextChange").returns(i); + expect("RSatService::GetSetupIdleModeTextL") + .willOnce(invoke(FillDataNoIcon)); + m_satHandler->startObserving(); + + expect("RSatService::NotifySetupIdleModeTextChange").returns(i); + expect("RSatService::GetSetupIdleModeTextL") + .willOnce(invoke(FillDataSelfExplIcon)); + m_satHandler->startObserving(); + + expect("RSatService::GetSetupIdleModeTextL") + .willOnce(invokeWithoutArguments(SimulateLeaveL)); + m_satHandler->startObserving(); + + QVERIFY(verify()); + + DPRINT << "OUT"; +} + +/*! + UT_InfoWidgetSatHandlerPrivate::t_runL + */ +void UT_InfoWidgetSatHandlerPrivate::t_runL() +{ + DPRINT << "IN"; + + int i = 1; + expect("RSatService::GetSetupIdleModeTextL") + .willOnce(invoke(FillData)); + expect("RSatService::NotifySetupIdleModeTextChange").returns(i); + m_satHandler->RunL(); + + m_satHandler->iStatus = KErrGeneral; + expect("RSatService::NotifySetupIdleModeTextChange").returns(i); + m_satHandler->RunL(); + + QVERIFY(verify()); + + DPRINT << "OUT"; +} + +/*! + UT_InfoWidgetSatHandlerPrivate::t_doCancel + */ +void UT_InfoWidgetSatHandlerPrivate::t_doCancel() +{ + DPRINT << "IN"; + + m_satHandler->DoCancel(); + QVERIFY(verify()); + + DPRINT << "OUT"; +} + +QTEST_MAIN_S60(UT_InfoWidgetSatHandlerPrivate ) diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/infowidgetplugin/tsrc/ut_infowidgetsathandlerprivate/ut_infowidgetsathandlerprivate.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/ut_infowidgetsathandlerprivate/ut_infowidgetsathandlerprivate.pro Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,51 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: Project file for building unit test component +# +# + +CONFIG += qtestlib hb +TEMPLATE = app +TARGET = +DEPENDPATH += . ../../infowidget/src +INCLUDEPATH += . +INCLUDEPATH += ../common +INCLUDEPATH += ../../inc/ +INCLUDEPATH += ../../infowidget/inc/ + +QT -= gui +QT += testlib + +symbian: { + CONFIG += no_icon + INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE + LIBS += -lmocklib \ + -lsymbianmock \ + -lcpframework +} + +# test code +HEADERS += ./inc/ut_infowidgetsathandlerprivate.h +SOURCES += ./src/ut_infowidgetsathandlerprivate.cpp + +# code to be tested +HEADERS += ../../infowidget/inc/infowidgetsathandler.h +HEADERS += ../../infowidget/inc/infowidgetsathandlerprivate.h + +SOURCES += ../../infowidget/src/infowidgetsathandlerprivate.cpp + +# mocks needed for testing +SOURCES += ../mocks/mock_rsatservice.cpp \ + ../mocks/mock_RSatSession.cpp \ + ../mocks/mock_infowidgetsathandler.cpp diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/phoneindicatorplugin/inc/api_headers.pri --- a/phoneplugins/phoneindicatorplugin/inc/api_headers.pri Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneplugins/phoneindicatorplugin/inc/api_headers.pri Wed Jun 23 18:12:20 2010 +0300 @@ -1,18 +1,2 @@ -# -# 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: -# - PHONEINDICATORPLUGIN_API_HEADERS = \ ./inc/phoneindicators.h \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/phoneindicatorplugin/inc/phoneindicatorinterface.h --- a/phoneplugins/phoneindicatorplugin/inc/phoneindicatorinterface.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneplugins/phoneindicatorplugin/inc/phoneindicatorinterface.h Wed Jun 23 18:12:20 2010 +0300 @@ -24,6 +24,8 @@ #include #include "phoneindicators.h" +#include + class PhoneIndicatorInterface : public HbIndicatorInterface { public: @@ -35,10 +37,17 @@ bool handleInteraction(InteractionType type); QVariant indicatorData(int role) const; + +private slots: + void handleReturnValue(const QVariant &returnValue); + void handleError(int errorCode,const QString &errorMessage); protected: bool handleClientRequest(RequestType type, const QVariant ¶meter); + +private: + void launchDivertSettingsView(); private: @@ -49,6 +58,7 @@ QString m_icon; QString m_icon2; QVariant m_parameter; + XQApplicationManager m_appMgr; }; #endif // PHONEINDICATORINTERFACE_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/phoneindicatorplugin/inc/phoneindicators.h --- a/phoneplugins/phoneindicatorplugin/inc/phoneindicators.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneplugins/phoneindicatorplugin/inc/phoneindicators.h Wed Jun 23 18:12:20 2010 +0300 @@ -30,13 +30,15 @@ InteractionNone, OpenMissedCallView, SwitchBackToCall, + OpenDiverSettingsView, Deactivate }; enum PhoneIndicatorTypes { PhoneMissedCallIndicator = 0, - PhoneActiveCallIndicator + PhoneActiveCallIndicator, + PhoneDivertIndidicator }; inline QString indicatorName(int indicatorType) { @@ -53,10 +55,11 @@ Q_DECLARE_METATYPE(PhoneIndicatorInfo) -static const int PhoneIndicatorCount = 2; +static const int PhoneIndicatorCount = 3; static const PhoneIndicatorInfo IndicatorInfos[PhoneIndicatorCount] = { {"qtg_mono_info.svg", "Missed call", "Name/Number", OpenMissedCallView }, - {"qtg_mono_info.svg", "Active call", " ", SwitchBackToCall } + {"qtg_mono_info.svg", "Active call", " ", SwitchBackToCall }, + {"qtg_mono_info.svg", "Active diverts", " ", OpenDiverSettingsView } }; #endif // PHONEINDICATORS_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/phoneindicatorplugin/phoneindicatorplugin.pro --- a/phoneplugins/phoneindicatorplugin/phoneindicatorplugin.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneplugins/phoneindicatorplugin/phoneindicatorplugin.pro Wed Jun 23 18:12:20 2010 +0300 @@ -21,31 +21,35 @@ DEPENDPATH += ./inc \ ./src -INCLUDEPATH += ./inc \ +INCLUDEPATH += ./inc symbian { - load(data_caging_paths) - include(./inc/api_headers.pri) + load(data_caging_paths) + include(./inc/api_headers.pri) + + INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE headers.sources = $$PHONEINDICATORPLUGIN_API_HEADERS headers.path = |../../inc for(header, headers.sources):BLD_INF_RULES.prj_exports += "$$header $$headers.path/$$basename(header)" - + BLD_INF_RULES.prj_exports += \ "$${LITERAL_HASH}include " \ "./rom/phoneindicatorplugin.iby CORE_APP_LAYER_IBY_EXPORT_PATH(phoneindicatorplugin.iby)" - - LIBS += -lxqservice - + + LIBS += -lxqservice \ + -lxqserviceutil \ + -lcpframework + TARGET.EPOCALLOWDLLDATA = 1 TARGET.CAPABILITY = ALL -TCB TARGET.UID3 = 0x2002E6B1 - + pluginstub.sources = phoneindicatorplugin.dll pluginstub.path = /resource/plugins/indicators DEPLOYMENT += pluginstub -}else:win32 { +} else:win32 { # Put it to Hb/lib because it is in path DESTDIR = c:/hb/lib diff -r ba76fc04e6c2 -r 6b911d05207e phoneplugins/phoneindicatorplugin/src/phoneindicatorinterface.cpp --- a/phoneplugins/phoneindicatorplugin/src/phoneindicatorinterface.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneplugins/phoneindicatorplugin/src/phoneindicatorinterface.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -15,7 +15,7 @@ * */ -#include "Phoneindicatorinterface.h" +#include "phoneindicatorinterface.h" #include "phoneindicators.h" #include @@ -23,8 +23,11 @@ #ifdef Q_OS_SYMBIAN #include #include -#include +#include #include +#include +#include + #endif @@ -51,8 +54,7 @@ bool PhoneIndicatorInterface::handleInteraction(InteractionType type) { if (type == InteractionActivated) { - switch (m_interaction) { - + switch (m_interaction) { case OpenMissedCallView: { #ifdef Q_OS_SYMBIAN XQServiceRequest snd("com.nokia.services.logsservices.starter", @@ -61,21 +63,27 @@ snd << false; int retValue; snd.send(retValue); - -// LogsServices::start( LogsServices::ViewMissed, false ); #endif } break; case SwitchBackToCall: { #ifdef Q_OS_SYMBIAN - RWsSession& wsSession = CEikonEnv::Static()->WsSession(); - TApaTaskList taskList( wsSession ); - const TUid KUidPhoneApp = { 0x100058B3 }; // Phone application - TApaTask task = taskList.FindApp(KUidPhoneApp); - task.BringToForeground(); + int dialer(1); + XQServiceRequest snd("com.nokia.services.telephony.uistarter", + "start(int)", false); + XQRequestInfo info; + info.setForeground(true); + snd.setInfo(info); + snd << dialer; + QVariant retValue; + snd.send(retValue); #endif } break; + case OpenDiverSettingsView: { + launchDivertSettingsView(); + } + break; case Deactivate: emit deactivate(); break; @@ -106,8 +114,7 @@ bool PhoneIndicatorInterface::handleClientRequest(RequestType type, const QVariant ¶meter) { bool handled(false); - switch (type) { - + switch (type) { case RequestActivate: if (m_parameter != parameter) { m_parameter = parameter; @@ -121,3 +128,44 @@ return handled; } + +void PhoneIndicatorInterface::launchDivertSettingsView() +{ + + XQAiwRequest *request = m_appMgr.create( + "com.nokia.symbian.ICpPluginLauncher", + "launchSettingView(QString,QVariant)", + false); // + + if (!request) { + return; + } + else { + connect(request, SIGNAL(requestOk(QVariant)), SLOT(handleReturnValue(QVariant))); + connect(request, SIGNAL(requestError(int,QString)), SLOT(handleError(int,QString))); + } + // Set arguments for request + QList args; + args << (QString)"cptelephonyplugin.dll"; + args << (QVariant)""; + + request->setArguments(args); + request->setSynchronous(true); + // Make the request + if (!request->send()) { + //report error + } + delete request; + +} + +void PhoneIndicatorInterface::handleReturnValue(const QVariant &returnValue) +{ + Q_UNUSED(returnValue); +} + +void PhoneIndicatorInterface::handleError(int errorCode,const QString &errorMessage) +{ + Q_UNUSED(errorCode); + Q_UNUSED(errorMessage); +} diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/barringplugin/inc/cpbarringplugingroup.h --- a/phonesettings/cpphonesettingsplugins/barringplugin/inc/cpbarringplugingroup.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/barringplugin/inc/cpbarringplugingroup.h Wed Jun 23 18:12:20 2010 +0300 @@ -99,7 +99,7 @@ void changeBarringStateRequested(int checkState); - void changeBarringPasswordRequested(bool checked = false); + void changeBarringPasswordRequested(); void completeBarringStateChangeRequestHandling( QString barringPassword, diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/barringplugin/src/cpbarringplugingroup.cpp --- a/phonesettings/cpphonesettingsplugins/barringplugin/src/cpbarringplugingroup.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/barringplugin/src/cpbarringplugingroup.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -106,8 +106,8 @@ CpSettingFormItemData* formItem = static_cast( qobject_cast(item.model())->itemFromIndex(item)); - - if (!formItem->property("barringType").isValid()) { + + if (!formItem->contentWidgetData("barringType").isValid()) { // Shown item does not belong to the barring settings group. return; } @@ -270,7 +270,7 @@ QVariant value; value.setValue(barringType); - barringItem->setProperty("barringType", value); + barringItem->setContentWidgetData("barringType", value); appendChild(barringItem.data()); DPRINT << ": OUT"; @@ -301,35 +301,33 @@ m_barringRequestQueue.clear(); return; } - - CpSettingFormItemData *itemForCompletedRequest = - m_barringRequestQueue.dequeue(); + + if (!m_barringRequestQueue.isEmpty()) { + CpSettingFormItemData *itemForCompletedRequest = + m_barringRequestQueue.dequeue(); - if (!itemForCompletedRequest->isEnabled()) { - // After enabling setting item here status query will not be started - // again for the item when user collapses and expands the barring - // settings group again. - itemForCompletedRequest->setEnabled(true); - // start to observe user initiated state changes - m_helper.addConnection( - itemForCompletedRequest, SIGNAL(stateChanged(int)), - this, SLOT(changeBarringStateRequested(int))); + if (!itemForCompletedRequest->isEnabled()) { + // After enabling setting item here status query will not be started + // again for the item when user collapses and expands the barring + // settings group again. + itemForCompletedRequest->setEnabled(true); + // start to observe user initiated state changes + m_helper.addConnection( + itemForCompletedRequest, SIGNAL(stateChanged(int)), + this, SLOT(changeBarringStateRequested(int))); + } + + Qt::CheckState checkState = + (PSetCallBarringWrapper::BarringStatusActive == status) + ? Qt::Checked + : Qt::Unchecked; + updateCheckStateOfItem(*itemForCompletedRequest, checkState); } - - Qt::CheckState checkState = - (PSetCallBarringWrapper::BarringStatusActive == status) - ? Qt::Checked - : Qt::Unchecked; - updateCheckStateOfItem(*itemForCompletedRequest, checkState); - if (m_barringRequestQueue.isEmpty()) { m_phoneNotes->cancelNote(m_activeNoteId); if (m_delayedBarringActivationNote) { m_delayedBarringActivationNote = false; - m_phoneNotes->showGlobalNote( - m_activeNoteId, - hbTrId("txt_phone_info_barring_activated"), - HbMessageBox::MessageTypeInformation); + m_phoneNotes->showNotificationDialog(hbTrId("txt_phone_info_barring_activated")); } // Password editing is enabled only after all barring statuses are @@ -339,8 +337,8 @@ if (!m_editBarringPasswordItem->isEnabled()) { m_editBarringPasswordItem->setEnabled(true); m_helper.addConnection( - m_editBarringPasswordItem, SIGNAL(clicked(bool)), - this, SLOT(changeBarringPasswordRequested(bool))); + m_editBarringPasswordItem, SIGNAL(valueChanged(QPersistentModelIndex, QVariant)), + this, SLOT(changeBarringPasswordRequested())); } } else { processBarringStatusRequestQueue(); @@ -365,24 +363,23 @@ Q_UNUSED(barringStatus) Q_UNUSED(plural) - CpSettingFormItemData *barringItem = m_barringRequestQueue.dequeue(); - if (PSetCallBarringWrapper::BarringErrorNone == result) { - if (updateDependentBarringProgramStatuses(*barringItem)) { - // Indicate barring activation completion only when dependent - // barring items are also updated. - m_delayedBarringActivationNote = true; + if (!m_barringRequestQueue.isEmpty()) { + CpSettingFormItemData *barringItem = m_barringRequestQueue.dequeue(); + if (PSetCallBarringWrapper::BarringErrorNone == result) { + if (updateDependentBarringProgramStatuses(*barringItem)) { + // Indicate barring activation completion only when dependent + // barring items are also updated. + m_delayedBarringActivationNote = true; + } else { + m_phoneNotes->cancelNote(m_activeNoteId); + m_phoneNotes->showNotificationDialog(hbTrId("txt_phone_info_barring_activated")); + } } else { + revertCheckStateOfItem(barringItem); + m_phoneNotes->cancelNote(m_activeNoteId); - m_phoneNotes->showGlobalNote( - m_activeNoteId, - hbTrId("txt_phone_info_barring_activated"), - HbMessageBox::MessageTypeInformation); + m_phoneNotes->showGlobalErrorNote(m_activeNoteId, result); } - } else { - revertCheckStateOfItem(barringItem); - - m_phoneNotes->cancelNote(m_activeNoteId); - m_phoneNotes->showGlobalErrorNote(m_activeNoteId, result); } DPRINT << ": OUT"; @@ -406,14 +403,13 @@ m_phoneNotes->cancelNote(m_activeNoteId); - CpSettingFormItemData *barringItem = m_barringRequestQueue.dequeue(); if (PSetCallBarringWrapper::BarringErrorNone == result) { - m_phoneNotes->showGlobalNote( - m_activeNoteId, - hbTrId("txt_phone_info_barring_deactivated"), - HbMessageBox::MessageTypeInformation); + m_phoneNotes->showNotificationDialog(hbTrId("txt_phone_info_barring_deactivated")); } else { - revertCheckStateOfItem(barringItem); + if (!m_barringRequestQueue.isEmpty()) { + CpSettingFormItemData *barringItem = m_barringRequestQueue.dequeue(); + revertCheckStateOfItem(barringItem); + } m_phoneNotes->showGlobalErrorNote(m_activeNoteId, result); } @@ -432,10 +428,7 @@ m_phoneNotes->cancelNote(m_activeNoteId); if (PSetCallBarringWrapper::BarringErrorNone == result) { - m_phoneNotes->showGlobalNote( - m_activeNoteId, - hbTrId("txt_phone_info_password_changed"), - HbMessageBox::MessageTypeInformation); + m_phoneNotes->showNotificationDialog(hbTrId("txt_phone_info_password_changed")); } else { m_phoneNotes->showGlobalErrorNote(m_activeNoteId, result); } @@ -455,7 +448,7 @@ CpSettingFormItemData *item = m_barringRequestQueue.head(); PSetCallBarringWrapper::BarringType barringType = qvariant_cast( - item->property("barringType")); + item->contentWidgetData("barringType")); m_barringWrapper->barringStatus(ServiceGroupVoice, barringType); m_barringStatusRequestOngoing = true; @@ -463,7 +456,7 @@ if (!m_phoneNotes->noteShowing()) { // Launch progress note only once for status update. m_phoneNotes->showGlobalProgressNote( - m_activeNoteId, hbTrId("txt_phone_info_requesting")); + m_activeNoteId, hbTrId("txt_common_info_requesting")); } } @@ -517,26 +510,26 @@ QObject::disconnect( m_phoneNotes, SIGNAL(passwordQueryCompleted(QString, bool)), this, SLOT(completeBarringStateChangeRequestHandling(QString, bool))); - if (okPressed) { + if (okPressed && m_clickedBarringItem) { QVariant checkState = m_clickedBarringItem->contentWidgetData("checkState"); if (Qt::Checked == checkState.toInt()) { m_barringWrapper->enableBarring( ServiceGroupVoice, qvariant_cast( - m_clickedBarringItem->property("barringType")), + m_clickedBarringItem->contentWidgetData("barringType")), barringPassword); } else { m_barringWrapper->disableBarring( ServiceGroupVoice, qvariant_cast( - m_clickedBarringItem->property("barringType")), + m_clickedBarringItem->contentWidgetData("barringType")), barringPassword); } m_barringRequestQueue.enqueue(m_clickedBarringItem); m_phoneNotes->showGlobalProgressNote( - m_activeNoteId, hbTrId("txt_phone_info_requesting")); - } else { + m_activeNoteId, hbTrId("txt_common_info_requesting")); + } else if (m_clickedBarringItem) { revertCheckStateOfItem(m_clickedBarringItem); } m_clickedBarringItem = NULL; @@ -547,10 +540,9 @@ /*! CpBarringPluginGroup::changeBarringPasswordRequested. */ -void CpBarringPluginGroup::changeBarringPasswordRequested(bool checked) +void CpBarringPluginGroup::changeBarringPasswordRequested() { DPRINT << ": IN"; - Q_UNUSED(checked) m_changeBarringPasswordPhase = CurrentPasswordPhase; QString currentPasswordQueryDialogTitle( @@ -614,7 +606,7 @@ m_newPasswordVerified); m_phoneNotes->showGlobalProgressNote( m_activeNoteId, - hbTrId("txt_phone_info_requesting")); + hbTrId("txt_common_info_requesting")); QObject::disconnect( m_phoneNotes, SIGNAL(passwordQueryCompleted(QString, bool)), this, SLOT(changeBarringPasswordPhasesHandling(QString, bool))); @@ -651,7 +643,7 @@ CpSettingFormItemData* barringItem = NULL; PSetCallBarringWrapper::BarringType barringType = qvariant_cast( - changedBarringItem.property("barringType")); + changedBarringItem.contentWidgetData("barringType")); QList itemCandidatesForUpdate; switch (barringType) { case PSetCallBarringWrapper::BarringTypeAllOutgoing: @@ -750,7 +742,7 @@ static_cast(childAt(childInd)); PSetCallBarringWrapper::BarringType candidateBarringProgram = qvariant_cast( - itemCandidate->property("barringType")); + itemCandidate->contentWidgetData("barringType")); if (candidateBarringProgram == barringProgram) { item = itemCandidate; } diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/barringplugin/tsrc/run_auto_tests_qt.bat --- a/phonesettings/cpphonesettingsplugins/barringplugin/tsrc/run_auto_tests_qt.bat Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/barringplugin/tsrc/run_auto_tests_qt.bat Wed Jun 23 18:12:20 2010 +0300 @@ -169,7 +169,7 @@ :::::::::::::::::::::::::::::::::::::::::::::::::::::: :CALCULATECOVERAGE echo Calculating coverage -ctcpost %PATH_TO_COVERAGE_DATA%\*.sym | ctcmerge -i - -o profile.txt +ctcpost %PATH_TO_COVERAGE_DATA%\*.sym -p - | ctcmerge -i - -o profile.txt call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb goto end diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/barringplugin/tsrc/ut_barringplugingroup/ut_barringplugingroup.cpp --- a/phonesettings/cpphonesettingsplugins/barringplugin/tsrc/ut_barringplugingroup/ut_barringplugingroup.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/barringplugin/tsrc/ut_barringplugingroup/ut_barringplugingroup.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -35,18 +35,13 @@ const QString KCurrentPassword = "1234"; void setCurrentPasswordParams( - const QString &title, - const QValidator &validator, - int maxPasswordLength, - QString &password, - bool &ok) + const QString &title, + const QValidator &validator, + int maxPasswordLength) { Q_UNUSED(title) Q_UNUSED(validator) Q_UNUSED(maxPasswordLength) - - password = KCurrentPassword; - ok = true; } @@ -54,32 +49,22 @@ void setNewAndVerifiedPasswordParams( const QString &title, const QValidator &validator, - int maxPasswordLength, - QString &password, - bool &ok) + int maxPasswordLength) { Q_UNUSED(title) Q_UNUSED(validator) Q_UNUSED(maxPasswordLength) - - password = KNewAndVerifiedPassword; - ok = true; } void setPasswordParamsCancel( const QString &title, const QValidator &validator, - int maxPasswordLength, - QString &password, - bool &ok) + int maxPasswordLength) { Q_UNUSED(title) Q_UNUSED(validator) Q_UNUSED(maxPasswordLength) - Q_UNUSED(password) - - ok = false; } @@ -101,8 +86,8 @@ */ UT_CpBarringPluginGroup::~UT_CpBarringPluginGroup() { - delete m_barringpluginGroup; delete m_barringWrapperMock; + delete m_dataFormModel; } @@ -122,7 +107,8 @@ m_barringpluginGroup = new CpBarringPluginGroup(itemDataHelper); m_dataFormModel = new HbDataFormModel(); - m_barringpluginGroup->setModel(m_dataFormModel); + m_dataFormModel->appendDataFormItem(m_barringpluginGroup); + m_barringpluginGroup->m_model = m_dataFormModel; QVERIFY(verify()); @@ -143,12 +129,11 @@ this, SIGNAL(simulateCheckStateChange(int)), m_barringpluginGroup, SLOT(changeBarringStateRequested(int))); - delete m_barringpluginGroup; - m_barringpluginGroup = NULL; + delete m_dataFormModel; + m_dataFormModel = NULL; delete m_barringWrapperMock; m_barringWrapperMock = NULL; - delete m_dataFormModel; - m_dataFormModel = NULL; + } @@ -221,6 +206,8 @@ EXPECT(CpPhoneNotes::showPasswordQueryDialog) .willOnce(invoke(setCurrentPasswordParams)); emit simulateCheckStateChange(Qt::Checked); + m_barringpluginGroup->completeBarringStateChangeRequestHandling( + KCurrentPassword, true); // verify that already connected items are not enabled/connected again EXPECT(CpItemDataHelper::removeConnection).times(1); @@ -229,6 +216,7 @@ errorCode, basicServiceGroupIds, PSetCallBarringWrapper::BarringStatusActive); + QVERIFY(verify()); } @@ -339,9 +327,12 @@ EXPECT(CpPhoneNotes::showPasswordQueryDialog) .willOnce(invoke(setCurrentPasswordParams)); EXPECT(CpPhoneNotes::cancelNote); - EXPECT(CpPhoneNotes::showGlobalNote); + EXPECT(CpPhoneNotes::showNotificationDialog); emit simulateCheckStateChange(Qt::Checked); + m_barringpluginGroup->completeBarringStateChangeRequestHandling( + KCurrentPassword, true); + m_barringpluginGroup->enableBarringRequestCompleted( 0, PSetCallBarringWrapper::BarringTypeAllBarrings, @@ -363,6 +354,9 @@ EXPECT(CpPhoneNotes::showGlobalErrorNote); emit simulateCheckStateChange(Qt::Checked); + m_barringpluginGroup->completeBarringStateChangeRequestHandling( + KCurrentPassword, true); + m_barringpluginGroup->enableBarringRequestCompleted( -1, PSetCallBarringWrapper::BarringTypeAllBarrings, @@ -385,6 +379,9 @@ EXPECT(CpPhoneNotes::showGlobalNote).times(0); emit simulateCheckStateChange(Qt::Checked); + m_barringpluginGroup->completeBarringStateChangeRequestHandling( + KCurrentPassword, true); + m_barringpluginGroup->enableBarringRequestCompleted( 0, PSetCallBarringWrapper::BarringTypeAllBarrings, @@ -405,19 +402,21 @@ { // something very weird has happened and enable request completes for unknown // barring type. - HbDataFormModel *formModel = qobject_cast( - m_barringpluginGroup->model()); HbDataFormModelItem *item = m_barringpluginGroup->childAt(5); - QModelIndex modelIndex = formModel->indexFromItem(item); + QModelIndex modelIndex = m_dataFormModel->indexFromItem(item); - EXPECT(CpItemDataHelper::widgetFromModelIndex).with(modelIndex).returns(this); + EXPECT(CpItemDataHelper::widgetFromModelIndex) + .with(modelIndex).returns(this); EXPECT(CpPhoneNotes::showPasswordQueryDialog) .willOnce(invoke(setCurrentPasswordParams)); EXPECT(CpPhoneNotes::cancelNote); - EXPECT(CpPhoneNotes::showGlobalNote); + EXPECT(CpPhoneNotes::showNotificationDialog); // completion of unknown barring type should not lead to updating EXPECT(PSetCallBarringWrapper::barringStatus).times(0); emit simulateCheckStateChange(Qt::Checked); + m_barringpluginGroup->completeBarringStateChangeRequestHandling( + KCurrentPassword, true); + m_barringpluginGroup->enableBarringRequestCompleted( 0, PSetCallBarringWrapper::BarringTypeAllBarrings, @@ -444,6 +443,9 @@ EXPECT(CpPhoneNotes::showPasswordQueryDialog) .willOnce(invoke(setCurrentPasswordParams)); emit simulateCheckStateChange(Qt::Checked); + m_barringpluginGroup->completeBarringStateChangeRequestHandling( + KCurrentPassword, true); + EXPECT(PSetCallBarringWrapper::barringStatus).with( ServiceGroupVoice, PSetCallBarringWrapper::BarringTypeOutgoingInternational); EXPECT(PSetCallBarringWrapper::barringStatus).with( @@ -470,14 +472,12 @@ void UT_CpBarringPluginGroup::t_enableBOICRequestCompletedStatusUpdate() { QModelIndex modelIndex; - HbDataFormModel *formModel = qobject_cast( - m_barringpluginGroup->model()); int numOfChilds = m_barringpluginGroup->childCount(); for (int childIndex = 0; childIndex < numOfChilds - 1; childIndex++) { HbDataFormModelItem *item = m_barringpluginGroup->childAt(childIndex); item->setContentWidgetData("checkState", QVariant(Qt::Checked)); if (childIndex == 1) { - modelIndex = formModel->indexFromItem(item); + modelIndex = m_dataFormModel->indexFromItem(item); } } @@ -486,6 +486,9 @@ EXPECT(CpPhoneNotes::showPasswordQueryDialog) .willOnce(invoke(setCurrentPasswordParams)); emit simulateCheckStateChange(Qt::Checked); + m_barringpluginGroup->completeBarringStateChangeRequestHandling( + KCurrentPassword, true); + EXPECT(PSetCallBarringWrapper::barringStatus).with( ServiceGroupVoice, PSetCallBarringWrapper::BarringTypeAllOutgoing); @@ -513,14 +516,12 @@ void UT_CpBarringPluginGroup::t_enableBOICexHCRequestCompletedStatusUpdate() { QModelIndex modelIndex; - HbDataFormModel *formModel = qobject_cast( - m_barringpluginGroup->model()); int numOfChilds = m_barringpluginGroup->childCount(); for (int childIndex = 0; childIndex < numOfChilds - 1; childIndex++) { HbDataFormModelItem *item = m_barringpluginGroup->childAt(childIndex); item->setContentWidgetData("checkState", QVariant(Qt::Checked)); if (childIndex == 2) { - modelIndex = formModel->indexFromItem(item); + modelIndex = m_dataFormModel->indexFromItem(item); } } @@ -529,6 +530,9 @@ EXPECT(CpPhoneNotes::showPasswordQueryDialog) .willOnce(invoke(setCurrentPasswordParams)); emit simulateCheckStateChange(Qt::Checked); + m_barringpluginGroup->completeBarringStateChangeRequestHandling( + KCurrentPassword, true); + EXPECT(PSetCallBarringWrapper::barringStatus).with( ServiceGroupVoice, PSetCallBarringWrapper::BarringTypeAllOutgoing); @@ -562,14 +566,12 @@ void UT_CpBarringPluginGroup::t_enableBAICRequestCompletedStatusUpdate() { QModelIndex modelIndex; - HbDataFormModel *formModel = qobject_cast( - m_barringpluginGroup->model()); int numOfChilds = m_barringpluginGroup->childCount(); for (int childIndex = 0; childIndex < numOfChilds - 1; childIndex++) { HbDataFormModelItem *item = m_barringpluginGroup->childAt(childIndex); item->setContentWidgetData("checkState", QVariant(Qt::Checked)); if (childIndex == 3) { - modelIndex = formModel->indexFromItem(item); + modelIndex = m_dataFormModel->indexFromItem(item); } } @@ -578,6 +580,9 @@ EXPECT(CpPhoneNotes::showPasswordQueryDialog) .willOnce(invoke(setCurrentPasswordParams)); emit simulateCheckStateChange(Qt::Checked); + m_barringpluginGroup->completeBarringStateChangeRequestHandling( + KCurrentPassword, true); + EXPECT(PSetCallBarringWrapper::barringStatus).with( ServiceGroupVoice, PSetCallBarringWrapper::BarringTypeIncomingWhenRoaming); @@ -599,14 +604,12 @@ void UT_CpBarringPluginGroup::t_enableBICRoamRequestCompletedStatusUpdate() { QModelIndex modelIndex; - HbDataFormModel *formModel = qobject_cast( - m_barringpluginGroup->model()); int numOfChilds = m_barringpluginGroup->childCount(); for (int childIndex = 0; childIndex < numOfChilds - 1; childIndex++) { HbDataFormModelItem *item = m_barringpluginGroup->childAt(childIndex); item->setContentWidgetData("checkState", QVariant(Qt::Checked)); if (childIndex == 4) { - modelIndex = formModel->indexFromItem(item); + modelIndex = m_dataFormModel->indexFromItem(item); } } @@ -615,6 +618,9 @@ EXPECT(CpPhoneNotes::showPasswordQueryDialog) .willOnce(invoke(setCurrentPasswordParams)); emit simulateCheckStateChange(Qt::Checked); + m_barringpluginGroup->completeBarringStateChangeRequestHandling( + KCurrentPassword, true); + EXPECT(PSetCallBarringWrapper::barringStatus).with( ServiceGroupVoice, PSetCallBarringWrapper::BarringTypeAllIncoming); @@ -640,8 +646,10 @@ EXPECT(CpPhoneNotes::showPasswordQueryDialog) .willOnce(invoke(setCurrentPasswordParams)); EXPECT(CpPhoneNotes::cancelNote); - EXPECT(CpPhoneNotes::showGlobalNote); + EXPECT(CpPhoneNotes::showNotificationDialog); emit simulateCheckStateChange(Qt::Unchecked); + m_barringpluginGroup->completeBarringStateChangeRequestHandling( + KCurrentPassword, true); m_barringpluginGroup->disableBarringRequestCompleted( 0, @@ -663,6 +671,9 @@ EXPECT(CpPhoneNotes::showGlobalErrorNote); emit simulateCheckStateChange(Qt::Unchecked); + m_barringpluginGroup->completeBarringStateChangeRequestHandling( + KCurrentPassword, true); + m_barringpluginGroup->disableBarringRequestCompleted( -1, PSetCallBarringWrapper::BarringTypeAllBarrings, @@ -680,7 +691,7 @@ { // request completed with no error EXPECT(CpPhoneNotes::cancelNote); - EXPECT(CpPhoneNotes::showGlobalNote); + EXPECT(CpPhoneNotes::showNotificationDialog); m_barringpluginGroup->barringPasswordChangeRequestCompleted(0); @@ -710,7 +721,11 @@ PSetCallBarringWrapper::BarringTypeAllOutgoing, KCurrentPassword); EXPECT(CpPhoneNotes::showGlobalProgressNote); + HbDataFormModelItem *item = m_barringpluginGroup->childAt(0); + item->setContentWidgetData("checkState", QVariant(Qt::Checked)); emit simulateCheckStateChange(Qt::Checked); + m_barringpluginGroup->completeBarringStateChangeRequestHandling( + KCurrentPassword, true); QVERIFY(verify()); @@ -723,7 +738,11 @@ PSetCallBarringWrapper::BarringTypeAllOutgoing, KCurrentPassword); EXPECT(CpPhoneNotes::showGlobalProgressNote); + item = m_barringpluginGroup->childAt(0); + item->setContentWidgetData("checkState", QVariant(Qt::Unchecked)); emit simulateCheckStateChange(Qt::Unchecked); + m_barringpluginGroup->completeBarringStateChangeRequestHandling( + KCurrentPassword, true); QVERIFY(verify()); @@ -736,7 +755,11 @@ EXPECT(PSetCallBarringWrapper::disableBarring).times(0); EXPECT(CpPhoneNotes::showGlobalProgressNote).times(0); + item = m_barringpluginGroup->childAt(0); + item->setContentWidgetData("checkState", QVariant(Qt::Unchecked)); emit simulateCheckStateChange(Qt::Unchecked); + m_barringpluginGroup->completeBarringStateChangeRequestHandling( + "", false); QVERIFY(verify()); @@ -757,12 +780,13 @@ { connect( this, SIGNAL(simulateEditPasswordButtonClicked(bool)), - m_barringpluginGroup, SLOT(changeBarringPasswordRequested(bool))); + m_barringpluginGroup, SLOT(changeBarringPasswordRequested())); // cancel from current password query EXPECT(CpPhoneNotes::showPasswordQueryDialog) .willOnce(invoke(setPasswordParamsCancel)); emit simulateEditPasswordButtonClicked(false); + m_barringpluginGroup->changeBarringPasswordPhasesHandling("", false); QVERIFY(verify()); // cancel from new password query @@ -771,6 +795,10 @@ EXPECT(CpPhoneNotes::showPasswordQueryDialog) .willOnce(invoke(setPasswordParamsCancel)); emit simulateEditPasswordButtonClicked(false); + m_barringpluginGroup->changeBarringPasswordPhasesHandling( + KCurrentPassword, true); + m_barringpluginGroup->changeBarringPasswordPhasesHandling( + "", false); QVERIFY(verify()); // cancel from verify new password query @@ -781,6 +809,12 @@ EXPECT(CpPhoneNotes::showPasswordQueryDialog) .willOnce(invoke(setPasswordParamsCancel)); emit simulateEditPasswordButtonClicked(false); + m_barringpluginGroup->changeBarringPasswordPhasesHandling( + KCurrentPassword, true); + m_barringpluginGroup->changeBarringPasswordPhasesHandling( + KNewAndVerifiedPassword, true); + m_barringpluginGroup->changeBarringPasswordPhasesHandling( + "", false); QVERIFY(verify()); // all data successfully queried @@ -793,6 +827,12 @@ EXPECT(PSetCallBarringWrapper::changeBarringPassword) .with(KCurrentPassword, KNewAndVerifiedPassword, KNewAndVerifiedPassword); emit simulateEditPasswordButtonClicked(false); + m_barringpluginGroup->changeBarringPasswordPhasesHandling( + KCurrentPassword, true); + m_barringpluginGroup->changeBarringPasswordPhasesHandling( + KNewAndVerifiedPassword, true); + m_barringpluginGroup->changeBarringPasswordPhasesHandling( + KNewAndVerifiedPassword, true); QVERIFY(verify()); } diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/bwins/cptelephonyutilsu.def --- a/phonesettings/cpphonesettingsplugins/bwins/cptelephonyutilsu.def Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,80 +0,0 @@ -EXPORTS - ?metaObject@CpPhoneNotes@@UBEPBUQMetaObject@@XZ @ 1 NONAME ; struct QMetaObject const * CpPhoneNotes::metaObject(void) const - ?basicServiceGroupName@CpPhoneNotes@@ABE?AVQString@@W4BasicServiceGroups@CpTelephonyUtils@@@Z @ 2 NONAME ; class QString CpPhoneNotes::basicServiceGroupName(enum CpTelephonyUtils::BasicServiceGroups) const - ?activeNoteAboutToClose@CpPhoneNotes@@AAEXXZ @ 3 NONAME ; void CpPhoneNotes::activeNoteAboutToClose(void) - ?handleProgressNoteCanceled@CpPhoneNotes@@AAEXXZ @ 4 NONAME ; void CpPhoneNotes::handleProgressNoteCanceled(void) - ??_ECpPhoneNotes@@UAE@I@Z @ 5 NONAME ; CpPhoneNotes::~CpPhoneNotes(unsigned int) - ?showGlobalErrorNote@CpPhoneNotes@@QAEXAAHH@Z @ 6 NONAME ; void CpPhoneNotes::showGlobalErrorNote(int &, int) - ?qt_metacast@CpSettingsWrapper@@UAEPAXPBD@Z @ 7 NONAME ; void * CpSettingsWrapper::qt_metacast(char const *) - ?getStaticMetaObject@Tools@@SAABUQMetaObject@@XZ @ 8 NONAME ; struct QMetaObject const & Tools::getStaticMetaObject(void) - ??1CpSettingsWrapper@@UAE@XZ @ 9 NONAME ; CpSettingsWrapper::~CpSettingsWrapper(void) - ?qt_metacast@CpPhoneNotes@@UAEPAXPBD@Z @ 10 NONAME ; void * CpPhoneNotes::qt_metacast(char const *) - ?passwordTextChanged@CpPhoneNotes@@AAEXXZ @ 11 NONAME ; void CpPhoneNotes::passwordTextChanged(void) - ?tr@CpPhoneNotes@@SA?AVQString@@PBD0H@Z @ 12 NONAME ; class QString CpPhoneNotes::tr(char const *, char const *, int) - ?instance@CpPhoneNotes@@SAPAV1@XZ @ 13 NONAME ; class CpPhoneNotes * CpPhoneNotes::instance(void) - ?tr@CpSettingsWrapper@@SA?AVQString@@PBD0H@Z @ 14 NONAME ; class QString CpSettingsWrapper::tr(char const *, char const *, int) - ??1CpPhoneNotes@@EAE@XZ @ 15 NONAME ; CpPhoneNotes::~CpPhoneNotes(void) - ?formatPhoneNumber@CpPhoneNotes@@ABE?AVQString@@V2@@Z @ 16 NONAME ; class QString CpPhoneNotes::formatPhoneNumber(class QString) const - ?showGlobalNote@CpPhoneNotes@@QAEXAAHABVQString@@W4MessageBoxType@HbMessageBox@@@Z @ 17 NONAME ; void CpPhoneNotes::showGlobalNote(int &, class QString const &, enum HbMessageBox::MessageBoxType) - ?metaObject@Tools@@UBEPBUQMetaObject@@XZ @ 18 NONAME ; struct QMetaObject const * Tools::metaObject(void) const - ?readSoftRejectText@CpSettingsWrapper@@QAEXAAVQString@@AA_N@Z @ 19 NONAME ; void CpSettingsWrapper::readSoftRejectText(class QString &, bool &) - ?getStaticMetaObject@CpSettingsWrapper@@SAABUQMetaObject@@XZ @ 20 NONAME ; struct QMetaObject const & CpSettingsWrapper::getStaticMetaObject(void) - ?finishedPasswordQueryDialog@CpPhoneNotes@@QAEXPAVHbAction@@@Z @ 21 NONAME ; void CpPhoneNotes::finishedPasswordQueryDialog(class HbAction *) - ?metaObject@CpSettingsWrapper@@UBEPBUQMetaObject@@XZ @ 22 NONAME ; struct QMetaObject const * CpSettingsWrapper::metaObject(void) const - ?videoSupported@Tools@@SA_NXZ @ 23 NONAME ; bool Tools::videoSupported(void) - ?showCallDuration@CpSettingsWrapper@@QAE_NXZ @ 24 NONAME ; bool CpSettingsWrapper::showCallDuration(void) - ?isPhoneOffline@CpSettingsWrapper@@QBE_NXZ @ 25 NONAME ; bool CpSettingsWrapper::isPhoneOffline(void) const - ?errorCodeTextMapping@Tools@@SA_NHAAVQString@@@Z @ 26 NONAME ; bool Tools::errorCodeTextMapping(int, class QString &) - ?trUtf8@CpPhoneNotes@@SA?AVQString@@PBD0H@Z @ 27 NONAME ; class QString CpPhoneNotes::trUtf8(char const *, char const *, int) - ?readCenrepString@CpSettingsWrapper@@ABE?AVQString@@JK@Z @ 28 NONAME ; class QString CpSettingsWrapper::readCenrepString(long, unsigned long) const - ?writeSoftRejectText@CpSettingsWrapper@@QAEHABVQString@@_N@Z @ 29 NONAME ; int CpSettingsWrapper::writeSoftRejectText(class QString const &, bool) - ?showBasicServiceList@CpPhoneNotes@@QAEXABVQString@@ABV?$QList@E@@@Z @ 30 NONAME ; void CpPhoneNotes::showBasicServiceList(class QString const &, class QList const &) - ?setShowCallDuration@CpSettingsWrapper@@QAEH_N@Z @ 31 NONAME ; int CpSettingsWrapper::setShowCallDuration(bool) - ?qt_metacall@CpPhoneNotes@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 32 NONAME ; int CpPhoneNotes::qt_metacall(enum QMetaObject::Call, int, void * *) - ?qt_metacall@Tools@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 33 NONAME ; int Tools::qt_metacall(enum QMetaObject::Call, int, void * *) - ?trUtf8@CpSettingsWrapper@@SA?AVQString@@PBD0@Z @ 34 NONAME ; class QString CpSettingsWrapper::trUtf8(char const *, char const *) - ?tr@CpPhoneNotes@@SA?AVQString@@PBD0@Z @ 35 NONAME ; class QString CpPhoneNotes::tr(char const *, char const *) - ??_ECpSettingsWrapper@@UAE@I@Z @ 36 NONAME ; CpSettingsWrapper::~CpSettingsWrapper(unsigned int) - ?getStaticMetaObject@CpPhoneNotes@@SAABUQMetaObject@@XZ @ 37 NONAME ; struct QMetaObject const & CpPhoneNotes::getStaticMetaObject(void) - ?progressNoteCanceled@CpPhoneNotes@@IAEXXZ @ 38 NONAME ; void CpPhoneNotes::progressNoteCanceled(void) - ?trUtf8@CpSettingsWrapper@@SA?AVQString@@PBD0H@Z @ 39 NONAME ; class QString CpSettingsWrapper::trUtf8(char const *, char const *, int) - ?staticMetaObject@CpPhoneNotes@@2UQMetaObject@@B @ 40 NONAME ; struct QMetaObject const CpPhoneNotes::staticMetaObject - ??0CpPhoneNotes@@AAE@XZ @ 41 NONAME ; CpPhoneNotes::CpPhoneNotes(void) - ?tr@Tools@@SA?AVQString@@PBD0@Z @ 42 NONAME ; class QString Tools::tr(char const *, char const *) - ?showGlobalProgressNote@CpPhoneNotes@@QAEXAAHABVQString@@@Z @ 43 NONAME ; void CpPhoneNotes::showGlobalProgressNote(int &, class QString const &) - ?voipSupported@Tools@@SA_NXZ @ 44 NONAME ; bool Tools::voipSupported(void) - ?qt_metacast@Tools@@UAEPAXPBD@Z @ 45 NONAME ; void * Tools::qt_metacast(char const *) - ?trUtf8@CpPhoneNotes@@SA?AVQString@@PBD0@Z @ 46 NONAME ; class QString CpPhoneNotes::trUtf8(char const *, char const *) - ?readCenrepValue@CpSettingsWrapper@@ABE?AVQVariant@@JK@Z @ 47 NONAME ; class QVariant CpSettingsWrapper::readCenrepValue(long, unsigned long) const - ?trUtf8@Tools@@SA?AVQString@@PBD0H@Z @ 48 NONAME ; class QString Tools::trUtf8(char const *, char const *, int) - ?tr@Tools@@SA?AVQString@@PBD0H@Z @ 49 NONAME ; class QString Tools::tr(char const *, char const *, int) - ?qt_metacall@CpSettingsWrapper@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 50 NONAME ; int CpSettingsWrapper::qt_metacall(enum QMetaObject::Call, int, void * *) - ?noteShowing@CpPhoneNotes@@QAE_NXZ @ 51 NONAME ; bool CpPhoneNotes::noteShowing(void) - ?showCallDivertDetails@CpPhoneNotes@@QAEXABVPSCallDivertingStatus@@@Z @ 52 NONAME ; void CpPhoneNotes::showCallDivertDetails(class PSCallDivertingStatus const &) - ?passwordQueryCompleted@CpPhoneNotes@@IAEXVQString@@_N@Z @ 53 NONAME ; void CpPhoneNotes::passwordQueryCompleted(class QString, bool) - ?numberGroupingSupported@CpSettingsWrapper@@QBE_NXZ @ 54 NONAME ; bool CpSettingsWrapper::numberGroupingSupported(void) const - ?launchNextNoteIfReady@CpPhoneNotes@@AAEXXZ @ 55 NONAME ; void CpPhoneNotes::launchNextNoteIfReady(void) - ?tr@CpSettingsWrapper@@SA?AVQString@@PBD0@Z @ 56 NONAME ; class QString CpSettingsWrapper::tr(char const *, char const *) - ?cancelNote@CpPhoneNotes@@QAEXH@Z @ 57 NONAME ; void CpPhoneNotes::cancelNote(int) - ?isFeatureCallWaitingDistiquishNotProvisionedEnabled@CpSettingsWrapper@@QAE_NXZ @ 58 NONAME ; bool CpSettingsWrapper::isFeatureCallWaitingDistiquishNotProvisionedEnabled(void) - ?showPasswordQueryDialog@CpPhoneNotes@@QAEXABVQString@@ABVQValidator@@H@Z @ 59 NONAME ; void CpPhoneNotes::showPasswordQueryDialog(class QString const &, class QValidator const &, int) - ?writeCenrepValue@CpSettingsWrapper@@ABEHJKABVQVariant@@@Z @ 60 NONAME ; int CpSettingsWrapper::writeCenrepValue(long, unsigned long, class QVariant const &) const - ?staticMetaObject@Tools@@2UQMetaObject@@B @ 61 NONAME ; struct QMetaObject const Tools::staticMetaObject - ?trUtf8@Tools@@SA?AVQString@@PBD0@Z @ 62 NONAME ; class QString Tools::trUtf8(char const *, char const *) - ?staticMetaObject@CpSettingsWrapper@@2UQMetaObject@@B @ 63 NONAME ; struct QMetaObject const CpSettingsWrapper::staticMetaObject - ??0CpSettingsWrapper@@QAE@PAVQObject@@@Z @ 64 NONAME ; CpSettingsWrapper::CpSettingsWrapper(class QObject *) - ?qt_metacast@CpPhoneLocalisation@@UAEPAXPBD@Z @ 65 NONAME ; void * CpPhoneLocalisation::qt_metacast(char const *) - ?installTranslator@CpPhoneLocalisation@@QAE_NW4TranslationFileId@1@@Z @ 66 NONAME ; bool CpPhoneLocalisation::installTranslator(enum CpPhoneLocalisation::TranslationFileId) - ?trUtf8@CpPhoneLocalisation@@SA?AVQString@@PBD0H@Z @ 67 NONAME ; class QString CpPhoneLocalisation::trUtf8(char const *, char const *, int) - ?tr@CpPhoneLocalisation@@SA?AVQString@@PBD0H@Z @ 68 NONAME ; class QString CpPhoneLocalisation::tr(char const *, char const *, int) - ?qt_metacall@CpPhoneLocalisation@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 69 NONAME ; int CpPhoneLocalisation::qt_metacall(enum QMetaObject::Call, int, void * *) - ?trUtf8@CpPhoneLocalisation@@SA?AVQString@@PBD0@Z @ 70 NONAME ; class QString CpPhoneLocalisation::trUtf8(char const *, char const *) - ?staticMetaObject@CpPhoneLocalisation@@2UQMetaObject@@B @ 71 NONAME ; struct QMetaObject const CpPhoneLocalisation::staticMetaObject - ??0CpPhoneLocalisation@@QAE@PAVQObject@@@Z @ 72 NONAME ; CpPhoneLocalisation::CpPhoneLocalisation(class QObject *) - ??_ECpPhoneLocalisation@@UAE@I@Z @ 73 NONAME ; CpPhoneLocalisation::~CpPhoneLocalisation(unsigned int) - ?metaObject@CpPhoneLocalisation@@UBEPBUQMetaObject@@XZ @ 74 NONAME ; struct QMetaObject const * CpPhoneLocalisation::metaObject(void) const - ?tr@CpPhoneLocalisation@@SA?AVQString@@PBD0@Z @ 75 NONAME ; class QString CpPhoneLocalisation::tr(char const *, char const *) - ??1CpPhoneLocalisation@@UAE@XZ @ 76 NONAME ; CpPhoneLocalisation::~CpPhoneLocalisation(void) - ?getStaticMetaObject@CpPhoneLocalisation@@SAABUQMetaObject@@XZ @ 77 NONAME ; struct QMetaObject const & CpPhoneLocalisation::getStaticMetaObject(void) - ?removeTranslators@CpPhoneLocalisation@@QAEXXZ @ 78 NONAME ; void CpPhoneLocalisation::removeTranslators(void) - diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/callsplugin/src/cpcallsplugingroup.cpp --- a/phonesettings/cpphonesettingsplugins/callsplugin/src/cpcallsplugingroup.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/callsplugin/src/cpcallsplugingroup.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -96,6 +96,11 @@ SIGNAL(cancelNote(int)), phoneNotes, SLOT(cancelNote(int))); + QObject::connect( + this, + SIGNAL(showNotificationDialog(const QString&)), + phoneNotes, + SLOT(showNotificationDialog(const QString&))); // Create combobox string <-> setting mappings insertMappedListItems(); @@ -105,12 +110,14 @@ createCallWaitingtem(); createSoftRejectItem(); createShowCallDurationItem(); + createOwnVideoInReceivedCall(); // Connect setting item signals connectCLIItem(); connectCallWaitingItem(); connectSoftRejectItem(); connectShowCallDurationItem(); + connectOwnVideoInReceivedCall(); m_callWaitingDistinguishEnabled = m_cpSettingsWrapper->isFeatureCallWaitingDistiquishNotProvisionedEnabled(); @@ -224,6 +231,41 @@ } /*! + CpCallsPluginGroup::createOwnVideoInReceivedCall. + */ +void CpCallsPluginGroup::createOwnVideoInReceivedCall() +{ + DPRINT << ": IN"; + + // Read Own video in received call value from Cenrep + int ownVideoInReceivedCallStatus = + m_cpSettingsWrapper->readVtVideoSending(); + DPRINT << "ownVideoInReceivedCallStatus:" << ownVideoInReceivedCallStatus; + + m_OwnVideoInReceivedCall = + new CpSettingFormItemData( + HbDataFormModelItem::ComboBoxItem, + hbTrId("txt_phone_setlabel_own_video_in_received_call"), + this); + + QStringList ownVideoSelections; + ownVideoSelections + <setContentWidgetData( + "items", QVariant(ownVideoSelections)); + + QVariant indexValue(ownVideoInReceivedCallStatus); + m_OwnVideoInReceivedCall->setContentWidgetData( + QString("currentIndex"), indexValue); + + appendChild( m_OwnVideoInReceivedCall ); + DPRINT << ": OUT"; +} + +/*! CpCallsPluginGroup::createCallWaitingtem. */ void CpCallsPluginGroup::createCallWaitingtem() @@ -253,7 +295,7 @@ DPRINT << ": IN"; m_helper.addConnection( - m_DataItemShowCallDuration, SIGNAL(clicked()), + m_DataItemShowCallDuration, SIGNAL(valueChanged(QPersistentModelIndex, QVariant)), this, SLOT(showCallDurationStateChanged())); DPRINT << ": OUT"; @@ -298,6 +340,19 @@ } /*! + CpCallsPluginGroup::connectOwnVideoInReceivedCall. + */ +void CpCallsPluginGroup::connectOwnVideoInReceivedCall() +{ + DPRINT << ": IN"; + + m_helper.addConnection( + m_OwnVideoInReceivedCall, SIGNAL(currentIndexChanged(int)), + this, SLOT(ownVideoInReceivedCallStateChanged(int))); + + DPRINT << ": OUT"; +} +/*! CpCallsPluginGroup::connectCallWaitingItem. */ void CpCallsPluginGroup::connectCallWaitingItem() @@ -305,7 +360,7 @@ DPRINT << ": IN"; m_helper.addConnection( - m_DataItemCallWaiting, SIGNAL(clicked()), + m_DataItemCallWaiting, SIGNAL(valueChanged(QPersistentModelIndex, QVariant)), this, SLOT(callWaitingCurrentIndexChanged())); DPRINT << ": OUT"; @@ -321,12 +376,34 @@ QVariant text = m_DataItemShowCallDuration->contentWidgetData("text"); QString showCallDurationText = text.toString(); - if (showCallDurationText == hbTrId("txt_phone_setlabel_val_yes")) { - m_cpSettingsWrapper->setShowCallDuration(true); - } else if (showCallDurationText == hbTrId("txt_phone_setlabel_val_no")){ - m_cpSettingsWrapper->setShowCallDuration(false); + if(m_cpSettingsWrapper->isOngoingCall()) { + // ongoing call, operation not allowed, refresh ui. + bool showCallDurationStatus = m_cpSettingsWrapper->showCallDuration(); + DPRINT << ": ongoing call case, status: " << showCallDurationStatus; + + if (showCallDurationStatus) { + m_DataItemShowCallDuration->setContentWidgetData( + "text", QVariant(hbTrId("txt_phone_setlabel_val_yes"))); + m_DataItemShowCallDuration->setContentWidgetData( + "additionalText", QVariant(hbTrId("txt_phone_setlabel_val_no"))); + } else { + m_DataItemShowCallDuration->setContentWidgetData( + "text", QVariant(hbTrId("txt_phone_setlabel_val_no"))); + m_DataItemShowCallDuration->setContentWidgetData( + "additionalText", QVariant(hbTrId("txt_phone_setlabel_val_yes"))); + } + emit showGlobalNote( + m_activeNoteId, + emit hbTrId("txt_phone_info_not_allowed"), + HbMessageBox::MessageTypeInformation); } else { - DPRINT << "nothing done"; + if (showCallDurationText == hbTrId("txt_phone_setlabel_val_yes")) { + m_cpSettingsWrapper->setShowCallDuration(true); + } else if (showCallDurationText == hbTrId("txt_phone_setlabel_val_no")){ + m_cpSettingsWrapper->setShowCallDuration(false); + } else { + DPRINT << "nothing done"; + } } DPRINT << ": OUT"; @@ -341,7 +418,7 @@ QVariant text = m_DataItemSoftRejectTextEditor->contentWidgetData("text"); QString softRejectText = text.toString(); - if (!softRejectText.isEmpty()) { + if (!softRejectText.isNull()) { DPRINT << "softRejectText:" << softRejectText; m_cpSettingsWrapper->writeSoftRejectText(softRejectText, true); } @@ -404,7 +481,26 @@ DPRINT << ": OUT"; } + +/*! + CpCallsPluginGroup::ownVideoInReceivedCallStateChanged. + */ +void CpCallsPluginGroup::ownVideoInReceivedCallStateChanged(int index) +{ + DPRINT << ": IN : index: " << index; + if (index >= 0) { + //store to Cenrep + int ret = m_cpSettingsWrapper->writeVtVideoSending(index); + DPRINT << + "m_cpSettingsWrapper->writeVtVideoSending(index) ret: " << ret; + }else{ + DPRINT << "Error: negative index!"; + } + + DPRINT << ": OUT"; +} + /*! CpCallsPluginGroup::insertMappedListItems. */ @@ -441,9 +537,7 @@ if (m_callWaitingDistinguishEnabled && PSetCallWaitingWrapper::StatusNotProvisioned == status) { DPRINT << ": not provisioned"; - emit showGlobalNote(m_activeNoteId, - hbTrId("txt_phone_info_request_not_completed"), - HbMessageBox::MessageTypeInformation); + emit showNotificationDialog(hbTrId("txt_phone_info_request_not_completed")); } else if (PSetCallWaitingWrapper::StatusActive == status && !alsCaseOnly) { DPRINT << ": status active"; m_DataItemCallWaiting->setContentWidgetData( @@ -472,25 +566,17 @@ DPRINT << ": IN"; emit cancelNote(m_activeNoteId); if (result) { - emit showGlobalNote(m_activeNoteId, - hbTrId("txt_phone_info_request_not_confirmed"), - HbMessageBox::MessageTypeWarning); + emit showNotificationDialog(hbTrId("txt_phone_info_request_not_confirmed")); } else { switch (command){ case PSetCallWaitingWrapper::ActivateCallWaiting: - emit showGlobalNote(m_activeNoteId, - hbTrId("txt_phone_info_call_waiting_activated"), - HbMessageBox::MessageTypeInformation); + emit showNotificationDialog(hbTrId("txt_phone_info_call_waiting_activated")); break; case PSetCallWaitingWrapper::DeactivateCallWaiting: - emit showGlobalNote(m_activeNoteId, - hbTrId("txt_phone_info_call_waiting_deactivated"), - HbMessageBox::MessageTypeInformation); + emit showNotificationDialog(hbTrId("txt_phone_info_call_waiting_deactivated")); break; default: - emit showGlobalNote(m_activeNoteId, - hbTrId("txt_phone_info_result_unknown"), - HbMessageBox::MessageTypeInformation); + emit showNotificationDialog(hbTrId("txt_phone_info_result_unknown")); break; } } @@ -507,7 +593,7 @@ Q_ASSERT(!(ongoing && interrupted)); if (ongoing) { - emit showGlobalProgressNote(m_activeNoteId, hbTrId("txt_phone_info_requesting")); + emit showGlobalProgressNote(m_activeNoteId, hbTrId("txt_common_info_requesting")); } if (interrupted) { diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/callsplugin/src/cpcallsplugingroup.h --- a/phonesettings/cpphonesettingsplugins/callsplugin/src/cpcallsplugingroup.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/callsplugin/src/cpcallsplugingroup.h Wed Jun 23 18:12:20 2010 +0300 @@ -46,11 +46,13 @@ private: void createShowCallDurationItem(); + void createOwnVideoInReceivedCall(); void createSoftRejectItem(); void createCLIItem(); void createCallWaitingtem(); void connectShowCallDurationItem(); + void connectOwnVideoInReceivedCall(); void connectSoftRejectItem(); void connectCLIItem(); void connectCallWaitingItem(); @@ -60,6 +62,7 @@ public slots: void showCallDurationStateChanged(); + void ownVideoInReceivedCallStateChanged(int index); void softRejectTextChanged(); void callWaitingCurrentIndexChanged(); void cliCurrentIndexChanged(int index); @@ -81,6 +84,7 @@ int ¬eId, const QString& text, HbMessageBox::MessageBoxType); void showGlobalErrorNote(int ¬eId, int errorCode); void cancelNote(int noteId); + void showNotificationDialog(const QString& text); private: @@ -94,7 +98,8 @@ PSetCallWaitingWrapper* m_callWaitingWrapper; // Not owned objects - CpSettingFormItemData *m_DataItemShowCallDuration; + CpSettingFormItemData *m_DataItemShowCallDuration; + CpSettingFormItemData *m_OwnVideoInReceivedCall; CpSettingFormItemData *m_DataItemSoftRejectTextEditor; CpSettingFormItemData *m_DataItemCLI; CpSettingFormItemData *m_DataItemCallWaiting; diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/callsplugin/tsrc/run_auto_tests_qt.bat --- a/phonesettings/cpphonesettingsplugins/callsplugin/tsrc/run_auto_tests_qt.bat Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/callsplugin/tsrc/run_auto_tests_qt.bat Wed Jun 23 18:12:20 2010 +0300 @@ -169,7 +169,7 @@ :::::::::::::::::::::::::::::::::::::::::::::::::::::: :CALCULATECOVERAGE echo Calculating coverage -ctcpost %PATH_TO_COVERAGE_DATA%\*.sym | ctcmerge -i - -o profile.txt +ctcpost %PATH_TO_COVERAGE_DATA%\*.sym -p - | ctcmerge -i - -o profile.txt call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb goto end diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/callsplugin/tsrc/ut_callsplugingroup/ut_callsplugingroup.cpp --- a/phonesettings/cpphonesettingsplugins/callsplugin/tsrc/ut_callsplugingroup/ut_callsplugingroup.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/callsplugin/tsrc/ut_callsplugingroup/ut_callsplugingroup.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -99,12 +99,21 @@ */ void UT_CpCallsPluginGroup::t_showCallDurationStateChanged() { - int iRet=0; + bool bOngoing=true; + bool bDuration=true; - EXPECT(CpSettingsWrapper::setShowCallDuration).returns(iRet); + EXPECT(CpSettingsWrapper::isOngoingCall).returns(bOngoing); + EXPECT(CpSettingsWrapper::showCallDuration).returns(bDuration); + EXPECT(CpPhoneNotes::showGlobalNote); m_callspluginGroup->showCallDurationStateChanged(); - EXPECT(CpSettingsWrapper::setShowCallDuration).returns(iRet); + bDuration = false; + EXPECT(CpSettingsWrapper::isOngoingCall).returns(bOngoing); + EXPECT(CpSettingsWrapper::showCallDuration).returns(bDuration); + m_callspluginGroup->showCallDurationStateChanged(); + + bOngoing = false; + EXPECT(CpSettingsWrapper::isOngoingCall).returns(bOngoing); m_callspluginGroup->showCallDurationStateChanged(); QVERIFY(verify()); @@ -160,22 +169,22 @@ void UT_CpCallsPluginGroup::t_handleCallWaitingChanged() { EXPECT(CpPhoneNotes::cancelNote); - EXPECT(CpPhoneNotes::showGlobalNote); + EXPECT(CpPhoneNotes::showNotificationDialog); m_callspluginGroup->handleCallWaitingChanged( PSetCallWaitingWrapper::ActivateCallWaiting , 0); EXPECT(CpPhoneNotes::cancelNote); - EXPECT(CpPhoneNotes::showGlobalNote); + EXPECT(CpPhoneNotes::showNotificationDialog); m_callspluginGroup->handleCallWaitingChanged( PSetCallWaitingWrapper::DeactivateCallWaiting, 0); EXPECT(CpPhoneNotes::cancelNote); - EXPECT(CpPhoneNotes::showGlobalNote); + EXPECT(CpPhoneNotes::showNotificationDialog); m_callspluginGroup->handleCallWaitingChanged( PSetCallWaitingWrapper::CheckCallWaitingStatus, 0); EXPECT(CpPhoneNotes::cancelNote); - EXPECT(CpPhoneNotes::showGlobalNote); + EXPECT(CpPhoneNotes::showNotificationDialog); m_callspluginGroup->handleCallWaitingChanged( PSetCallWaitingWrapper::DeactivateCallWaiting , -1); @@ -256,7 +265,7 @@ QList basicServiceGroupIds; EXPECT(CpPhoneNotes::cancelNote); - EXPECT(CpPhoneNotes::showGlobalNote); + EXPECT(CpPhoneNotes::showNotificationDialog); m_callspluginGroup->handleCallWaitingGetStatus( PSetCallWaitingWrapper::StatusNotProvisioned, basicServiceGroupIds); @@ -264,6 +273,20 @@ } /*! + UT_CpCallsPluginGroup::t_ownVideoInReceivedCallStateChanged + */ +void UT_CpCallsPluginGroup::t_ownVideoInReceivedCallStateChanged() +{ + EXPECT(CpSettingsWrapper::writeVtVideoSending).times(3); + m_callspluginGroup->ownVideoInReceivedCallStateChanged(0); + m_callspluginGroup->ownVideoInReceivedCallStateChanged(1); + m_callspluginGroup->ownVideoInReceivedCallStateChanged(2); + m_callspluginGroup->ownVideoInReceivedCallStateChanged(-1); + + QVERIFY(verify()); +} + +/*! UT_CpCallsPluginGroup::cleanup */ void UT_CpCallsPluginGroup::cleanup() diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/callsplugin/tsrc/ut_callsplugingroup/ut_callsplugingroup.h --- a/phonesettings/cpphonesettingsplugins/callsplugin/tsrc/ut_callsplugingroup/ut_callsplugingroup.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/callsplugin/tsrc/ut_callsplugingroup/ut_callsplugingroup.h Wed Jun 23 18:12:20 2010 +0300 @@ -54,6 +54,8 @@ void t_handleCallWaitingGetStatusDistinguishEnabled(); + void t_ownVideoInReceivedCallStateChanged(); + void cleanup(); void t_memleak(); diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cpnetworkplugin/cpnetworkplugin.pri --- a/phonesettings/cpphonesettingsplugins/cpnetworkplugin/cpnetworkplugin.pri Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/cpnetworkplugin/cpnetworkplugin.pri Wed Jun 23 18:12:20 2010 +0300 @@ -19,10 +19,12 @@ src/cellulardatasettings_s60_p.h \ src/cpnetworkplugin.h \ src/cpnetworkpluginview.h \ - src/cpnetworkpluginform.h + src/cpnetworkpluginform.h \ + src/cpnetworkstatus.h SOURCES += src/cellulardatasettings.cpp \ src/cellulardatasettings_s60.cpp \ src/cpnetworkplugin.cpp \ src/cpnetworkpluginview.cpp \ - src/cpnetworkpluginform.cpp + src/cpnetworkpluginform.cpp \ + src/cpnetworkstatus.cpp diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cpnetworkplugin/cpnetworkplugin.pro --- a/phonesettings/cpphonesettingsplugins/cpnetworkplugin/cpnetworkplugin.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/cpnetworkplugin/cpnetworkplugin.pro Wed Jun 23 18:12:20 2010 +0300 @@ -16,7 +16,9 @@ TEMPLATE = lib TARGET = cpnetworkplugin -CONFIG += hb plugin +CONFIG += hb plugin mobility +MOBILITY += systeminfo + INCLUDEPATH += ../cptelephonyutils/inc MOC_DIR = moc diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cpnetworkplugin/src/cpnetworkplugin.cpp --- a/phonesettings/cpphonesettingsplugins/cpnetworkplugin/src/cpnetworkplugin.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/cpnetworkplugin/src/cpnetworkplugin.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -33,6 +33,8 @@ // Set scoped pointer m_localisation.reset(new CpPhoneLocalisation); + m_networkStatus.reset(new CpNetworkStatus); + // Install required translations m_localisation->installTranslator( CpPhoneLocalisation:: @@ -57,16 +59,42 @@ */ QList CpNetworkPlugin::createSettingFormItemData( CpItemDataHelper &itemDataHelper) const -{ - DPRINT; - +{ + DPRINT << ": IN"; + QList ret; + ret.append(new CpSettingFormEntryItemDataImpl( itemDataHelper, hbTrId("txt_cp_dblist_mobile_network"), - hbTrId(""))); + m_networkStatus->statusText(), + m_networkStatus->statusIcon())); + + m_networkStatus->setSettingFormItemData(ret.first()); + + DPRINT << ": OUT"; return ret; } +/*! + CpNetworkPlugin::createSettingView + */ +CpBaseSettingView *CpNetworkPlugin::createSettingView(const QVariant &hint) const + { + Q_UNUSED(hint) + DPRINT << ": IN"; + + CpItemDataHelper *itemDataHelper(NULL); + QScopedPointer > + data( new CpSettingFormEntryItemDataImpl( + *itemDataHelper, + hbTrId("txt_cp_dblist_mobile_network"), + m_networkStatus->statusText())); + CpBaseSettingView *view = data->createSettingView(); + + DPRINT << ": OUT"; + return view; + } + +Q_EXPORT_PLUGIN2(CpNetworkPlugin, CpNetworkPlugin); -Q_EXPORT_PLUGIN2(CpNetworkPlugin, CpNetworkPlugin); diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cpnetworkplugin/src/cpnetworkplugin.h --- a/phonesettings/cpphonesettingsplugins/cpnetworkplugin/src/cpnetworkplugin.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/cpnetworkplugin/src/cpnetworkplugin.h Wed Jun 23 18:12:20 2010 +0300 @@ -20,14 +20,21 @@ #include #include +#include +#include "cpnetworkstatus.h" #include "cpphonelocalisation.h" -class CpNetworkPlugin : public QObject, public CpPluginInterface +class CpNetworkPlugin + : public QObject, + public CpPluginInterface, + public CpLauncherInterface + { Q_OBJECT Q_INTERFACES(CpPluginInterface) - + Q_INTERFACES(CpLauncherInterface) + public: CpNetworkPlugin(); @@ -40,10 +47,18 @@ */ QList createSettingFormItemData( CpItemDataHelper &itemDataHelper) const; + + /** + * From CpLauncherInterface + * @see CpLauncherInterface. + */ + CpBaseSettingView *createSettingView(const QVariant &hint) const; private: - QScopedPointer m_localisation; + QScopedPointer m_localisation; + + QScopedPointer m_networkStatus; }; #endif // CPNETWORKPLUGIN_H diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cpnetworkplugin/src/cpnetworkpluginform.cpp --- a/phonesettings/cpphonesettingsplugins/cpnetworkplugin/src/cpnetworkpluginform.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/cpnetworkplugin/src/cpnetworkpluginform.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -69,11 +69,6 @@ m_pSetWrapper = pSetWrapperGuard.take(); m_cpSettingsWrapper = cpSettingsWrapperGuard.take(); - if(!isPhoneOnLine()) { - DPRINT << "offline, set dimmed"; - m_NetworkOperatorSelectionItemData->setEnabled(false); - } - DPRINT << ": OUT"; } @@ -170,10 +165,10 @@ break; } } - - addConnection( - m_NetworkOperatorSelectionItemData, SIGNAL(clicked(bool) ), - this, SLOT(operatorSelectionStateChanged(bool))); + + addConnection( + m_NetworkOperatorSelectionItemData, SIGNAL(valueChanged(QPersistentModelIndex, QVariant)), + this, SLOT(operatorSelectionStateChanged())); settingFormItemGuard.take(); DPRINT << ": OUT"; @@ -290,7 +285,22 @@ // #1C network mode changed DPRINT << ": IN : index: " << index; - if(isPhoneOnLine()) { + if(m_cpSettingsWrapper->isPhoneOffline()) { + // offline mode. + m_psetNetworkWrapper->getNetworkAccessMode(); + emit showGlobalNote( + m_activeNoteId, + emit hbTrId("Off-line, not allowed"), + HbMessageBox::MessageTypeInformation); + } else if(m_cpSettingsWrapper->isOngoingCall()) { + // ongoing call. + m_psetNetworkWrapper->getNetworkAccessMode(); + emit showGlobalNote( + m_activeNoteId, + emit hbTrId("txt_cp_info_active_calls_must_be_disconnected_befo"), + HbMessageBox::MessageTypeInformation); + } else { + // ok case if(index == 0) { dualModeSelection(); } else if(index == 1) { @@ -298,12 +308,6 @@ } else if(index == 2) { gsmSelection(); } - } else { - // offline mode. - emit showGlobalNote( - m_activeNoteId, - emit hbTrId("Operation not possible in Off-line mode"), - HbMessageBox::MessageTypeInformation); } DPRINT << ": OUT"; @@ -313,14 +317,32 @@ /*! CpNetworkPluginForm::operatorSelectionStateChanged */ -void CpNetworkPluginForm::operatorSelectionStateChanged(bool) +void CpNetworkPluginForm::operatorSelectionStateChanged() { // #2C operator selection mode changed DPRINT << ": IN "; - - if (isPhoneOnLine()) { + + if (m_cpSettingsWrapper->isPhoneOffline()) { + // off line + restoreOperatorSelectionUi(); + emit showGlobalNote( + m_activeNoteId, + emit hbTrId("txt_cp_info_operator_selection_is_not_possible_in"), + HbMessageBox::MessageTypeInformation); + } else if(m_cpSettingsWrapper->isOngoingCall()) { + // ongoing call. + restoreOperatorSelectionUi(); + emit showGlobalNote( + m_activeNoteId, + emit hbTrId("txt_cp_info_active_calls_must_be_disconnected_befo"), + HbMessageBox::MessageTypeInformation); + } else { + // ok case PSetNetworkWrapper::NetworkSelectionMode mode; - m_psetNetworkWrapper->getNetworkSelectionMode(mode); + PSetNetworkWrapper::ErrorCode err = + m_psetNetworkWrapper->getNetworkSelectionMode(mode); + + if(err == PSetNetworkWrapper::ErrNoError) { switch (mode) { case PSetNetworkWrapper::SelectionModeAutomatic: manualOperatorSelection(); @@ -335,14 +357,11 @@ default: break; } - } else { - // offline mode. - emit showGlobalNote( - m_activeNoteId, - emit hbTrId("Operation not possible in Off-line mode"), - HbMessageBox::MessageTypeInformation); + } else { + DPRINT << ": err: " << err; + } } - + DPRINT << ": OUT"; } @@ -424,7 +443,12 @@ int mode) { DPRINT << ": IN"; - + removeConnection( + m_NetworkModeOptionsItemData, + SIGNAL(currentIndexChanged(int)), + this, + SLOT(networkModeStateChanged(int))); + switch (mode) { case PSetNetworkWrapper::AccessModeDual: m_NetworkModeOptionsItemData->setContentWidgetData( @@ -441,7 +465,13 @@ default: break; } - + + addConnection( + m_NetworkModeOptionsItemData, + SIGNAL(currentIndexChanged(int)), + this, + SLOT(networkModeStateChanged(int))); + DPRINT << ": OUT"; } @@ -536,7 +566,7 @@ else if(type == PSetNetworkWrapper::RequestSetNetwork || type == PSetNetworkWrapper::RequestSetNetworkAutomatic || type == PSetNetworkWrapper::RequestGetNetworkInfo) { - restoreUiSelection(); + restoreOperatorSelectionUi(); } DPRINT << ": OUT"; @@ -551,7 +581,7 @@ DPRINT << ": IN"; m_psetNetworkWrapper->cancelRequest(); - restoreUiSelection(); + restoreOperatorSelectionUi(); DPRINT << ": OUT"; } @@ -593,7 +623,7 @@ QObject::connect( CpPhoneNotes::instance(), SIGNAL(progressNoteCanceled()), this, SLOT(userCancel())); - emit showGlobalProgressNote(m_activeProgressNoteId, hbTrId("Requesting")); + emit showGlobalProgressNote(m_activeProgressNoteId, hbTrId("txt_common_info_requesting")); } else { QObject::disconnect( CpPhoneNotes::instance(), SIGNAL(progressNoteCanceled()), @@ -709,7 +739,7 @@ } else { DPRINT << ": Cancel"; m_psetNetworkWrapper->cancelRequest(); - restoreUiSelection(); + restoreOperatorSelectionUi(); } m_dialog->deleteLater(); m_dialog = NULL; @@ -719,15 +749,15 @@ } /*! - CpNetworkPluginForm::restoreUiSelection + CpNetworkPluginForm::restoreOperatorSelectionUi */ -void CpNetworkPluginForm::restoreUiSelection() +void CpNetworkPluginForm::restoreOperatorSelectionUi() { DPRINT << ": IN"; removeConnection( - m_NetworkOperatorSelectionItemData, SIGNAL(currentIndexChanged(int)), - this, SLOT(operatorSelectionStateChanged(int))); + m_NetworkOperatorSelectionItemData, SIGNAL(valueChanged(QPersistentModelIndex, QVariant)), + this, SLOT(operatorSelectionStateChanged())); PSetNetworkWrapper::NetworkSelectionMode mode; PSetNetworkWrapper::ErrorCode err = m_psetNetworkWrapper->getNetworkSelectionMode(mode); @@ -746,8 +776,8 @@ } } addConnection( - m_NetworkOperatorSelectionItemData, SIGNAL(currentIndexChanged(int)), - this, SLOT(operatorSelectionStateChanged(int))); + m_NetworkOperatorSelectionItemData, SIGNAL(valueChanged(QPersistentModelIndex, QVariant)), + this, SLOT(operatorSelectionStateChanged())); DPRINT << ": OUT"; } @@ -846,22 +876,6 @@ } /*! - CpNetworkPluginForm::isPhoneOnLine - */ -bool CpNetworkPluginForm::isPhoneOnLine() -{ - DPRINT << ": IN"; - - bool onLine(true); - if (m_cpSettingsWrapper->isPhoneOffline()) { - onLine = false; - } - - DPRINT << ": OUT : onLine : " << onLine; - return onLine; -} - -/*! CpNetworkPluginForm::searchAvailableNetworks */ void CpNetworkPluginForm::searchAvailableNetworks() diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cpnetworkplugin/src/cpnetworkpluginform.h --- a/phonesettings/cpphonesettingsplugins/cpnetworkplugin/src/cpnetworkpluginform.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/cpnetworkplugin/src/cpnetworkpluginform.h Wed Jun 23 18:12:20 2010 +0300 @@ -57,7 +57,7 @@ void cellularDataUseHomeStateChanged(int index); void cellularDataUseRoamStateChanged(int index); void networkModeStateChanged(int index); - void operatorSelectionStateChanged(bool index); + void operatorSelectionStateChanged(); void networkAccessModeGot(int mode); void availableNetworksGot( QList &m_networkInfoList); @@ -90,15 +90,13 @@ HbListWidget* w, const QString& item, const int& data) const; void showManualSelectiondialog(); - void restoreUiSelection(); + void restoreOperatorSelectionUi(); QString networkName(PSetNetworkWrapper::NetworkInfo &info); void connectToNetworkWrapper(PSetNetworkWrapper &wrapper); void connectToPhoneNotes(CpPhoneNotes ¬es); - bool isPhoneOnLine(); - private: QStringList mNetworkModeOptions; diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cpnetworkplugin/src/cpnetworkstatus.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phonesettings/cpphonesettingsplugins/cpnetworkplugin/src/cpnetworkstatus.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,213 @@ +/* + * 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 "cpnetworkstatus.h" +#include "cppluginlogging.h" + + +/*! + CpNetworkStatus::CpNetworkStatus + */ +CpNetworkStatus::CpNetworkStatus() : + QObject(0), + m_settingFormItemData(NULL) +{ + DPRINT << ": IN"; + + m_networkInfo.reset(new QSystemNetworkInfo); + + m_deviceInfo.reset(new QSystemDeviceInfo); + + connect(m_networkInfo.data(), + SIGNAL(networkNameChanged( + QSystemNetworkInfo::NetworkMode, QString)), + this, + SLOT(networkNameChanged( + QSystemNetworkInfo::NetworkMode, QString))); + + connect(m_networkInfo.data(), + SIGNAL(networkStatusChanged( + QSystemNetworkInfo::NetworkMode, + QSystemNetworkInfo::NetworkStatus)), + this, + SLOT(networkStatusChanged( + QSystemNetworkInfo::NetworkMode, + QSystemNetworkInfo::NetworkStatus))); + + DPRINT << ": OUT"; +} + + +/*! + CpNetworkStatus::~CpNetworkStatus + */ +CpNetworkStatus::~CpNetworkStatus() +{ + DPRINT << ": IN"; + + disconnect(m_networkInfo.data(), + SIGNAL (networkNameChanged( + QSystemNetworkInfo::NetworkMode,QString)), + this, + SLOT(networkNameChanged( + QSystemNetworkInfo::NetworkMode, QString))); + + disconnect(m_networkInfo.data(), + SIGNAL(networkStatusChanged( + QSystemNetworkInfo::NetworkMode, + QSystemNetworkInfo::NetworkStatus)), + this, + SLOT(networkStatusChanged( + QSystemNetworkInfo::NetworkMode, + QSystemNetworkInfo::NetworkStatus))); + + DPRINT << ": OUT"; +} + + +/*! + CpNetworkStatus::statusText + */ +QString CpNetworkStatus::statusText() const +{ + DPRINT << ": IN"; + + QString statusText; + + if ((QSystemDeviceInfo::SimNotAvailable == m_deviceInfo->simStatus()) || + (QSystemDeviceInfo::OfflineProfile == m_deviceInfo->currentProfile())) { + statusText = hbTrId("txt_cp_dblist_mobile_network_val_off"); + } else if (connectedToNetwork()) { + statusText = m_networkInfo->networkName(QSystemNetworkInfo::WcdmaMode); + if(statusText.isEmpty()) { + statusText = m_networkInfo->networkName(QSystemNetworkInfo::GsmMode); + } + } else { + statusText = hbTrId("txt_cp_dblist_mobile_network_val_not_connected"); + } + + DPRINT << ": OUT"; + return statusText; +} + +/*! + CpNetworkStatus::statusIcon + */ +HbIcon CpNetworkStatus::statusIcon() const +{ + DPRINT << ": IN"; + + HbIcon statusIcon(statusIconLocicalName()); + + DPRINT << ": OUT"; + return statusIcon; +} + +/*! + CpNetworkStatus::statusIconLocicalName + */ +QString CpNetworkStatus::statusIconLocicalName() const +{ + DPRINT << ": IN"; + + QString statusIcon(""); + + if ((QSystemDeviceInfo::SimNotAvailable == m_deviceInfo->simStatus()) || + (QSystemDeviceInfo::OfflineProfile == m_deviceInfo->currentProfile())) { + statusIcon = QString("qtg_large_network_off"); + } else if (connectedToNetwork()) { + statusIcon = QString("qtg_large_network"); + } else { + statusIcon = QString("qtg_large_network_off"); + } + + DPRINT << ": OUT"; + return statusIcon; +} + +/*! + CpNetworkStatus::networkNameChanged + */ +void CpNetworkStatus::networkNameChanged( + QSystemNetworkInfo::NetworkMode mode, const QString &) +{ + DPRINT << ": IN"; + + if (m_settingFormItemData && + ((QSystemNetworkInfo::GsmMode == mode) || + (QSystemNetworkInfo::WcdmaMode == mode) || + (QSystemNetworkInfo::UnknownMode == mode))) { + m_settingFormItemData->setDescription(statusText()); + m_settingFormItemData->setIcon(statusIconLocicalName()); + } + + DPRINT << ": OUT"; +} + +/*! + CpNetworkStatus::networkStatusChanged + */ +void CpNetworkStatus::networkStatusChanged( + QSystemNetworkInfo::NetworkMode mode, QSystemNetworkInfo::NetworkStatus) +{ + DPRINT << ": IN"; + + if (m_settingFormItemData && + ((QSystemNetworkInfo::GsmMode == mode) || + (QSystemNetworkInfo::WcdmaMode == mode) || + (QSystemNetworkInfo::UnknownMode == mode))) { + m_settingFormItemData->setDescription(statusText()); + m_settingFormItemData->setIcon(statusIconLocicalName()); + } + + DPRINT << ": OUT"; +} +/*! + CpNetworkStatus::setSettingFormItemData + */ +void CpNetworkStatus::setSettingFormItemData(CpSettingFormItemData *data) +{ + m_settingFormItemData = data; +} + +/*! + CpNetworkStatus::connectedToNetwork + */ +bool CpNetworkStatus::connectedToNetwork() const +{ + DPRINT << ": IN"; + + bool connected(false); + QSystemNetworkInfo::NetworkStatus wcdmaStatus = + m_networkInfo->networkStatus(QSystemNetworkInfo::WcdmaMode); + QSystemNetworkInfo::NetworkStatus gsmStatus = + m_networkInfo->networkStatus(QSystemNetworkInfo::GsmMode); + + if (QSystemNetworkInfo::Connected == wcdmaStatus || + QSystemNetworkInfo::HomeNetwork == wcdmaStatus || + QSystemNetworkInfo::Roaming == wcdmaStatus || + QSystemNetworkInfo::Connected == gsmStatus || + QSystemNetworkInfo::HomeNetwork == gsmStatus || + QSystemNetworkInfo::Roaming == gsmStatus) { + connected = true; + } + + DPRINT << ": OUT"; + return connected; +} + diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cpnetworkplugin/src/cpnetworkstatus.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phonesettings/cpphonesettingsplugins/cpnetworkplugin/src/cpnetworkstatus.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,74 @@ +/* + * 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 CPNETWORKSTATUS_H +#define CPNETWORKSTATUS_H + +#include +#include + +using namespace QtMobility; + +class CpSettingFormItemData; +class HbIcon; + +class CpNetworkStatus + : public QObject + +{ + Q_OBJECT + +public: + + CpNetworkStatus(); + + ~CpNetworkStatus(); + + QString statusText() const; + + HbIcon statusIcon() const; + + void setSettingFormItemData(CpSettingFormItemData *data); + +public slots: + + void networkNameChanged( + QSystemNetworkInfo::NetworkMode mode, + const QString &netName); + + void networkStatusChanged( + QSystemNetworkInfo::NetworkMode mode, + QSystemNetworkInfo::NetworkStatus status); + +private: + + QString statusIconLocicalName() const; + + bool connectedToNetwork() const; + +private: + + QScopedPointer m_networkInfo; + + QScopedPointer m_deviceInfo; + + // Not own + CpSettingFormItemData *m_settingFormItemData; + +}; + +#endif // CPNETWORKSTATUS_H diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/run_auto_tests_qt.bat --- a/phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/run_auto_tests_qt.bat Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/run_auto_tests_qt.bat Wed Jun 23 18:12:20 2010 +0300 @@ -157,7 +157,7 @@ :RUNTESTS echo Running tests for /f %%a in ('dir /b ut_*') do ( - call %PATH_TO_DLL%\%%a.exe + call %PATH_TO_DLL%\%%a.exe -dtextshell -- move \epoc32\winscw\c\data\%%a.log %PATH_TO_RESULT%\%%a.log ) goto end @@ -169,7 +169,7 @@ :::::::::::::::::::::::::::::::::::::::::::::::::::::: :CALCULATECOVERAGE echo Calculating coverage -ctcpost %PATH_TO_COVERAGE_DATA%\*.sym | ctcmerge -i - -o profile.txt +ctcpost %PATH_TO_COVERAGE_DATA%\*.sym -p - | ctcmerge -i - -o profile.txt call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb goto end diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/ut_cpnetworkplugin/ut_cpnetworkplugin.cpp --- a/phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/ut_cpnetworkplugin/ut_cpnetworkplugin.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/ut_cpnetworkplugin/ut_cpnetworkplugin.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -18,6 +18,7 @@ #include "ut_cpnetworkplugin.h" #include "qtestmains60.h" #include +#include #define private public #include "cpnetworkplugin.h" #include "cpitemdatahelper.h" @@ -51,6 +52,9 @@ { initialize(); + QT_TRAP_THROWING(SmcDefaultValue::SetL(QString(""))); + QT_TRAP_THROWING(SmcDefaultValue::SetL(HbIcon(""))); + m_networkPlugin = (CpNetworkPlugin*)qt_plugin_instance(); } @@ -75,12 +79,32 @@ CpItemDataHelper itemDataHelper; CpNetworkPlugin* p = (CpNetworkPlugin*)qt_plugin_instance(); QList list; + + EXPECT(CpNetworkStatus::statusText); + EXPECT(CpNetworkStatus::statusIcon); list.append(p->createSettingFormItemData(itemDataHelper)); qDeleteAll(list); + + QVERIFY(verify()); } /*! + UT_CpNetworkPlugin::t_createSettingView + */ +void UT_CpNetworkPlugin::t_createSettingView() +{ + CpNetworkPlugin* p = (CpNetworkPlugin*)qt_plugin_instance(); + QVariant hint; + + EXPECT(CpNetworkStatus::statusText); + CpBaseSettingView *view = p->createSettingView(hint); + delete view; + + QVERIFY(verify()); +} + +/*! UT_CpNetworkPlugin::t_memleak */ void UT_CpNetworkPlugin::t_memleak() diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/ut_cpnetworkplugin/ut_cpnetworkplugin.h --- a/phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/ut_cpnetworkplugin/ut_cpnetworkplugin.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/ut_cpnetworkplugin/ut_cpnetworkplugin.h Wed Jun 23 18:12:20 2010 +0300 @@ -39,6 +39,8 @@ void t_createSettingFormItemData(); + void t_createSettingView(); + void cleanup(); private: diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/ut_cpnetworkplugin/ut_cpnetworkplugin.pro --- a/phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/ut_cpnetworkplugin/ut_cpnetworkplugin.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/ut_cpnetworkplugin/ut_cpnetworkplugin.pro Wed Jun 23 18:12:20 2010 +0300 @@ -15,14 +15,15 @@ # # -CONFIG += qtestlib hb +CONFIG += qtestlib hb mobility TEMPLATE = app TARGET = DEPENDPATH += . ../../src/ INCLUDEPATH += . INCLUDEPATH +=../../../inc INCLUDEPATH +=../../../cptelephonyutils/inc -DEFINES += BUILD_CPTELEPHONYUTILS +DEFINES += BUILD_NETWORKPLUGIN BUILD_CPTELEPHONYUTILS +MOBILITY += systeminfo QT -= gui QT += testlib @@ -44,6 +45,7 @@ # code to be tested HEADERS += ../../src/cpnetworkplugin.h \ ../../src/cpnetworkpluginview.h \ + ../../src/cpnetworkstatus.h \ ../../../cptelephonyutils/inc/cpphonelocalisation.h SOURCES += ../../src/cpnetworkplugin.cpp @@ -52,3 +54,7 @@ SOURCES += ../../../tsrc/mocks/mock_cpnetworkpluginview.cpp SOURCES += ../../../tsrc/mocks/mock_cpphonelocalisation.cpp SOURCES += ../../../tsrc/mocks/mock_hbicon.cpp +SOURCES += ../../../tsrc/mocks/mock_cpsettingformentryitemdata.cpp +SOURCES += ../../../tsrc/mocks/mock_cpbasesettingview.cpp +SOURCES += ../../../tsrc/mocks/mock_hbview.cpp +SOURCES += ../../../tsrc/mocks/mock_cpnetworkstatus.cpp diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/ut_cpnetworkpluginform/ut_cpnetworkpluginform.pro --- a/phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/ut_cpnetworkpluginform/ut_cpnetworkpluginform.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/ut_cpnetworkpluginform/ut_cpnetworkpluginform.pro Wed Jun 23 18:12:20 2010 +0300 @@ -66,18 +66,6 @@ ../../../tsrc/mocks/mock_cpplugincommon.cpp \ ../../../tsrc/mocks/mock_cpphonenotes.cpp \ ../../../tsrc/mocks/mock_cpphonelocalisation.cpp \ - ../../../tsrc/mocks/mock_hbdataform.cpp \ - ../../../tsrc/mocks/mock_hbabstractitemview.cpp \ - ../../../tsrc/mocks/mock_hbscrollarea.cpp \ ../../../tsrc/mocks/mock_hbdialog.cpp \ - ../../../tsrc/mocks/mock_hbpopup.cpp \ - ../../../tsrc/mocks/mock_hbwidget.cpp \ - ../../../tsrc/mocks/mock_hblabel.cpp \ - ../../../tsrc/mocks/mock_hblistwidget.cpp \ - ../../../tsrc/mocks/mock_hblistview.cpp \ - ../../../tsrc/mocks/mock_hbaction.cpp \ - ../../../tsrc/mocks/mock_qaction.cpp \ - ../../../tsrc/mocks/mock_qobject.cpp \ - ../../../tsrc/mocks/mock_hblistwidgetitem.cpp \ ../../../tsrc/mocks/mock_cellulardatasettings.cpp \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/ut_cpnetworkpluginform/ut_networkpluginform.cpp --- a/phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/ut_cpnetworkpluginform/ut_networkpluginform.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/ut_cpnetworkpluginform/ut_networkpluginform.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -87,6 +87,8 @@ expect("CpSettingsWrapper::isPhoneOffline").returns(true); m_networkPluginForm->networkModeStateChanged(0); + + QVERIFY(verify()); } /*! @@ -97,15 +99,17 @@ expect("CpSettingsWrapper::isPhoneOffline").returns(false); m_NetworkSelectionMode = PSetNetworkWrapper::SelectionModeAutomatic; expect("PSetNetworkWrapper::getNetworkSelectionMode").willOnce(invoke(this, &updateNetworkSelectionMode)); - m_networkPluginForm->operatorSelectionStateChanged(true); + m_networkPluginForm->operatorSelectionStateChanged(); expect("CpSettingsWrapper::isPhoneOffline").returns(false); m_NetworkSelectionMode = PSetNetworkWrapper::SelectionModeManual; expect("PSetNetworkWrapper::getNetworkSelectionMode").willOnce(invoke(this, &updateNetworkSelectionMode)); - m_networkPluginForm->operatorSelectionStateChanged(true); + m_networkPluginForm->operatorSelectionStateChanged(); expect("CpSettingsWrapper::isPhoneOffline").returns(true); - m_networkPluginForm->operatorSelectionStateChanged(true); + m_networkPluginForm->operatorSelectionStateChanged(); + + QVERIFY(verify()); } /*! @@ -113,16 +117,15 @@ */ void UT_CpNetworkPluginForm::t_networkAccessModeGot() { - expect("CpSettingFormItemData::setContentWidgetData"); m_networkPluginForm->networkAccessModeGot(0); - - expect("CpSettingFormItemData::setContentWidgetData"); + m_networkPluginForm->networkAccessModeGot(1); - - expect("CpSettingFormItemData::setContentWidgetData"); + m_networkPluginForm->networkAccessModeGot(2); m_networkPluginForm->networkAccessModeGot(3); + + QVERIFY(verify()); } /*! @@ -134,8 +137,10 @@ QList networkInfoList; networkInfoList.append(&temp); - expect("HbDialog::exec"); + expect("HbDialog::open"); m_networkPluginForm->availableNetworksGot(networkInfoList); + + QVERIFY(verify()); } /*! @@ -149,15 +154,13 @@ m_networkPluginForm->networkReqestFailed(error, type); error = PSetNetworkWrapper::ErrNoNetworkService; - type = PSetNetworkWrapper::RequestSetNetwork; + type = PSetNetworkWrapper::RequestSetNetworkMode; expect("PSetNetworkWrapper::getNetworkAccessMode"); - expect("CpSettingFormItemData::setContentWidgetData"); m_networkPluginForm->networkReqestFailed(error, type); error = PSetNetworkWrapper::ErrOfflineOpNotAllowed; - type = PSetNetworkWrapper::RequestSetNetwork; + type = PSetNetworkWrapper::RequestSetNetworkMode; expect("PSetNetworkWrapper::getNetworkAccessMode"); - expect("CpSettingFormItemData::setContentWidgetData"); m_networkPluginForm->networkReqestFailed(error, type); PSetNetworkWrapper::NetworkInfo temp; @@ -166,8 +169,10 @@ m_networkPluginForm->availableNetworksGot(networkInfoList); error = PSetNetworkWrapper::ErrNoNetworkAccess; type = PSetNetworkWrapper::RequestSetNetwork; - expect("HbDialog::exec"); + expect("HbDialog::open"); m_networkPluginForm->networkReqestFailed(error, type); + + QVERIFY(verify()); } /*! @@ -182,6 +187,8 @@ m_NetworkSelectionMode = PSetNetworkWrapper::SelectionModeAutomatic; expect("PSetNetworkWrapper::getNetworkSelectionMode").willOnce(invoke(this, &updateNetworkSelectionMode)); m_networkPluginForm->userCancel(); + + QVERIFY(verify()); } /*! @@ -194,6 +201,8 @@ type = PSetNetworkWrapper::RequestEnumerateNetworks; m_networkPluginForm->handleSearchingNetworks(type); + + QVERIFY(verify()); } /*! @@ -229,11 +238,10 @@ void UT_CpNetworkPluginForm::cleanup() { reset(); - + delete m_networkPluginForm; + m_networkPluginForm = NULL; delete m_networkWrapper; m_networkWrapper = NULL; - delete m_networkPluginForm; - m_networkPluginForm = NULL; } /*! diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/ut_cpnetworkstatus/qtestmains60.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/ut_cpnetworkstatus/qtestmains60.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,40 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef QTESTMAINS60 +#define QTESTMAINS60 + +#define QTEST_MAIN_S60(TestObject) \ +int main(int argc, char *argv[]) \ +{ \ +char *new_argv[3]; \ +QCoreApplication app(argc, argv); \ +\ +QString str = "C:\\data\\" + QFileInfo(QCoreApplication::applicationFilePath()).baseName() + ".log"; \ +QByteArray bytes = str.toAscii(); \ +\ +char arg1[] = "-o"; \ +\ +new_argv[0] = argv[0]; \ +new_argv[1] = arg1; \ +new_argv[2] = bytes.data(); \ +\ +TestObject tc; \ +return QTest::qExec(&tc, 3, new_argv); \ +} + +#endif \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/ut_cpnetworkstatus/ut_cpnetworkstatus.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/ut_cpnetworkstatus/ut_cpnetworkstatus.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,176 @@ +/* +* 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 "ut_cpnetworkstatus.h" +#include "qtestmains60.h" +#include "cpnetworkstatus.h" +#include +#include + +/*! + ut_CpNetworkStatus::ut_CpNetworkStatus + */ +ut_CpNetworkStatus::ut_CpNetworkStatus() + : m_networkStatus(NULL) +{ + +} + + +/*! + ut_CpNetworkStatus::~ut_CpNetworkStatus + */ +ut_CpNetworkStatus::~ut_CpNetworkStatus() +{ + delete m_networkStatus; +} + + +/*! + ut_CpNetworkStatus::init + */ +void ut_CpNetworkStatus::init() +{ + initialize(); + + QT_TRAP_THROWING(SmcDefaultValue::SetL(QString("testi"))); + QT_TRAP_THROWING(SmcDefaultValue::SetL(HbIcon(""))); + QT_TRAP_THROWING(SmcDefaultValue< QSystemNetworkInfo::NetworkStatus >::SetL(QSystemNetworkInfo::Connected)); + QT_TRAP_THROWING(SmcDefaultValue< QSystemDeviceInfo::SimStatus >::SetL(QSystemDeviceInfo::SingleSimAvailable )); + QT_TRAP_THROWING(SmcDefaultValue< QSystemDeviceInfo::Profile >::SetL(QSystemDeviceInfo::NormalProfile )); + + m_networkStatus = new CpNetworkStatus; +} + + +/*! + ut_CpNetworkStatus::cleanup + */ +void ut_CpNetworkStatus::cleanup() +{ + reset(); + + delete m_networkStatus; + m_networkStatus = NULL; +} + +/*! + ut_CpNetworkStatus::t_statusText + */ +void ut_CpNetworkStatus::t_statusText() +{ + EXPECT( QtMobility::QSystemNetworkInfo::networkStatus ).with ( QSystemNetworkInfo::WcdmaMode ); + EXPECT( QtMobility::QSystemNetworkInfo::networkStatus ).with ( QSystemNetworkInfo::GsmMode ); + EXPECT( QtMobility::QSystemDeviceInfo::simStatus ); + EXPECT( QtMobility::QSystemDeviceInfo::currentProfile ); + EXPECT( QtMobility::QSystemNetworkInfo::networkName ); + m_networkStatus->statusText(); + QVERIFY(verify()); + + EXPECT( QtMobility::QSystemNetworkInfo::networkStatus ).with ( QSystemNetworkInfo::WcdmaMode ); + EXPECT( QtMobility::QSystemNetworkInfo::networkStatus ).with ( QSystemNetworkInfo::GsmMode ); + EXPECT( QtMobility::QSystemDeviceInfo::simStatus ); + EXPECT( QtMobility::QSystemDeviceInfo::currentProfile ); + EXPECT( QtMobility::QSystemNetworkInfo::networkName ); + QT_TRAP_THROWING(SmcDefaultValue::SetL(QString(""))); + m_networkStatus->statusText(); + QVERIFY(verify()); + + EXPECT( QtMobility::QSystemDeviceInfo::simStatus ); + EXPECT( QtMobility::QSystemNetworkInfo::networkName ).times(0); + QT_TRAP_THROWING(SmcDefaultValue< QSystemDeviceInfo::SimStatus >::SetL(QSystemDeviceInfo::SimNotAvailable )); + m_networkStatus->statusText(); + QVERIFY(verify()); + + EXPECT( QtMobility::QSystemDeviceInfo::simStatus ); + EXPECT( QtMobility::QSystemDeviceInfo::currentProfile ); + EXPECT( QtMobility::QSystemNetworkInfo::networkStatus ).with ( QSystemNetworkInfo::WcdmaMode ); + EXPECT( QtMobility::QSystemNetworkInfo::networkStatus ).with ( QSystemNetworkInfo::GsmMode ); + EXPECT( QtMobility::QSystemNetworkInfo::networkName ).times(0); + QT_TRAP_THROWING(SmcDefaultValue< QSystemDeviceInfo::SimStatus >::SetL(QSystemDeviceInfo::SingleSimAvailable )); + QT_TRAP_THROWING(SmcDefaultValue< QSystemNetworkInfo::NetworkStatus >::SetL(QSystemNetworkInfo::NoNetworkAvailable)); + m_networkStatus->statusText(); + QVERIFY(verify()); +} + +/*! + ut_CpNetworkStatus::t_statusIcon + */ +void ut_CpNetworkStatus::t_statusIcon() +{ + EXPECT( QtMobility::QSystemNetworkInfo::networkStatus ).with ( QSystemNetworkInfo::WcdmaMode ); + EXPECT( QtMobility::QSystemNetworkInfo::networkStatus ).with ( QSystemNetworkInfo::GsmMode ); + EXPECT( QtMobility::QSystemDeviceInfo::simStatus ); + EXPECT( QtMobility::QSystemDeviceInfo::currentProfile ); + m_networkStatus->statusIcon(); + QVERIFY(verify()); + + EXPECT( QtMobility::QSystemDeviceInfo::simStatus ); + QT_TRAP_THROWING(SmcDefaultValue< QSystemDeviceInfo::SimStatus >::SetL(QSystemDeviceInfo::SimNotAvailable )); + m_networkStatus->statusIcon(); + QVERIFY(verify()); + + EXPECT( QtMobility::QSystemDeviceInfo::simStatus ); + EXPECT( QtMobility::QSystemDeviceInfo::currentProfile ); + EXPECT( QtMobility::QSystemNetworkInfo::networkStatus ).with ( QSystemNetworkInfo::WcdmaMode ); + EXPECT( QtMobility::QSystemNetworkInfo::networkStatus ).with ( QSystemNetworkInfo::GsmMode ); + QT_TRAP_THROWING(SmcDefaultValue< QSystemDeviceInfo::SimStatus >::SetL(QSystemDeviceInfo::SingleSimAvailable )); + QT_TRAP_THROWING(SmcDefaultValue< QSystemNetworkInfo::NetworkStatus >::SetL(QSystemNetworkInfo::NoNetworkAvailable)); + m_networkStatus->statusIcon(); + QVERIFY(verify()); +} + +/*! + ut_CpNetworkStatus::t_networkNameChanged + */ +void ut_CpNetworkStatus::t_networkNameChanged() +{ + CpSettingFormItemData data; + m_networkStatus->setSettingFormItemData(&data); + m_networkStatus->networkNameChanged(QSystemNetworkInfo::WcdmaMode, QString("")); + m_networkStatus->networkNameChanged(QSystemNetworkInfo::BluetoothMode, QString("")); +} + +/*! + ut_CpNetworkStatus::t_networkStatusChanged + */ +void ut_CpNetworkStatus::t_networkStatusChanged() +{ + CpSettingFormItemData data; + m_networkStatus->setSettingFormItemData(&data); + m_networkStatus->networkStatusChanged(QSystemNetworkInfo::WcdmaMode, QSystemNetworkInfo::EmergencyOnly); + m_networkStatus->networkStatusChanged(QSystemNetworkInfo::BluetoothMode, QSystemNetworkInfo::EmergencyOnly); +} + +/*! + ut_CpNetworkStatus::t_setSettingFormItemData + */ +void ut_CpNetworkStatus::t_setSettingFormItemData() +{ + CpSettingFormItemData *data(NULL); + m_networkStatus->setSettingFormItemData(data); +} + +/*! + ut_CpNetworkStatus::t_memleak + */ +void ut_CpNetworkStatus::t_memleak() +{ + +} + +QTEST_MAIN_S60(ut_CpNetworkStatus) diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/ut_cpnetworkstatus/ut_cpnetworkstatus.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/ut_cpnetworkstatus/ut_cpnetworkstatus.h Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,58 @@ +/* +* 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 UT_CPNETWORKSTATUS_H +#define UT_CPNETWORKSTATUS_H + +#include +#include + +class CpNetworkStatus; + +class ut_CpNetworkStatus : public QObject, MockService +{ + Q_OBJECT + +public: + ut_CpNetworkStatus(); + ~ut_CpNetworkStatus(); + +private slots: + + void init(); + + void t_memleak(); + + void t_statusText(); + + void t_statusIcon(); + + void t_networkNameChanged(); + + void t_networkStatusChanged(); + + void t_setSettingFormItemData(); + + void cleanup(); + +private: + + CpNetworkStatus *m_networkStatus; + +}; + +#endif // UT_CPNETWORKSTATUS_H diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/ut_cpnetworkstatus/ut_cpnetworkstatus.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/ut_cpnetworkstatus/ut_cpnetworkstatus.pro Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,53 @@ +# +# 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 unit test component +# +# + +CONFIG += qtestlib hb mobility +TEMPLATE = app +TARGET = +DEPENDPATH += . ../../src/ +INCLUDEPATH += . +INCLUDEPATH +=../../../inc +INCLUDEPATH +=../../../cptelephonyutils/inc +DEFINES += BUILD_NETWORKPLUGIN BUILD_CPTELEPHONYUTILS +MOBILITY += systeminfo + +QT -= gui +QT += testlib + +symbian: { + CONFIG += no_icon + INCLUDEPATH += /epoc32/include/mw/QtTest \ + /epoc32/include/platform/mw \ + /epoc32/include/mw/qt + LIBS += -lmocklib \ + -lsymbianmock \ + -lcpframework +} + +# test code +HEADERS += ut_cpnetworkstatus.h +SOURCES += ut_cpnetworkstatus.cpp + +# code to be tested +HEADERS += ../../src/cpnetworkstatus.h + +SOURCES += ../../src/cpnetworkstatus.cpp + +# mocks needed for testing +SOURCES += ../../../tsrc/mocks/mock_hbicon.cpp +SOURCES += ../../../tsrc/mocks/mock_cpsettingformentryitemdata.cpp +SOURCES += ../../../tsrc/mocks/mock_qsysteminfo.cpp diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cptelephonyutils/bwins/cptelephonyutilsu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phonesettings/cpphonesettingsplugins/cptelephonyutils/bwins/cptelephonyutilsu.def Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,83 @@ +EXPORTS + ?metaObject@CpPhoneNotes@@UBEPBUQMetaObject@@XZ @ 1 NONAME ; struct QMetaObject const * CpPhoneNotes::metaObject(void) const + ?qt_metacast@CpPhoneLocalisation@@UAEPAXPBD@Z @ 2 NONAME ; void * CpPhoneLocalisation::qt_metacast(char const *) + ?handleProgressNoteCanceled@CpPhoneNotes@@AAEXXZ @ 3 NONAME ; void CpPhoneNotes::handleProgressNoteCanceled(void) + ?showGlobalErrorNote@CpPhoneNotes@@QAEXAAHH@Z @ 4 NONAME ; void CpPhoneNotes::showGlobalErrorNote(int &, int) + ??1CpSettingsWrapper@@UAE@XZ @ 5 NONAME ; CpSettingsWrapper::~CpSettingsWrapper(void) + ?installTranslator@CpPhoneLocalisation@@QAE_NW4TranslationFileId@1@@Z @ 6 NONAME ; bool CpPhoneLocalisation::installTranslator(enum CpPhoneLocalisation::TranslationFileId) + ?passwordTextChanged@CpPhoneNotes@@AAEXXZ @ 7 NONAME ; void CpPhoneNotes::passwordTextChanged(void) + ?instance@CpPhoneNotes@@SAPAV1@XZ @ 8 NONAME ; class CpPhoneNotes * CpPhoneNotes::instance(void) + ?trUtf8@CpPhoneLocalisation@@SA?AVQString@@PBD0H@Z @ 9 NONAME ; class QString CpPhoneLocalisation::trUtf8(char const *, char const *, int) + ?tr@CpPhoneLocalisation@@SA?AVQString@@PBD0H@Z @ 10 NONAME ; class QString CpPhoneLocalisation::tr(char const *, char const *, int) + ?readPubSubValue@CpSettingsWrapper@@ABE?AVQVariant@@JK@Z @ 11 NONAME ; class QVariant CpSettingsWrapper::readPubSubValue(long, unsigned long) const + ?formatPhoneNumber@CpPhoneNotes@@ABE?AVQString@@V2@@Z @ 12 NONAME ; class QString CpPhoneNotes::formatPhoneNumber(class QString) const + ?metaObject@Tools@@UBEPBUQMetaObject@@XZ @ 13 NONAME ; struct QMetaObject const * Tools::metaObject(void) const + ?readSoftRejectText@CpSettingsWrapper@@QAEXAAVQString@@AA_N@Z @ 14 NONAME ; void CpSettingsWrapper::readSoftRejectText(class QString &, bool &) + ?getStaticMetaObject@CpSettingsWrapper@@SAABUQMetaObject@@XZ @ 15 NONAME ; struct QMetaObject const & CpSettingsWrapper::getStaticMetaObject(void) + ?metaObject@CpSettingsWrapper@@UBEPBUQMetaObject@@XZ @ 16 NONAME ; struct QMetaObject const * CpSettingsWrapper::metaObject(void) const + ?errorCodeTextMapping@Tools@@SA_NHAAVQString@@@Z @ 17 NONAME ; bool Tools::errorCodeTextMapping(int, class QString &) + ?isPhoneOffline@CpSettingsWrapper@@QBE_NXZ @ 18 NONAME ; bool CpSettingsWrapper::isPhoneOffline(void) const + ?qt_metacall@CpPhoneLocalisation@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 19 NONAME ; int CpPhoneLocalisation::qt_metacall(enum QMetaObject::Call, int, void * *) + ?writeVtVideoSending@CpSettingsWrapper@@QAEHH@Z @ 20 NONAME ; int CpSettingsWrapper::writeVtVideoSending(int) + ?trUtf8@CpPhoneNotes@@SA?AVQString@@PBD0H@Z @ 21 NONAME ; class QString CpPhoneNotes::trUtf8(char const *, char const *, int) + ?readCenrepString@CpSettingsWrapper@@ABE?AVQString@@JK@Z @ 22 NONAME ; class QString CpSettingsWrapper::readCenrepString(long, unsigned long) const + ?qt_metacall@Tools@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 23 NONAME ; int Tools::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacall@CpPhoneNotes@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 24 NONAME ; int CpPhoneNotes::qt_metacall(enum QMetaObject::Call, int, void * *) + ?tr@CpPhoneNotes@@SA?AVQString@@PBD0@Z @ 25 NONAME ; class QString CpPhoneNotes::tr(char const *, char const *) + ?getStaticMetaObject@CpPhoneNotes@@SAABUQMetaObject@@XZ @ 26 NONAME ; struct QMetaObject const & CpPhoneNotes::getStaticMetaObject(void) + ?trUtf8@CpPhoneLocalisation@@SA?AVQString@@PBD0@Z @ 27 NONAME ; class QString CpPhoneLocalisation::trUtf8(char const *, char const *) + ?staticMetaObject@CpPhoneLocalisation@@2UQMetaObject@@B @ 28 NONAME ; struct QMetaObject const CpPhoneLocalisation::staticMetaObject + ?showNotificationDialog@CpPhoneNotes@@QAEXABVQString@@@Z @ 29 NONAME ; void CpPhoneNotes::showNotificationDialog(class QString const &) + ?qt_metacall@CpSettingsWrapper@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 30 NONAME ; int CpSettingsWrapper::qt_metacall(enum QMetaObject::Call, int, void * *) + ??0CpPhoneLocalisation@@QAE@PAVQObject@@@Z @ 31 NONAME ; CpPhoneLocalisation::CpPhoneLocalisation(class QObject *) + ?showCallDivertDetails@CpPhoneNotes@@QAEXABVPSCallDivertingStatus@@@Z @ 32 NONAME ; void CpPhoneNotes::showCallDivertDetails(class PSCallDivertingStatus const &) + ??_ECpPhoneLocalisation@@UAE@I@Z @ 33 NONAME ; CpPhoneLocalisation::~CpPhoneLocalisation(unsigned int) + ?numberGroupingSupported@CpSettingsWrapper@@QBE_NXZ @ 34 NONAME ; bool CpSettingsWrapper::numberGroupingSupported(void) const + ?launchNextNoteIfReady@CpPhoneNotes@@AAEXXZ @ 35 NONAME ; void CpPhoneNotes::launchNextNoteIfReady(void) + ?tr@CpSettingsWrapper@@SA?AVQString@@PBD0@Z @ 36 NONAME ; class QString CpSettingsWrapper::tr(char const *, char const *) + ?isFeatureCallWaitingDistiquishNotProvisionedEnabled@CpSettingsWrapper@@QAE_NXZ @ 37 NONAME ; bool CpSettingsWrapper::isFeatureCallWaitingDistiquishNotProvisionedEnabled(void) + ?cancelNote@CpPhoneNotes@@QAEXH@Z @ 38 NONAME ; void CpPhoneNotes::cancelNote(int) + ?writeCenrepValue@CpSettingsWrapper@@ABEHJKABVQVariant@@@Z @ 39 NONAME ; int CpSettingsWrapper::writeCenrepValue(long, unsigned long, class QVariant const &) const + ?staticMetaObject@Tools@@2UQMetaObject@@B @ 40 NONAME ; struct QMetaObject const Tools::staticMetaObject + ?readVtVideoSending@CpSettingsWrapper@@QAEHXZ @ 41 NONAME ; int CpSettingsWrapper::readVtVideoSending(void) + ?staticMetaObject@CpSettingsWrapper@@2UQMetaObject@@B @ 42 NONAME ; struct QMetaObject const CpSettingsWrapper::staticMetaObject + ?activeNoteAboutToClose@CpPhoneNotes@@AAEXXZ @ 43 NONAME ; void CpPhoneNotes::activeNoteAboutToClose(void) + ??_ECpPhoneNotes@@UAE@I@Z @ 44 NONAME ; CpPhoneNotes::~CpPhoneNotes(unsigned int) + ?getStaticMetaObject@Tools@@SAABUQMetaObject@@XZ @ 45 NONAME ; struct QMetaObject const & Tools::getStaticMetaObject(void) + ?qt_metacast@CpSettingsWrapper@@UAEPAXPBD@Z @ 46 NONAME ; void * CpSettingsWrapper::qt_metacast(char const *) + ?metaObject@CpPhoneLocalisation@@UBEPBUQMetaObject@@XZ @ 47 NONAME ; struct QMetaObject const * CpPhoneLocalisation::metaObject(void) const + ?qt_metacast@CpPhoneNotes@@UAEPAXPBD@Z @ 48 NONAME ; void * CpPhoneNotes::qt_metacast(char const *) + ?tr@CpPhoneLocalisation@@SA?AVQString@@PBD0@Z @ 49 NONAME ; class QString CpPhoneLocalisation::tr(char const *, char const *) + ?tr@CpPhoneNotes@@SA?AVQString@@PBD0H@Z @ 50 NONAME ; class QString CpPhoneNotes::tr(char const *, char const *, int) + ?tr@CpSettingsWrapper@@SA?AVQString@@PBD0H@Z @ 51 NONAME ; class QString CpSettingsWrapper::tr(char const *, char const *, int) + ?isOngoingCall@CpSettingsWrapper@@QBE_NXZ @ 52 NONAME ; bool CpSettingsWrapper::isOngoingCall(void) const + ??1CpPhoneNotes@@EAE@XZ @ 53 NONAME ; CpPhoneNotes::~CpPhoneNotes(void) + ?showGlobalNote@CpPhoneNotes@@QAEXAAHABVQString@@W4MessageBoxType@HbMessageBox@@@Z @ 54 NONAME ; void CpPhoneNotes::showGlobalNote(int &, class QString const &, enum HbMessageBox::MessageBoxType) + ?finishedPasswordQueryDialog@CpPhoneNotes@@QAEXPAVHbAction@@@Z @ 55 NONAME ; void CpPhoneNotes::finishedPasswordQueryDialog(class HbAction *) + ?videoSupported@Tools@@SA_NXZ @ 56 NONAME ; bool Tools::videoSupported(void) + ?showCallDuration@CpSettingsWrapper@@QAE_NXZ @ 57 NONAME ; bool CpSettingsWrapper::showCallDuration(void) + ?writeSoftRejectText@CpSettingsWrapper@@QAEHABVQString@@_N@Z @ 58 NONAME ; int CpSettingsWrapper::writeSoftRejectText(class QString const &, bool) + ?setShowCallDuration@CpSettingsWrapper@@QAEH_N@Z @ 59 NONAME ; int CpSettingsWrapper::setShowCallDuration(bool) + ?trUtf8@CpSettingsWrapper@@SA?AVQString@@PBD0@Z @ 60 NONAME ; class QString CpSettingsWrapper::trUtf8(char const *, char const *) + ??_ECpSettingsWrapper@@UAE@I@Z @ 61 NONAME ; CpSettingsWrapper::~CpSettingsWrapper(unsigned int) + ??1CpPhoneLocalisation@@UAE@XZ @ 62 NONAME ; CpPhoneLocalisation::~CpPhoneLocalisation(void) + ?progressNoteCanceled@CpPhoneNotes@@IAEXXZ @ 63 NONAME ; void CpPhoneNotes::progressNoteCanceled(void) + ?trUtf8@CpSettingsWrapper@@SA?AVQString@@PBD0H@Z @ 64 NONAME ; class QString CpSettingsWrapper::trUtf8(char const *, char const *, int) + ??0CpPhoneNotes@@AAE@XZ @ 65 NONAME ; CpPhoneNotes::CpPhoneNotes(void) + ?staticMetaObject@CpPhoneNotes@@2UQMetaObject@@B @ 66 NONAME ; struct QMetaObject const CpPhoneNotes::staticMetaObject + ?tr@Tools@@SA?AVQString@@PBD0@Z @ 67 NONAME ; class QString Tools::tr(char const *, char const *) + ?showGlobalProgressNote@CpPhoneNotes@@QAEXAAHABVQString@@@Z @ 68 NONAME ; void CpPhoneNotes::showGlobalProgressNote(int &, class QString const &) + ?voipSupported@Tools@@SA_NXZ @ 69 NONAME ; bool Tools::voipSupported(void) + ?qt_metacast@Tools@@UAEPAXPBD@Z @ 70 NONAME ; void * Tools::qt_metacast(char const *) + ?trUtf8@CpPhoneNotes@@SA?AVQString@@PBD0@Z @ 71 NONAME ; class QString CpPhoneNotes::trUtf8(char const *, char const *) + ?readCenrepValue@CpSettingsWrapper@@ABE?AVQVariant@@JK@Z @ 72 NONAME ; class QVariant CpSettingsWrapper::readCenrepValue(long, unsigned long) const + ?trUtf8@Tools@@SA?AVQString@@PBD0H@Z @ 73 NONAME ; class QString Tools::trUtf8(char const *, char const *, int) + ?getStaticMetaObject@CpPhoneLocalisation@@SAABUQMetaObject@@XZ @ 74 NONAME ; struct QMetaObject const & CpPhoneLocalisation::getStaticMetaObject(void) + ?tr@Tools@@SA?AVQString@@PBD0H@Z @ 75 NONAME ; class QString Tools::tr(char const *, char const *, int) + ?noteShowing@CpPhoneNotes@@QAE_NXZ @ 76 NONAME ; bool CpPhoneNotes::noteShowing(void) + ?removeTranslators@CpPhoneLocalisation@@QAEXXZ @ 77 NONAME ; void CpPhoneLocalisation::removeTranslators(void) + ?passwordQueryCompleted@CpPhoneNotes@@IAEXVQString@@_N@Z @ 78 NONAME ; void CpPhoneNotes::passwordQueryCompleted(class QString, bool) + ?showPasswordQueryDialog@CpPhoneNotes@@QAEXABVQString@@ABVQValidator@@H@Z @ 79 NONAME ; void CpPhoneNotes::showPasswordQueryDialog(class QString const &, class QValidator const &, int) + ?trUtf8@Tools@@SA?AVQString@@PBD0@Z @ 80 NONAME ; class QString Tools::trUtf8(char const *, char const *) + ??0CpSettingsWrapper@@QAE@PAVQObject@@@Z @ 81 NONAME ; CpSettingsWrapper::CpSettingsWrapper(class QObject *) + diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cptelephonyutils/cptelephonyutils.pro --- a/phonesettings/cpphonesettingsplugins/cptelephonyutils/cptelephonyutils.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/cptelephonyutils/cptelephonyutils.pro Wed Jun 23 18:12:20 2010 +0300 @@ -55,6 +55,14 @@ TARGET.CAPABILITY = CAP_GENERAL_DLL TARGET.UID3 = 0X20029F1F + defFiles = \ + "$${LITERAL_HASH}ifdef WINS" \ + "DEFFILE bwins/cptelephonyutils.def" \ + "$${LITERAL_HASH}else" \ + "DEFFILE eabi/cptelephonyutils.def" \ + "$${LITERAL_HASH}endif" + MMP_RULES += defFiles + # For sis file dllfile.sources = $${TARGET}.dll dllfile.path = $$SHARED_LIB_DIR diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cptelephonyutils/eabi/cptelephonyutilsu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phonesettings/cpphonesettingsplugins/cptelephonyutils/eabi/cptelephonyutilsu.def Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,81 @@ +EXPORTS + _ZN12CpPhoneNotes10cancelNoteEi @ 1 NONAME + _ZN12CpPhoneNotes11noteShowingEv @ 2 NONAME + _ZN12CpPhoneNotes11qt_metacallEN11QMetaObject4CallEiPPv @ 3 NONAME + _ZN12CpPhoneNotes11qt_metacastEPKc @ 4 NONAME + _ZN12CpPhoneNotes14showGlobalNoteERiRK7QStringN12HbMessageBox14MessageBoxTypeE @ 5 NONAME + _ZN12CpPhoneNotes16staticMetaObjectE @ 6 NONAME DATA 16 + _ZN12CpPhoneNotes19getStaticMetaObjectEv @ 7 NONAME + _ZN12CpPhoneNotes19passwordTextChangedEv @ 8 NONAME + _ZN12CpPhoneNotes19showGlobalErrorNoteERii @ 9 NONAME + _ZN12CpPhoneNotes20progressNoteCanceledEv @ 10 NONAME + _ZN12CpPhoneNotes21launchNextNoteIfReadyEv @ 11 NONAME + _ZN12CpPhoneNotes21showCallDivertDetailsERK21PSCallDivertingStatus @ 12 NONAME + _ZN12CpPhoneNotes22activeNoteAboutToCloseEv @ 13 NONAME + _ZN12CpPhoneNotes22passwordQueryCompletedE7QStringb @ 14 NONAME + _ZN12CpPhoneNotes22showGlobalProgressNoteERiRK7QString @ 15 NONAME + _ZN12CpPhoneNotes22showNotificationDialogERK7QString @ 16 NONAME + _ZN12CpPhoneNotes23showPasswordQueryDialogERK7QStringRK10QValidatori @ 17 NONAME + _ZN12CpPhoneNotes26handleProgressNoteCanceledEv @ 18 NONAME + _ZN12CpPhoneNotes27finishedPasswordQueryDialogEP8HbAction @ 19 NONAME + _ZN12CpPhoneNotes8instanceEv @ 20 NONAME + _ZN12CpPhoneNotesC1Ev @ 21 NONAME + _ZN12CpPhoneNotesC2Ev @ 22 NONAME + _ZN12CpPhoneNotesD0Ev @ 23 NONAME + _ZN12CpPhoneNotesD1Ev @ 24 NONAME + _ZN12CpPhoneNotesD2Ev @ 25 NONAME + _ZN17CpSettingsWrapper11qt_metacallEN11QMetaObject4CallEiPPv @ 26 NONAME + _ZN17CpSettingsWrapper11qt_metacastEPKc @ 27 NONAME + _ZN17CpSettingsWrapper16showCallDurationEv @ 28 NONAME + _ZN17CpSettingsWrapper16staticMetaObjectE @ 29 NONAME DATA 16 + _ZN17CpSettingsWrapper18readSoftRejectTextER7QStringRb @ 30 NONAME + _ZN17CpSettingsWrapper18readVtVideoSendingEv @ 31 NONAME + _ZN17CpSettingsWrapper19getStaticMetaObjectEv @ 32 NONAME + _ZN17CpSettingsWrapper19setShowCallDurationEb @ 33 NONAME + _ZN17CpSettingsWrapper19writeSoftRejectTextERK7QStringb @ 34 NONAME + _ZN17CpSettingsWrapper19writeVtVideoSendingEi @ 35 NONAME + _ZN17CpSettingsWrapper51isFeatureCallWaitingDistiquishNotProvisionedEnabledEv @ 36 NONAME + _ZN17CpSettingsWrapperC1EP7QObject @ 37 NONAME + _ZN17CpSettingsWrapperC2EP7QObject @ 38 NONAME + _ZN17CpSettingsWrapperD0Ev @ 39 NONAME + _ZN17CpSettingsWrapperD1Ev @ 40 NONAME + _ZN17CpSettingsWrapperD2Ev @ 41 NONAME + _ZN19CpPhoneLocalisation11qt_metacallEN11QMetaObject4CallEiPPv @ 42 NONAME + _ZN19CpPhoneLocalisation11qt_metacastEPKc @ 43 NONAME + _ZN19CpPhoneLocalisation16staticMetaObjectE @ 44 NONAME DATA 16 + _ZN19CpPhoneLocalisation17installTranslatorENS_17TranslationFileIdE @ 45 NONAME + _ZN19CpPhoneLocalisation17removeTranslatorsEv @ 46 NONAME + _ZN19CpPhoneLocalisation19getStaticMetaObjectEv @ 47 NONAME + _ZN19CpPhoneLocalisationC1EP7QObject @ 48 NONAME + _ZN19CpPhoneLocalisationC2EP7QObject @ 49 NONAME + _ZN19CpPhoneLocalisationD0Ev @ 50 NONAME + _ZN19CpPhoneLocalisationD1Ev @ 51 NONAME + _ZN19CpPhoneLocalisationD2Ev @ 52 NONAME + _ZN5Tools11qt_metacallEN11QMetaObject4CallEiPPv @ 53 NONAME + _ZN5Tools11qt_metacastEPKc @ 54 NONAME + _ZN5Tools13voipSupportedEv @ 55 NONAME + _ZN5Tools14videoSupportedEv @ 56 NONAME + _ZN5Tools16staticMetaObjectE @ 57 NONAME DATA 16 + _ZN5Tools19getStaticMetaObjectEv @ 58 NONAME + _ZN5Tools20errorCodeTextMappingEiR7QString @ 59 NONAME + _ZNK12CpPhoneNotes10metaObjectEv @ 60 NONAME + _ZNK12CpPhoneNotes17formatPhoneNumberE7QString @ 61 NONAME + _ZNK17CpSettingsWrapper10metaObjectEv @ 62 NONAME + _ZNK17CpSettingsWrapper13isOngoingCallEv @ 63 NONAME + _ZNK17CpSettingsWrapper14isPhoneOfflineEv @ 64 NONAME + _ZNK17CpSettingsWrapper15readCenrepValueElm @ 65 NONAME + _ZNK17CpSettingsWrapper15readPubSubValueElm @ 66 NONAME + _ZNK17CpSettingsWrapper16readCenrepStringElm @ 67 NONAME + _ZNK17CpSettingsWrapper16writeCenrepValueElmRK8QVariant @ 68 NONAME + _ZNK17CpSettingsWrapper23numberGroupingSupportedEv @ 69 NONAME + _ZNK19CpPhoneLocalisation10metaObjectEv @ 70 NONAME + _ZNK5Tools10metaObjectEv @ 71 NONAME + _ZTI12CpPhoneNotes @ 72 NONAME + _ZTI17CpSettingsWrapper @ 73 NONAME + _ZTI19CpPhoneLocalisation @ 74 NONAME + _ZTI5Tools @ 75 NONAME + _ZTV12CpPhoneNotes @ 76 NONAME + _ZTV17CpSettingsWrapper @ 77 NONAME + _ZTV19CpPhoneLocalisation @ 78 NONAME + _ZTV5Tools @ 79 NONAME + diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cptelephonyutils/inc/cpphonenotes.h --- a/phonesettings/cpphonesettingsplugins/cptelephonyutils/inc/cpphonenotes.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/cptelephonyutils/inc/cpphonenotes.h Wed Jun 23 18:12:20 2010 +0300 @@ -93,14 +93,6 @@ */ void showGlobalErrorNote(int ¬eId, int errorCode); - /** - Shows the basic service list. - @param title Heading to be used for the list. - @param basicServiceGroupIds Basic services to be listed. - */ - void showBasicServiceList( - const QString &title, - const QList &basicServiceGroupIds); /** Shows detailed call divert information about the selected divert service @@ -138,15 +130,14 @@ Slot for HbDialog finished singal. */ void finishedPasswordQueryDialog(HbAction* action); - -private: - + /** - Resolves basic service group name by identifier. - @param basicServiceGroupId Group identifier. - @return Group name. + Shows notification dialog. + @param text Text to show on a dialog. */ - QString basicServiceGroupName(BasicServiceGroups basicServiceGroupId) const; + void showNotificationDialog(const QString& text); + +private: /** Formats phone number according to locale specific rules. diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cptelephonyutils/inc/cpplugincommon.h --- a/phonesettings/cpphonesettingsplugins/cptelephonyutils/inc/cpplugincommon.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/cptelephonyutils/inc/cpplugincommon.h Wed Jun 23 18:12:20 2010 +0300 @@ -67,7 +67,13 @@ */ bool showCallDuration(); int setShowCallDuration(bool value); - + + /*! + Own video in received call setting + */ + int readVtVideoSending(); + int writeVtVideoSending(int value); + /*! Soft reject text setting */ @@ -91,11 +97,23 @@ */ bool isPhoneOffline() const; + /*! + Checks if ongoing call exists. + Return true if ongoing call exists. + Return false if ongoing call does not exist. + */ + bool isOngoingCall() const; + private: /*! Read cenrep value. */ QVariant readCenrepValue( const long int uid, const unsigned long int key) const; + + /*! + Read pubsub value. + */ + QVariant readPubSubValue( const long int uid, const unsigned long int key) const; /*! Read cenrep string. diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cptelephonyutils/src/cpphonelocalisation.cpp --- a/phonesettings/cpphonesettingsplugins/cptelephonyutils/src/cpphonelocalisation.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/cptelephonyutils/src/cpphonelocalisation.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -81,6 +81,7 @@ fileName = TS_FILE_COMMON; break; default: + DWARNING << ": Unknown enum value!"; break; } @@ -95,7 +96,7 @@ } else { delete translator; translator = NULL; - DWARNING << ": WARNING! Translator not loaded!"; + DWARNING << ": Translator not loaded!"; } } diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cptelephonyutils/src/cpphonenotes.cpp --- a/phonesettings/cpphonesettingsplugins/cptelephonyutils/src/cpphonenotes.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/cptelephonyutils/src/cpphonenotes.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -72,14 +73,8 @@ DPRINT << ": IN"; delete m_cpSettingsWrapper; - QObject* note(NULL); - foreach (note, *m_notesQueue) { - delete note; - } + qDeleteAll(*m_notesQueue); delete m_notesQueue; - if(m_passwordDialog) { - delete m_passwordDialog; - } DPRINT << ": OUT"; @@ -96,9 +91,12 @@ HbDeviceProgressDialog *note = new HbDeviceProgressDialog(HbProgressDialog::WaitDialog, this); note->setText(text); - QAction *action = new QAction(hbTrId("txt_common_button_hide"), this); - //Ownership of action is not transferred. Deleted when note closes. - note->setAction(action, HbDeviceProgressDialog::CancelButtonRole ); + + if(hbTrId("txt_common_info_requesting") == text){ + QAction *action = new QAction(hbTrId("txt_common_button_hide"), note); + note->setAction(action, HbDeviceProgressDialog::CancelButtonRole ); + } + noteId = reinterpret_cast(note); DPRINT << ", NOTEID: " << noteId; QObject::connect( @@ -143,54 +141,6 @@ DPRINT << ": OUT"; } -/*! - CpPhoneNotes::showBasicServiceList. - */ -void CpPhoneNotes::showBasicServiceList( - const QString &title, - const QList &basicServiceGroupIds) -{ - DPRINT << ": IN"; - - Q_ASSERT(title != ""); - Q_ASSERT(0 < basicServiceGroupIds.count()); - - QScopedPointer serviceListPopup(new HbDialog()); - serviceListPopup->setDismissPolicy(HbDialog::NoDismiss); - serviceListPopup->setTimeout(HbPopup::NoTimeout); - - QScopedPointer heading( - new HbLabel(title, serviceListPopup.data())); - heading->setAlignment(Qt::AlignLeft | Qt::AlignTop); - serviceListPopup->setHeadingWidget(heading.take()); - - QScopedPointer serviceList( - new HbListView(serviceListPopup.data())); - QScopedPointer serviceListModel( - new QStandardItemModel(serviceList.data())); - for (int i = 0; i < basicServiceGroupIds.count(); i++) { - BasicServiceGroups groupId = - static_cast(basicServiceGroupIds.at(i)); - QString groupName = basicServiceGroupName(groupId); - QScopedPointer listItem(new QStandardItem(groupName)); - serviceListModel->appendRow(listItem.take()); - } - serviceList->setModel(serviceListModel.take()); - serviceList->setSelectionMode(HbAbstractItemView::NoSelection); - serviceListPopup->setContentWidget(serviceList.take()); - - HbAction *backAction = - new HbAction(hbTrId("txt_common_button_back"), serviceListPopup.data()); - serviceListPopup->setPrimaryAction(backAction); - - HbDialog *serviceListPopupDialog = serviceListPopup.take(); - QObject::connect( - serviceListPopupDialog, SIGNAL(finished(HbAction*)), - serviceListPopupDialog, SLOT(deleteLater())); - serviceListPopupDialog->show(); - - DPRINT << ": OUT"; -} /*! CpPhoneNotes::cancelNote. @@ -233,77 +183,6 @@ } /*! - CpPhoneNotes::basicServiceGroupName. - Resolves basic service group name by group identifier. - */ -QString CpPhoneNotes::basicServiceGroupName(BasicServiceGroups basicServiceGroupId) const -{ - DPRINT << ": IN"; - - QString string = ""; - switch (basicServiceGroupId) { - case AllTeleAndBearer: - string = hbTrId("All services"); - break; - case AllTele: - string = hbTrId("Voice, fax and messages"); - break; - case Telephony: - string = hbTrId("Voice calls"); - break; - case AllDataTele: - string = hbTrId("Fax and messages"); - break; - case Fax: - string = hbTrId("Fax"); - break; - case Sms: - string = hbTrId("Messages"); - break; - case AllTeleExcSms: - string = hbTrId("Voice calls and fax"); - break; - case AllBearer: - if (Tools::videoSupported()) { - string = hbTrId("Data and video services"); - } else { - string = hbTrId("Data services"); - } - break; - case AllAsync: - string = hbTrId("Asynchronous services"); - break; - case AllSync: - string = hbTrId("Synchronous services"); - break; - case SyncData: - string = hbTrId("Synchronous data services"); - break; - case AsyncData: - string = hbTrId("Asynchronous data services"); - break; - case PacketData: - string = hbTrId("Packet data"); - break; - case PadAccess: - string = hbTrId("PAD access"); - break; - case 30: - string = hbTrId("Video calls"); - break; - case AltTele: - string = hbTrId("Alternate line services"); - break; - default: - DPRINT << ", DEFAULT"; - break; - } - - DPRINT << ": OUT"; - return string; -} - -/*! CpPhoneNotes::showGlobalErrorNote. */ void CpPhoneNotes::showGlobalErrorNote(int ¬eId, int errorcode) @@ -353,7 +232,7 @@ HbAction *backAction = new HbAction( hbTrId("txt_common_button_back"), divertInfoScopedPointer.data()); - divertInfoScopedPointer->setPrimaryAction(backAction); + divertInfoScopedPointer->addAction(backAction); HbMessageBox *divertInfo = divertInfoScopedPointer.take(); QObject::connect( @@ -380,17 +259,18 @@ passwordDialog->setPromptText(title); passwordDialog->setEchoMode(HbLineEdit::Password); passwordDialog->setInputMethodHints(Qt::ImhDigitsOnly); + passwordDialog->actions().at(0)->setEnabled(false); + HbLineEdit *hbLineEdit = passwordDialog->lineEdit(); hbLineEdit->setMaxLength(maxPasswordLength); + HbEditorInterface editorInterface(hbLineEdit); - editorInterface.setMode(HbInputModeNumeric); editorInterface.setInputConstraints(HbEditorConstraintFixedInputMode); - editorInterface.setFilter(HbDigitsOnlyFilter::instance()); m_passwordValidator = &validator; - passwordDialog->primaryAction()->setEnabled(false); + connect( hbLineEdit, SIGNAL(contentsChanged()), this, SLOT(passwordTextChanged())); @@ -401,7 +281,7 @@ m_passwordDialog = NULL; } m_passwordDialog = passwordDialog.take(); - + m_passwordDialog->setParent(this); DPRINT << ": OUT"; } @@ -413,7 +293,7 @@ bool ok; QString password; if(m_passwordDialog) { - if (action == m_passwordDialog->secondaryAction()) { + if (action == m_passwordDialog->actions().at(1)) { ok = false; } else { ok = true; @@ -507,9 +387,6 @@ DPRINT << ", delete note: " << reinterpret_cast(note); HbDeviceProgressDialog *pNote = qobject_cast(note); - if(pNote){ - delete pNote->action(); - } note->deleteLater(); } } @@ -543,8 +420,24 @@ bool isPasswordValid = (QValidator::Acceptable == m_passwordValidator->validate( password, position)); - m_passwordDialog->primaryAction()->setEnabled(isPasswordValid); - + m_passwordDialog->actions().at(0)->setEnabled(isPasswordValid); + + DPRINT << ": OUT"; +} + + +/*! + CpPhoneNotes::showNotificationDialog. + */ +void CpPhoneNotes::showNotificationDialog(const QString& text) +{ + DPRINT << ": IN"; + HbNotificationDialog *notifDialog = new HbNotificationDialog(); + notifDialog->setDismissPolicy(HbPopup::TapAnywhere); + notifDialog->setAttribute(Qt::WA_DeleteOnClose, true); + notifDialog->setText(text); + notifDialog->show(); + DPRINT << ": OUT"; } diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cptelephonyutils/src/cpplugincommon.cpp --- a/phonesettings/cpphonesettingsplugins/cptelephonyutils/src/cpplugincommon.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/cptelephonyutils/src/cpplugincommon.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -30,6 +30,7 @@ #include #include #include +#include #include "cptelephonyutilsdefs.h" #include "cpplugincommon.h" #include "cppluginlogging.h" @@ -79,7 +80,7 @@ errorText = hbTrId("txt_phone_info_not_allowed"); break; case KErrGsmSSIncompatibility: - errorText = hbTrId("Services in conflict"); + errorText = hbTrId("txt_phone_info_conflict_error"); break; case KErrGsmSSSystemFailure: errorText = hbTrId("txt_phone_info_result_unknown"); @@ -169,6 +170,18 @@ return writeCenrepValue(KCRUidLogs.iUid, KLogsShowCallDuration, cenrepValue ); } +int CpSettingsWrapper::readVtVideoSending() +{ + DPRINT << ": IN"; + return readCenrepValue(KCRUidTelephonySettings.iUid, KSettingsVTVideoSending).toInt(); +} + +int CpSettingsWrapper::writeVtVideoSending(int value) +{ + DPRINT << ": IN"; + return writeCenrepValue(KCRUidTelephonySettings.iUid, KSettingsVTVideoSending, value); +} + void CpSettingsWrapper::readSoftRejectText(QString &text, bool &userDefined ) { if (SoftRejectTextDefault == @@ -210,6 +223,15 @@ return ret; } +QVariant CpSettingsWrapper::readPubSubValue( + const long int uid, const unsigned long int key) const +{ + XQSettingsKey settingsKey(XQSettingsKey::TargetPublishAndSubscribe, uid, key); + QVariant ret = m_Settings->readItemValue(settingsKey); + DPRINT << "PubSub ret: " << ret; + return ret; +} + QString CpSettingsWrapper::readCenrepString( const long int uid, const unsigned long int key) const { @@ -246,3 +268,14 @@ } return offLinesupport; } + +bool CpSettingsWrapper::isOngoingCall() const +{ + bool callOngoing(false); + if (EPSCTsyCallStateNone < + readPubSubValue(KPSUidCtsyCallInformation.iUid, KCTsyCallState).toInt()) { + callOngoing = true; + } + return callOngoing; +} + diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cptelephonyutils/src/cpplugincommon_s.cpp --- a/phonesettings/cpphonesettingsplugins/cptelephonyutils/src/cpplugincommon_s.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/cptelephonyutils/src/cpplugincommon_s.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -110,3 +110,11 @@ DPRINT << "DUMMY WRAPPER: enabled: " << enabled; return enabled; } + + +bool CpSettingsWrapper::isOngoingCall() const +{ + bool ongoingCall = false; + DPRINT << "DUMMY WRAPPER: ongoingCall: " << ongoingCall; + return ongoingCall; +} diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/run_auto_tests_qt.bat --- a/phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/run_auto_tests_qt.bat Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/run_auto_tests_qt.bat Wed Jun 23 18:12:20 2010 +0300 @@ -169,7 +169,7 @@ :::::::::::::::::::::::::::::::::::::::::::::::::::::: :CALCULATECOVERAGE echo Calculating coverage -ctcpost %PATH_TO_COVERAGE_DATA%\*.sym | ctcmerge -i - -o profile.txt +ctcpost %PATH_TO_COVERAGE_DATA%\*.sym -p - | ctcmerge -i - -o profile.txt call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb goto end diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/ut_cpphonelocalisation/ut_cpphonelocalisation.cpp --- a/phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/ut_cpphonelocalisation/ut_cpphonelocalisation.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/ut_cpphonelocalisation/ut_cpphonelocalisation.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -92,6 +92,13 @@ m_phoneLocalisation->installTranslator( CpPhoneLocalisation::TranslationFileCommon); QVERIFY(m_phoneLocalisation->m_translators.count() == 1); + + // Test: Unknown enum value + QVERIFY(verify()); + expect("QCoreApplication::installTranslator").times(0); + m_phoneLocalisation->installTranslator( + (CpPhoneLocalisation::TranslationFileId)2); + QVERIFY(m_phoneLocalisation->m_translators.count() == 1); QVERIFY(verify()); // Test: telephone_cp translator load diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/ut_cpphonenotes/ut_cpphonenotes.cpp --- a/phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/ut_cpphonenotes/ut_cpphonenotes.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/ut_cpphonenotes/ut_cpphonenotes.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -20,6 +20,7 @@ #include #include #include +#include #define private public #include "cpphonenotes.h" @@ -138,12 +139,20 @@ } /*! + UT_CpPhoneNotes::t_showNotificationDialog + */ +void UT_CpPhoneNotes::t_showNotificationDialog() +{ + CpPhoneNotes::instance()->showNotificationDialog("NotificationDialog"); +} + +/*! UT_CpPhoneNotes::t_showProgressNote */ void UT_CpPhoneNotes::t_showProgressNote() { - CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1, "test"); - CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid2, "test"); + CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1, "testshowProgressNote1"); + CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid2, "testshowProgressNote2"); QTest::qWait(5000); } @@ -152,7 +161,10 @@ */ void UT_CpPhoneNotes::t_showGlobalProgressNote() { - CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1, "test"); + CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1, "testshowGPN"); + QTest::qWait(5000); + CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1, + hbTrId("txt_common_info_requesting")); QTest::qWait(5000); } @@ -180,17 +192,6 @@ } -/*! - UT_CpPhoneNotes::t_showBasicServiceList - */ -void UT_CpPhoneNotes::t_showBasicServiceList() -{ - QList basicServiceGroupIds; - basicServiceGroupIds << Telephony; - basicServiceGroupIds << AllDataTele; - CpPhoneNotes::instance()-> - showBasicServiceList("Basic Service List", basicServiceGroupIds ); -} /*! UT_CpPhoneNotes::t_showCallDivertDetails @@ -230,7 +231,7 @@ void UT_CpPhoneNotes::t_cancelNote() { CpPhoneNotes::instance()->cancelNote(m_noteid1); - CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1, "test"); + CpPhoneNotes::instance()->showGlobalProgressNote(m_noteid1, "testcancelNote"); CpPhoneNotes::instance()->noteShowing(); CpPhoneNotes::instance()->cancelNote(m_noteid1); diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/ut_cpphonenotes/ut_cpphonenotes.h --- a/phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/ut_cpphonenotes/ut_cpphonenotes.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/ut_cpphonenotes/ut_cpphonenotes.h Wed Jun 23 18:12:20 2010 +0300 @@ -23,10 +23,8 @@ #include #include -class CpPhoneNotes; class HbDialog; - class UT_CpPhoneNotes : public QObject, MockService { Q_OBJECT @@ -57,10 +55,10 @@ void t_showGlobalProgressNote(); void t_showGlobalNote(); void t_showGlobalErrorNote(); - void t_showBasicServiceList(); void t_showCallDivertDetails(); void t_showPasswordQueryDialog(); void t_cancelNote(); + void t_showNotificationDialog(); private: int m_noteid1; diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/ut_cpplugincommon/ut_cpplugincommon.cpp --- a/phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/ut_cpplugincommon/ut_cpplugincommon.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/ut_cpplugincommon/ut_cpplugincommon.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -70,7 +70,7 @@ } /*! - UT_CpPluginCommon::t_memleak + UT_CpPluginCommon::t_showCallDuration */ void UT_CpPluginCommon::t_showCallDuration() { @@ -82,15 +82,17 @@ } /*! - UT_CpPluginCommon::t_memleak + UT_CpPluginCommon::t_setShowCallDuration */ void UT_CpPluginCommon::t_setShowCallDuration() { mWrapper->setShowCallDuration(true); + mWrapper->setShowCallDuration(false); + QVERIFY(verify()); } /*! - UT_CpPluginCommon::t_memleak + UT_CpPluginCommon::t_readSoftRejectText */ void UT_CpPluginCommon::t_readSoftRejectText() { @@ -100,24 +102,35 @@ returns(QVariant(true)); expect("XQSettingsManager::readItemValue"). - returns(QVariant("text")); + returns(QVariant("text")); mWrapper->readSoftRejectText(text, userDefined); + + userDefined=false; + expect("XQSettingsManager::readItemValue"). + returns(QVariant(false)); + expect("XQSettingsManager::readItemValue"). + returns(QVariant("text")); + mWrapper->readSoftRejectText(text, userDefined); + QVERIFY(verify()); } /*! - UT_CpPluginCommon::t_memleak + UT_CpPluginCommon::t_writeSoftRejectText */ void UT_CpPluginCommon::t_writeSoftRejectText() { QString text=""; bool userDefined=true; mWrapper->writeSoftRejectText(text, userDefined); + userDefined=false; + mWrapper->writeSoftRejectText(text, userDefined); + QVERIFY(verify()); } /*! - UT_CpPluginCommon::t_memleak + UT_CpPluginCommon::t_numberGroupingSupported */ void UT_CpPluginCommon::t_numberGroupingSupported() { @@ -160,7 +173,7 @@ } /*! - UT_CpPluginCommon::t_memleak + UT_CpPluginCommon::t_errorCodeTextMapping */ void UT_CpPluginCommon::t_errorCodeTextMapping() { @@ -191,7 +204,7 @@ "txt_phone_info_not_allowed")); Tools::errorCodeTextMapping(KErrGsmSSIncompatibility, text); QCOMPARE( text, QString( - "Services in conflict")); + "txt_phone_info_conflict_error")); Tools::errorCodeTextMapping(KErrGsmSSSystemFailure, text); QCOMPARE( text, QString( "txt_phone_info_result_unknown")); @@ -249,5 +262,59 @@ } +/*! + UT_CpPluginCommon::t_readVtVideoSending + */ +void UT_CpPluginCommon::t_readVtVideoSending() +{ + expect("XQSettingsManager::readItemValue"). + returns(QVariant(1)); + mWrapper->readVtVideoSending(); + QVERIFY( verify() ); +} + +/*! + UT_CpPluginCommon::t_writeVtVideoSending + */ +void UT_CpPluginCommon::t_writeVtVideoSending() +{ + expect("XQSettingsManager::writeItemValue");//. + //times(2); + int i=0; + mWrapper->writeVtVideoSending(i); + QVERIFY( verify() ); +} + +/*! + UT_CpPluginCommon::t_isFeatureCallWaitingDistiquishNotProvisionedEnabled + */ +void UT_CpPluginCommon::t_isFeatureCallWaitingDistiquishNotProvisionedEnabled() +{ + expect("XQSettingsManager::readItemValue"). + returns(QVariant(1)); + mWrapper->isFeatureCallWaitingDistiquishNotProvisionedEnabled(); + QVERIFY( verify() ); +} + +/*! + UT_CpPluginCommon::t_isPhoneOffline + */ +void UT_CpPluginCommon::t_isPhoneOffline() +{ + expect("XQSysInfo::isSupported"); + mWrapper->isPhoneOffline(); + QVERIFY( verify() ); +} + +/*! + UT_CpPluginCommon::t_isOngoingCall + */ +void UT_CpPluginCommon::t_isOngoingCall() +{ + expect("XQSettingsManager::readItemValue"). + returns(QVariant(1)); + mWrapper->isOngoingCall(); + QVERIFY( verify() ); +} QTEST_MAIN_S60(UT_CpPluginCommon) diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/ut_cpplugincommon/ut_cpplugincommon.h --- a/phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/ut_cpplugincommon/ut_cpplugincommon.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/ut_cpplugincommon/ut_cpplugincommon.h Wed Jun 23 18:12:20 2010 +0300 @@ -47,6 +47,13 @@ void t_voipSupported(); void t_videoSupported(); void t_errorCodeTextMapping(); + + void t_readVtVideoSending(); + void t_writeVtVideoSending(); + + void t_isFeatureCallWaitingDistiquishNotProvisionedEnabled(); + void t_isPhoneOffline(); + void t_isOngoingCall(); private: CpSettingsWrapper *mWrapper; diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/ut_cpplugincommon/ut_cpplugincommon.pro --- a/phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/ut_cpplugincommon/ut_cpplugincommon.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/ut_cpplugincommon/ut_cpplugincommon.pro Wed Jun 23 18:12:20 2010 +0300 @@ -40,9 +40,9 @@ # code to be tested HEADERS += ../../inc/cpplugincommon.h \ - /epoc32/include/mw/xqsettingskey.h \ - /epoc32/include/mw/xqsettingsmanager.h \ - /epoc32/include/mw/xqsysinfo.h + /epoc32/include/platform/mw/xqsettingskey.h \ + /epoc32/include/platform/mw/xqsettingsmanager.h \ + /epoc32/include/platform/mw/xqsysinfo.h SOURCES += ../../src/cpplugincommon.cpp diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/divertplugin/divertplugin.pro --- a/phonesettings/cpphonesettingsplugins/divertplugin/divertplugin.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/divertplugin/divertplugin.pro Wed Jun 23 18:12:20 2010 +0300 @@ -34,16 +34,12 @@ # Input SOURCES += src/cpdivertplugingroup.cpp \ src/cpdivertplugin.cpp \ - src/cpdivertselectionitem.cpp \ - src/cpdivertselectioncustomitem.cpp \ src/cpdivertitemdata.cpp - + HEADERS += src/cpdivertplugingroup.h \ src/cpdivertplugin.h \ - src/cpdivertselectionitem.h \ - src/cpdivertselectioncustomitem.h \ src/cpdivertitemdata.h - + include(../cpplugincommon.pri) symbian: { diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/divertplugin/src/cpdivertitemdata.cpp --- a/phonesettings/cpphonesettingsplugins/divertplugin/src/cpdivertitemdata.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/divertplugin/src/cpdivertitemdata.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -15,8 +15,6 @@ * */ #include "cpdivertitemdata.h" -#include "cpdivertselectionitem.h" - CpDivertItemData::CpDivertItemData( HbDataFormModelItem::DataItemType type, diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/divertplugin/src/cpdivertplugingroup.cpp --- a/phonesettings/cpphonesettingsplugins/divertplugin/src/cpdivertplugingroup.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/divertplugin/src/cpdivertplugingroup.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -15,7 +15,6 @@ * */ -#include #include #include #include @@ -29,20 +28,16 @@ #include #include #include -#include "cpdivertselectionitem.h" #include "cpdivertplugingroup.h" #include "cpplugincommon.h" #include "cpphonenotes.h" #include "cppluginlogging.h" #include "cpdivertitemdata.h" -#include "cpdivertselectioncustomitem.h" Q_DECLARE_METATYPE(PsCallDivertingCondition) Q_DECLARE_METATYPE(PsServiceGroup) // CONSTANTS -const QString KVoiceMail("voiceMail"); -const QString KVideoMail("voiceMail"); const QString KOtherNumber("otherNumber"); /*! @@ -65,7 +60,8 @@ m_activeProgressNoteId(0), m_divertToVoiceMailBox(false), m_helper(helper), - m_divertTimeout(0) + m_activateDivertPhase(NonePhase), + m_dialog(NULL) { DPRINT << ": IN"; @@ -105,9 +101,6 @@ SIGNAL(requestDone()), this, SLOT(divertRequestProcessed())); - - // Create custom item prototype - m_helper.addItemPrototype(new CpDivertSelectionItem()); // Listen form item visibility change m_helper.connectToForm( @@ -116,9 +109,7 @@ // Create grouped setting items createVoiceCallItems(this); createVideoCallItems(this); - - m_eventLoop = new QEventLoop(this); - + DPRINT << ": OUT"; } @@ -166,8 +157,8 @@ hbTrId("txt_phone_setlabel_if_not_answered"), hbTrId("txt_phone_setlabel_if_not_answered"), true, page); - m_DataItemVoiceIfNotAnswered->setContentWidgetData( - "timeoutText", hbTrId("txt_phone_setlabel_delay")); + m_DataItemVoiceIfNotAnswered->setDescription( + hbTrId("txt_phone_setlabel_divert_delay_ln_seconds", 0)); m_DataItemVoiceIfOutOfReach = createDivertItem( DivertConditionNotReachable, @@ -192,6 +183,7 @@ void CpDivertPluginGroup::createVideoCallItems(CpSettingFormItemData *parent) { DPRINT << ": IN"; + CpSettingFormItemData *page = new CpSettingFormItemData( HbDataFormModelItem::GroupPageItem, hbTrId("txt_phone_setlabel_service_val_video_divert")); @@ -218,9 +210,9 @@ hbTrId("txt_phone_setlabel_if_not_answered"), hbTrId("txt_phone_setlabel_if_not_answered"), true, page); - m_DataItemVideoIfNotAnswered->setContentWidgetData( - "timeoutText", hbTrId("txt_phone_setlabel_delay")); - + m_DataItemVideoIfNotAnswered->setDescription( + hbTrId("txt_phone_setlabel_divert_delay_ln_seconds", 0)); + m_DataItemVideoIfOutOfReach = createDivertItem( DivertConditionNotReachable, ServiceGroupData, @@ -250,13 +242,13 @@ CpSettingFormItemData *parent) { DPRINT << ": IN"; - + CpDivertItemData *item = new CpDivertItemData( - static_cast - (CpDivertSelectionItem::CpDivertSelectionItemId), + HbDataFormModelItem::CheckBoxItem, label, m_helper, parent); + QVariant conditionVar; conditionVar.setValue(condition); item->setProperty("condition", conditionVar); @@ -265,6 +257,7 @@ item->setProperty("serviceGroup", serviceGroupVar); item->setProperty("queryLabel", queryLabel); item->setProperty("needTimeoutInfo", needTimeoutInfo); + item->setProperty("divertItem", true); item->setEnabled(false); // Connect signals @@ -273,6 +266,7 @@ this, SLOT(changeDivertingStateRequested(CpDivertItemData&))); parent->appendChild(item); + DPRINT << ": OUT"; return item; } @@ -286,18 +280,21 @@ DPRINT << "item:" << item; HbDataFormModelItem* modelItem = - qobject_cast(item.model())->itemFromIndex(item); + qobject_cast(item.model())->itemFromIndex(item); + if (!isDivertSettingsItem(modelItem)) { + return; + } - if (!modelItem->contentWidgetData("number").isValid() && - (static_cast - (CpDivertSelectionItem::CpDivertSelectionItemId == modelItem->type()))){ + bool isInitialStatusQueryDoneForItem = + modelItem->contentWidgetData("text").isValid(); + if (!isInitialStatusQueryDoneForItem) { CpDivertItemData *item = static_cast(modelItem); - if(qvariant_cast(item->property("condition")) != + if (qvariant_cast(item->property("condition")) != DivertConditionAllConditionalCases) { addToDivertingRequestQueue(CheckDivertStatus, *item); } } - + DPRINT << ": OUT"; } @@ -308,6 +305,7 @@ DivertRequest request, CpDivertItemData &item) { DPRINT << ": IN"; + CpDivertRequestQueueItem i; i.request = request; i.item = &item; @@ -322,7 +320,6 @@ } } - DPRINT << ": OUT"; } @@ -332,6 +329,7 @@ void CpDivertPluginGroup::divertRequestProcessed() { DPRINT << ": IN"; + // Remove previous request and process next one if (!m_divertRequestQueue.isEmpty()) { m_divertRequestQueue.dequeue(); @@ -353,19 +351,28 @@ PsServiceGroup serviceGroup, PsCallDivertingCondition condition, PsCallDivertingStatus status, - const QString& number, int timeout) + const QString& aNumber, int aTimeout) { DPRINT << ": IN"; - CpDivertSelectionCustomitem::State itemState = - CpDivertSelectionCustomitem::Disabled; + Qt::CheckState itemState = Qt::Unchecked; if (status == DivertingStatusActive) { - itemState = CpDivertSelectionCustomitem::Enabled; + itemState = Qt::Checked; } else if (status == DivertingStatusInactive) { - itemState = CpDivertSelectionCustomitem::Deactivated; + itemState = Qt::PartiallyChecked; } else { - itemState = CpDivertSelectionCustomitem::Disabled; + itemState = Qt::Unchecked; } + + QString number = aNumber; + int timeout = aTimeout; + if (Qt::PartiallyChecked == itemState) { + number = QString(""); + timeout = 0; + } + + QVariant numberValue; + numberValue.setValue(number); switch (condition) { case DivertConditionAllConditionalCases: @@ -381,24 +388,35 @@ case DivertConditionNoReply: case DivertConditionNotReachable: if (serviceGroup & ServiceGroupVoice) { - item(ServiceGroupVoice, condition)->setContentWidgetData("number", number); - item(ServiceGroupVoice, condition)->setContentWidgetData("timeout", timeout); - item(ServiceGroupVoice, condition)->setContentWidgetData("state", itemState); - item(ServiceGroupVoice, condition)->setEnabled(true); + CpSettingFormItemData* itemData = item(ServiceGroupVoice, condition); + itemData->setContentWidgetData("text", numberValue); + if (DivertConditionNoReply == condition) { + itemData->setDescription( + hbTrId("txt_phone_setlabel_divert_delay_ln_seconds", timeout)); + } + itemData->setContentWidgetData("checkState", itemState); + itemData->setEnabled(true); } if (serviceGroup & ServiceGroupData) { - item(ServiceGroupData, condition)->setContentWidgetData("number", number); - item(ServiceGroupData, condition)->setContentWidgetData("timeout", timeout); - item(ServiceGroupData, condition)->setContentWidgetData("state", itemState); - item(ServiceGroupData, condition)->setEnabled(true); + CpSettingFormItemData* itemData = item(ServiceGroupData, condition); + itemData->setContentWidgetData("text", numberValue); + if (DivertConditionNoReply == condition) { + itemData->setDescription( + hbTrId("txt_phone_setlabel_divert_delay_ln_seconds", timeout)); + } + itemData->setContentWidgetData("checkState", itemState); + itemData->setEnabled(true); } + break; case DivertConditionAllCalls: case DivertConditionUnknown: default: break; } + + DPRINT << ": OUT"; } /*! @@ -408,16 +426,23 @@ PsServiceGroup serviceGroup, PsCallDivertingCondition condition) { DPRINT << ": IN"; + if (serviceGroup & ServiceGroupVoice) { - item(ServiceGroupVoice, condition)->setContentWidgetData("state", - item(ServiceGroupVoice, condition)->contentWidgetData("state")); + CpSettingFormItemData* itemData = item(ServiceGroupVoice, condition); + int checkState = itemData->contentWidgetData("checkState").toInt(); + int revertedCheckState = + Qt::Checked == checkState ? Qt::Unchecked : Qt::Checked; + itemData->setContentWidgetData("checkState", revertedCheckState); } if (serviceGroup & ServiceGroupData) { - item(ServiceGroupData, condition)->setContentWidgetData("state", - item(ServiceGroupData, condition)->contentWidgetData("state")); + CpSettingFormItemData* itemData = item(ServiceGroupData, condition); + int checkState = itemData->contentWidgetData("checkState").toInt(); + int revertedCheckState = + Qt::Checked == checkState ? Qt::Unchecked : Qt::Checked; + itemData->setContentWidgetData("checkState", revertedCheckState); } - + DPRINT << ": OUT"; } @@ -427,6 +452,8 @@ CpSettingFormItemData* CpDivertPluginGroup::item( PsService service, PsCallDivertingCondition condition) { + DPRINT << ": IN"; + CpSettingFormItemData *ret = 0; switch (condition) { case DivertConditionUnconditional: @@ -470,6 +497,8 @@ break; } Q_CHECK_PTR(ret); + + DPRINT << ": OUT"; return ret; } @@ -485,61 +514,40 @@ } CpDivertRequestQueueItem request = m_divertRequestQueue.head(); // Command param - PSCallDivertingCommand divertCommand; - divertCommand.iServiceGroup = qvariant_cast( + m_divertCommand.iServiceGroup = qvariant_cast( request.item->property("serviceGroup")); - divertCommand.iCondition = qvariant_cast( + m_divertCommand.iCondition = qvariant_cast( request.item->property("condition")); - divertCommand.iStatus = DivertingStatusUnknown; - divertCommand.iNumber = ""; - divertCommand.iNoReplyTimer = 0; + m_divertCommand.iStatus = DivertingStatusUnknown; + m_divertCommand.iNumber = ""; + m_divertCommand.iNoReplyTimer = 0; switch (request.request) { case ActivateDivert: { DPRINT << "activate"; - divertCommand.iSetting = RegisterDiverting; - if (popUpVoiceNumberListQuery( - request.item->property("queryLabel").toString(), - divertCommand.iNumber, - divertCommand.iServiceGroup)) { - if (request.item->property("needTimeoutInfo").toBool()) { - if (popUpTimerQuery(divertCommand.iNoReplyTimer)) { - setCallDiverting(divertCommand); - } else { - // Query was cancelled - revertItemData( - divertCommand.iServiceGroup, - divertCommand.iCondition); - m_divertRequestQueue.clear(); - } - } else { - setCallDiverting(divertCommand); - } - } else { - // Query was cancelled - revertItemData( - divertCommand.iServiceGroup, - divertCommand.iCondition); - m_divertRequestQueue.clear(); - } + m_divertCommand.iSetting = RegisterDiverting; + m_activateDivertPhase = PopUpVoiceNumberListQueryPhase; + popUpVoiceNumberListQuery( + request.item->property("queryLabel").toString(), + m_divertCommand.iServiceGroup); } break; case DeactivateDivert: { DPRINT << "deactivate"; - divertCommand.iSetting = EraseDiverting; - setCallDiverting(divertCommand); + m_divertCommand.iSetting = EraseDiverting; + setCallDiverting(m_divertCommand); } break; case CheckDivertStatus: { DPRINT << "check status"; m_callDivertingWrapper->getCallDivertingStatus( - divertCommand.iServiceGroup, - divertCommand.iCondition, - bscParam(divertCommand.iServiceGroup) ); + m_divertCommand.iServiceGroup, + m_divertCommand.iCondition, + bscParam(m_divertCommand.iServiceGroup) ); if (!CpPhoneNotes::instance()->noteShowing()) { CpPhoneNotes::instance()->showGlobalProgressNote( - m_activeProgressNoteId, hbTrId("txt_phone_info_requesting")); + m_activeProgressNoteId, hbTrId("txt_common_info_requesting")); } } break; @@ -559,12 +567,11 @@ { DPRINT << ": IN"; - DivertRequest event=ActivateDivert; - if (CpDivertSelectionCustomitem::Enabled == - item.contentWidgetData("state").toInt()) { + DivertRequest event = ActivateDivert; + if (Qt::Checked == item.contentWidgetData("checkState").toInt()) { + event = ActivateDivert; + } else { event = DeactivateDivert; - } else { - event = ActivateDivert; } addToDivertingRequestQueue(event, item); @@ -601,44 +608,27 @@ switch(aSetting.iStatus) { case DivertingStatusActive: if (aPlural) { - CpPhoneNotes::instance()->showGlobalNote(m_activeNoteId, - hbTrId("txt_phone_info_diverts_activated"), - HbMessageBox::MessageTypeInformation); + CpPhoneNotes::instance()->showNotificationDialog(hbTrId("txt_phone_info_diverts_activated")); } else { - CpPhoneNotes::instance()->showGlobalNote(m_activeNoteId, - hbTrId("txt_phone_info_divert_activated"), - HbMessageBox::MessageTypeInformation); + CpPhoneNotes::instance()->showNotificationDialog(hbTrId("txt_phone_info_divert_activated")); } if (!m_divertToVoiceMailBox) { // Number, except vmbx number, will be added to defaultnumber list m_callDivertingWrapper->setNewDefaultNumber(aSetting.iNumber); } - // Diverting calls does not affect Internet calls - if (Tools::voipSupported() && - (aSetting.iServiceGroup & ServiceGroupVoice)) { - CpPhoneNotes::instance()->showGlobalNote(m_activeNoteId, - hbTrId("Diverting calls does not affect Internet calls"), - HbMessageBox::MessageTypeInformation); - } break; case DivertingStatusNotRegistered: case DivertingStatusInactive: if (aPlural) { - CpPhoneNotes::instance()->showGlobalNote(m_activeNoteId, - hbTrId("txt_phone_info_diverts_deactivated"), - HbMessageBox::MessageTypeInformation); + CpPhoneNotes::instance()->showNotificationDialog(hbTrId("txt_phone_info_diverts_deactivated")); } else { - CpPhoneNotes::instance()->showGlobalNote(m_activeNoteId, - hbTrId("txt_phone_info_divert_deactivated"), - HbMessageBox::MessageTypeInformation); + CpPhoneNotes::instance()->showNotificationDialog(hbTrId("txt_phone_info_divert_deactivated")); } break; case DivertingStatusNotProvisioned: case DivertingStatusUnknown: default: - CpPhoneNotes::instance()->showGlobalNote(m_activeNoteId, - hbTrId("txt_phone_info_request_not_completed"), - HbMessageBox::MessageTypeInformation); + CpPhoneNotes::instance()->showNotificationDialog(hbTrId("txt_phone_info_request_not_completed")); } DPRINT << ": OUT"; @@ -704,65 +694,76 @@ /*! CpDivertPluginGroup::popUpVoiceNumberListQuery. */ -bool CpDivertPluginGroup::popUpVoiceNumberListQuery( - const QString& heading, QString& result, PsServiceGroup serviceGroup) +void CpDivertPluginGroup::popUpVoiceNumberListQuery( + const QString& heading, PsServiceGroup serviceGroup) { DPRINT << ": IN"; - bool requestOK(false); - - if (!m_eventLoop->isRunning()){ - m_divertNumber = ""; - m_divertToVoiceMailBox = false; - QStringList defNumbers; - HbDialog *dialog = createDialog(heading); - m_voiceNumberList = new HbListWidget(dialog); - if (serviceGroup == ServiceGroupVoice) { - addItemToListWidget( - m_voiceNumberList, hbTrId("txt_phone_setlabel_voice_mbx"), KVoiceMail ); - } else if(serviceGroup == ServiceGroupData) { - // TODO: Implement video voicemail - } + m_divertCommand.iNumber = ""; + m_divertToVoiceMailBox = false; + QStringList defNumbers; + QScopedPointer dialog(createDialog(heading)); + HbListWidget *list = new HbListWidget(dialog.data()); - // Add "old" divert number to list - m_callDivertingWrapper->getDefaultNumbers(defNumbers); - int count(defNumbers.count()); - for (int i = 0; i < count; i++) { - addItemToListWidget(m_voiceNumberList, defNumbers[i], defNumbers[i]); - } - addItemToListWidget(m_voiceNumberList, hbTrId("txt_phone_list_enter_number_manually"), KOtherNumber ); - dialog->setContentWidget(m_voiceNumberList); + QString vmbxNumber; + int vmbxErr = 0; + if (serviceGroup == ServiceGroupVoice) { + vmbxErr = m_callDivertingWrapper->getVoiceMailBoxNumber( + vmbxNumber, ServiceGroupVoice); - // Connect list item activation signal to close the popup - QObject::connect(m_voiceNumberList, - SIGNAL(activated(HbListWidgetItem*)), - dialog, - SLOT(close()), - Qt::UniqueConnection); + } else if(serviceGroup == ServiceGroupData) { + vmbxErr = m_callDivertingWrapper->getVoiceMailBoxNumber( + vmbxNumber, ServiceGroupData); - // Sets the "Cancel"-action/button - HbAction *cancelAction = new HbAction(hbTrId("txt_common_button_cancel")); - dialog->addAction(cancelAction); - QObject::connect(cancelAction, - SIGNAL(triggered(bool)), - dialog, - SLOT(close())); - - dialog->open(this, SLOT(voiceNumberListQueryClosed(HbAction *))); - - QPointer guard = this; - m_eventLoop->exec(); - if (guard.isNull()) { - requestOK = false; - } else if (!m_divertNumber.isEmpty()) { - result = m_divertNumber; - requestOK = true; - } + } else { + vmbxErr = -1; + // Skip } - DPRINT << ": OUT : result:" << result; - DPRINT << ": OUT : requestOK :" << requestOK; - return requestOK; + if (!vmbxErr) { + addItemToListWidget( + list, + hbTrId("txt_phone_setlabel_voice_mbx"), + vmbxNumber ); + } + + // Add "old" divert number to list + m_callDivertingWrapper->getDefaultNumbers(defNumbers); + int count(defNumbers.count()); + for (int i = 0; i < count; i++) { + addItemToListWidget(list, defNumbers[i], defNumbers[i]); + } + addItemToListWidget( + list, + hbTrId("txt_phone_list_enter_number_manually"), + KOtherNumber ); + dialog->setContentWidget(list); + + // Connect list item activation signal to close the popup + QObject::connect(list, + SIGNAL(activated(HbListWidgetItem*)), + dialog.data(), + SLOT(close()), + Qt::UniqueConnection); + + // Sets the "Cancel"-action/button + HbAction *cancelAction = new HbAction(hbTrId( + "txt_common_button_cancel"), + dialog.data()); + dialog->addAction(cancelAction); + QObject::connect(cancelAction, + SIGNAL(triggered(bool)), + dialog.data(), + SLOT(close())); + + dialog->open(this, SLOT(voiceNumberListQueryClosed(HbAction *))); + if (m_dialog) { + m_dialog->deleteLater(); + m_dialog = NULL; + } + m_dialog = dialog.take(); + + DPRINT << ": OUT"; } /*! @@ -771,40 +772,67 @@ void CpDivertPluginGroup::voiceNumberListQueryClosed(HbAction* action) { DPRINT << ": IN"; + HbListWidget *list = NULL; - bool exitLoop(true); + if (m_dialog) { + bool err = QObject::disconnect(m_dialog->contentWidget(), + SIGNAL(activated(HbListWidgetItem*)), + m_dialog, + SLOT(close())); + list = qobject_cast(m_dialog->contentWidget()); + m_dialog->deleteLater(); + m_dialog = NULL; + } // Enter if cancel wasn't selected - if (!action) { - // Update the view with selected text - QString data = m_voiceNumberList->currentItem()->data().toString(); - DPRINT << ": data: " << data; + if (!action) { + QString data; + QString text; - if (data == KVoiceMail) { - m_callDivertingWrapper->getVoiceMailBoxNumber(m_divertNumber); - if (!m_divertNumber.isEmpty()) { - DPRINT << ": voicemailboxnumber found"; + if (list) { + // Update the view with selected text + data = list->currentItem()->data().toString(); + text = list->currentItem()->text(); + } + DPRINT << ": data: " << data; + DPRINT << ": text: " << text; + + if (text == hbTrId("txt_phone_setlabel_voice_mbx")) { + m_divertCommand.iNumber = data; + + if (m_divertCommand.iNumber.isEmpty()) { + DPRINT << ": voicemailboxnumber query"; + if (m_divertCommand.iServiceGroup == ServiceGroupVoice) { + m_callDivertingWrapper->queryVoiceMailBoxNumber( + m_divertCommand.iNumber, ServiceGroupVoice); + + } else if(m_divertCommand.iServiceGroup == ServiceGroupData) { + m_callDivertingWrapper->queryVoiceMailBoxNumber( + m_divertCommand.iNumber, ServiceGroupData); + + } else { + // Skip + } + } - m_eventLoop->quit(); - + if (m_divertCommand.iNumber.isEmpty()) { + nextPhaseForActivateDivert(false); + } else { + nextPhaseForActivateDivert(true); + } } else if (data == KOtherNumber) { - // Event loop is terminated by popUpNumberEditorClosed - exitLoop = false; - - DPRINT << ": open popUpNumberEditor"; - popUpNumberEditor(hbTrId("txt_phone_info_number"), m_divertNumber); + DPRINT << ": open popUpNumberEditor"; + popUpNumberEditor(hbTrId("txt_phone_info_number")); } else { //TODO if matched contact name not work DPRINT << ": else"; - m_divertNumber = data; + m_divertCommand.iNumber = data; + nextPhaseForActivateDivert(true); } - } - - if (exitLoop) { - DPRINT << ": quit eventloop"; - m_eventLoop->quit(); + } else { + nextPhaseForActivateDivert(false); } DPRINT << ": OUT"; @@ -814,25 +842,33 @@ CpDivertPluginGroup::popUpNumberEditor. */ void CpDivertPluginGroup::popUpNumberEditor( - const QString& heading, QString& result) + const QString& heading) { DPRINT << ": IN"; - - Q_UNUSED(result); - HbDialog *dialog = createDialog(heading); + QScopedPointer dialog(createDialog(heading)); - m_voiceNumberEditor = new HbLineEdit(dialog); - m_voiceNumberEditor->setInputMethodHints(Qt::ImhDialableCharactersOnly); - dialog->setContentWidget(m_voiceNumberEditor); + HbLineEdit *editor = new HbLineEdit(dialog.data()); + editor->setInputMethodHints(Qt::ImhDialableCharactersOnly); + //Ownership is transferred + dialog->setContentWidget(editor); - HbAction *okAction = new HbAction(hbTrId("txt_common_button_ok")); + HbAction *okAction = new HbAction( + hbTrId("txt_common_button_ok"), + dialog.data()); dialog->addAction(okAction); - HbAction *cancelAction = new HbAction(hbTrId("txt_common_button_cancel")); + HbAction *cancelAction = new HbAction( + hbTrId("txt_common_button_cancel"), + dialog.data()); dialog->addAction(cancelAction); dialog->open(this, SLOT(popUpNumberEditorClosed(HbAction*))); + if (m_dialog) { + m_dialog->deleteLater(); + m_dialog = NULL; + } + m_dialog = dialog.take(); DPRINT << ": OUT"; } @@ -843,32 +879,33 @@ void CpDivertPluginGroup::popUpNumberEditorClosed(HbAction* action) { DPRINT << ": IN"; - bool cancelled(true); if (action) { - if (action->text() == hbTrId("txt_common_button_ok")) - { + if (action->text() == hbTrId("txt_common_button_ok")) { cancelled = false; DPRINT << ": ok selected"; - } + } } if (!cancelled) { - m_divertNumber = m_voiceNumberEditor->text(); - DPRINT << ": m_divertNumber " - << m_divertNumber; - if (m_divertNumber.isEmpty()) { - CpPhoneNotes::instance()->showGlobalNote(m_activeNoteId, - hbTrId("txt_phone_info_invalid_phone_number"), HbMessageBox::MessageTypeWarning); - } + HbLineEdit *editor = qobject_cast(m_dialog->contentWidget()); + if (editor) { + m_divertCommand.iNumber = editor->text(); + } + + DPRINT << ": m_divertCommand.iNumber " + << m_divertCommand.iNumber; + if (m_divertCommand.iNumber.isEmpty()) { + CpPhoneNotes::instance()->showNotificationDialog(hbTrId("txt_phone_info_invalid_phone_number")); + } + } + if (m_dialog) { + m_dialog->deleteLater(); + m_dialog = NULL; } - if (m_voiceNumberEditor) { - delete m_voiceNumberEditor; - m_voiceNumberEditor = NULL; - } + nextPhaseForActivateDivert(!cancelled); - m_eventLoop->quit(); DPRINT << ": OUT"; } @@ -890,7 +927,7 @@ if (0 == result) { if (!CpPhoneNotes::instance()->noteShowing()) { CpPhoneNotes::instance()->showGlobalProgressNote( - m_activeProgressNoteId, hbTrId("txt_phone_info_requesting")); + m_activeProgressNoteId, hbTrId("txt_common_info_requesting")); } } else { handleDivertingError(result); @@ -902,52 +939,41 @@ /*! CpDivertPluginGroup::popUpTimerQuery. */ -bool CpDivertPluginGroup::popUpTimerQuery(int &timeout) +void CpDivertPluginGroup::popUpTimerQuery() { DPRINT << ": IN"; - Q_UNUSED(timeout); + + m_divertCommand.iNoReplyTimer = 0; + + QScopedPointer dialog(createDialog(hbTrId("txt_phone_title_delay"))); + HbListWidget *list = new HbListWidget(dialog.data()); - bool requestOK(false); - m_divertTimeout = 0; + addItemToListWidget(list, hbTrId("txt_phone_list_5_seconds"), 5 ); + addItemToListWidget(list, hbTrId("txt_phone_list_10_seconds"), 10); + addItemToListWidget(list, hbTrId("txt_phone_list_15_seconds"), 15); + addItemToListWidget(list, hbTrId("txt_phone_list_20_seconds"), 20); + addItemToListWidget(list, hbTrId("txt_phone_list_25_seconds"), 25); + addItemToListWidget(list, hbTrId("txt_phone_list_30_seconds"), 30); - if (!m_eventLoop->isRunning()) { - HbDialog *dialog = createDialog(hbTrId("txt_phone_title_delay")); - - if (m_popupTimerList) { - m_popupTimerList = new HbListWidget(dialog); - - addItemToListWidget(m_popupTimerList, hbTrId("txt_phone_list_5_seconds"), 5 ); - addItemToListWidget(m_popupTimerList, hbTrId("txt_phone_list_10_seconds"), 10); - addItemToListWidget(m_popupTimerList, hbTrId("txt_phone_list_15_seconds"), 15); - addItemToListWidget(m_popupTimerList, hbTrId("txt_phone_list_20_seconds"), 20); - addItemToListWidget(m_popupTimerList, hbTrId("txt_phone_list_25_seconds"), 25); - addItemToListWidget(m_popupTimerList, hbTrId("txt_phone_list_30_seconds"), 30); - - // Connect list item activation signal to close the popup - QObject::connect( - m_popupTimerList, SIGNAL(activated(HbListWidgetItem*)), - dialog, SLOT(close()), - Qt::UniqueConnection); - } - - // Sets the "Cancel"-action/button - HbAction *cancelAction = new HbAction(hbTrId("txt_common_button_cancel")); - dialog->addAction(cancelAction); - dialog->setContentWidget(m_popupTimerList); + // Connect list item activation signal to close the popup + QObject::connect( + list, SIGNAL(activated(HbListWidgetItem*)), + dialog.data(), SLOT(close()), + Qt::UniqueConnection); - dialog->open(this, SLOT(popUpTimerQueryClosed(HbAction *))); - - QPointer guard = this; - m_eventLoop->exec(); - if (guard.isNull()) { - requestOK = false; - } else if (m_divertTimeout > 0) { - requestOK = true; - } + // Sets the "Cancel"-action/button + HbAction *cancelAction = new HbAction(hbTrId("txt_common_button_cancel")); + dialog->addAction(cancelAction); + dialog->setContentWidget(list); + + dialog->open(this, SLOT(popUpTimerQueryClosed(HbAction *))); + if (m_dialog) { + m_dialog->deleteLater(); + m_dialog = NULL; } + m_dialog = dialog.take(); - DPRINT << ": OUT : requestOK :" << requestOK; - return requestOK; + DPRINT << ": OUT"; } /*! @@ -955,22 +981,28 @@ */ void CpDivertPluginGroup::popUpTimerQueryClosed(HbAction* action) { + DPRINT << ": IN"; + // If not cancel action selected + bool cancelled(true); if (!action) { + cancelled = false; // Update the view with selected text - if (m_popupTimerList->currentItem()) { - m_divertTimeout = - m_popupTimerList->currentItem()->data().toInt(); + HbListWidget *list = qobject_cast(m_dialog->contentWidget()); + if (list && list->currentItem()) { + m_divertCommand.iNoReplyTimer = + list->currentItem()->data().toInt(); } } - else { - DPRINT << ": Cancel"; + + if (m_dialog) { + m_dialog->deleteLater(); + m_dialog = NULL; } + + nextPhaseForActivateDivert(!cancelled); - DPRINT << ": quit eventloop"; - m_eventLoop->quit(); - - DPRINT << ": OUT: timeout: " << m_divertTimeout; + DPRINT << ": OUT: timeout: " << m_divertCommand.iNoReplyTimer; } @@ -1004,8 +1036,6 @@ bsc = AllBearer; } - - DPRINT << ": OUT : bsc :" << bsc; return bsc; } @@ -1074,9 +1104,9 @@ DPRINT << ": IN"; // all calls divert activation deactivates automatically other diverts - QVariant itemState = m_DataItemVoiceAllCalls->contentWidgetData("state"); + QVariant itemState = m_DataItemVoiceAllCalls->contentWidgetData("checkState"); if ((itemState.isValid()) && - (itemState.toInt() == CpDivertSelectionCustomitem::Enabled)) { + (itemState.toInt() == Qt::Checked)) { deActivateDependentDivertOption(m_DataItemVoiceIfBusy); deActivateDependentDivertOption(m_DataItemVoiceIfNotAnswered); deActivateDependentDivertOption(m_DataItemVoiceIfOutOfReach); @@ -1090,9 +1120,9 @@ } // all calls divert activation deactivates automatically other diverts - itemState = m_DataItemVideoAllCalls->contentWidgetData("state"); + itemState = m_DataItemVideoAllCalls->contentWidgetData("checkState"); if ((itemState.isValid()) && - (itemState.toInt() == CpDivertSelectionCustomitem::Enabled)) { + (itemState.toInt() == Qt::Checked)) { deActivateDependentDivertOption(m_DataItemVideoIfBusy); deActivateDependentDivertOption(m_DataItemVideoIfNotAnswered); deActivateDependentDivertOption(m_DataItemVideoIfOutOfReach); @@ -1117,13 +1147,21 @@ void CpDivertPluginGroup::deActivateDependentDivertOption( CpDivertItemData* item) const { - QVariant itemState = item->contentWidgetData("state"); - if ((itemState.isValid()) && - (itemState == CpDivertSelectionCustomitem::Enabled)) { - item->setContentWidgetData( - "state", CpDivertSelectionCustomitem::Deactivated); + DPRINT << ": IN"; + + QVariant itemState = item->contentWidgetData("checkState"); + if ((itemState.isValid()) && (itemState == Qt::Checked)) { + item->setContentWidgetData("checkState", Qt::Unchecked); + item->setContentWidgetData("text", QString("")); + + if (!item->description().isEmpty()) { + item->setDescription( + hbTrId("txt_phone_setlabel_divert_delay_ln_seconds", 0)); + } } item->setEnabled(false); + + DPRINT << ": OUT"; } /*! @@ -1132,13 +1170,15 @@ void CpDivertPluginGroup::activateDependentDivertOption( CpDivertItemData* item, bool fetchFromNetwork) { - if ((CpDivertSelectionCustomitem::Deactivated == - item->contentWidgetData("state").toInt()) && + DPRINT << ": IN"; + + if ((Qt::Unchecked == item->contentWidgetData("checkState").toInt()) && fetchFromNetwork) { - addToDivertingRequestQueue( - CheckDivertStatus, *item); + addToDivertingRequestQueue(CheckDivertStatus, *item); } item->setEnabled(true); + + DPRINT << ": OUT"; } /*! @@ -1152,31 +1192,28 @@ // CFNrc before concluding that not available divert is enabled, because // some networks may not return divert number for inactive diverts. int cfbState = - m_DataItemVoiceIfBusy->contentWidgetData("state").toInt(); + m_DataItemVoiceIfBusy->contentWidgetData("checkState").toInt(); int cfnryState = - m_DataItemVoiceIfNotAnswered->contentWidgetData("state").toInt(); + m_DataItemVoiceIfNotAnswered->contentWidgetData("checkState").toInt(); int cfnrcState = - m_DataItemVoiceIfOutOfReach->contentWidgetData("state").toInt(); + m_DataItemVoiceIfOutOfReach->contentWidgetData("checkState").toInt(); QVariant cfbNumber = - m_DataItemVoiceIfBusy->contentWidgetData("number"); + m_DataItemVoiceIfBusy->contentWidgetData("text"); QVariant cfnryNumber = - m_DataItemVoiceIfNotAnswered->contentWidgetData("number"); + m_DataItemVoiceIfNotAnswered->contentWidgetData("text"); QVariant cfnrcNumber = - m_DataItemVoiceIfOutOfReach->contentWidgetData("number"); + m_DataItemVoiceIfOutOfReach->contentWidgetData("text"); if ((cfbNumber == cfnryNumber) && (cfbNumber == cfnrcNumber) && (cfbState == cfnryState) && (cfbState == cfnrcState)) { m_DataItemVoiceIfNotAvailable->setContentWidgetData( - "number", m_DataItemVoiceIfBusy->contentWidgetData("number")); - m_DataItemVoiceIfNotAvailable->setContentWidgetData( - "timeout", m_DataItemVoiceIfNotAnswered->contentWidgetData("timeout")); + "text", m_DataItemVoiceIfBusy->contentWidgetData("text")); m_DataItemVoiceIfNotAvailable->setContentWidgetData( - "state", m_DataItemVoiceIfBusy->contentWidgetData("state")); + "checkState", m_DataItemVoiceIfBusy->contentWidgetData("checkState")); } else { - m_DataItemVoiceIfNotAvailable->setContentWidgetData("number", ""); - m_DataItemVoiceIfNotAvailable->setContentWidgetData("timeout", 0); + m_DataItemVoiceIfNotAvailable->setContentWidgetData("text", ""); m_DataItemVoiceIfNotAvailable->setContentWidgetData( - "state", CpDivertSelectionCustomitem::Disabled); + "checkState", Qt::Unchecked); } // Item dimming @@ -1190,32 +1227,28 @@ // CFNrc before concluding that not available divert is enabled, because // some networks may not return divert number for inactive diverts. cfbState = - m_DataItemVideoIfBusy->contentWidgetData("state").toInt(); + m_DataItemVideoIfBusy->contentWidgetData("checkState").toInt(); cfnryState = - m_DataItemVideoIfNotAnswered->contentWidgetData("state").toInt(); + m_DataItemVideoIfNotAnswered->contentWidgetData("checkState").toInt(); cfnrcState = - m_DataItemVideoIfOutOfReach->contentWidgetData("state").toInt(); + m_DataItemVideoIfOutOfReach->contentWidgetData("checkState").toInt(); cfbNumber = - m_DataItemVideoIfBusy->contentWidgetData("number"); + m_DataItemVideoIfBusy->contentWidgetData("text"); cfnryNumber = - m_DataItemVideoIfNotAnswered->contentWidgetData("number"); + m_DataItemVideoIfNotAnswered->contentWidgetData("text"); cfnrcNumber = - m_DataItemVideoIfOutOfReach->contentWidgetData("number"); + m_DataItemVideoIfOutOfReach->contentWidgetData("text"); if ((cfbNumber == cfnryNumber) && (cfbNumber == cfnrcNumber) && (cfbState == cfnryState) && (cfbState == cfnrcState)) { m_DataItemVideoIfNotAvailable->setContentWidgetData( - "number", m_DataItemVideoIfBusy->contentWidgetData("number")); + "text", m_DataItemVideoIfBusy->contentWidgetData("text")); m_DataItemVideoIfNotAvailable->setContentWidgetData( - "timeout", m_DataItemVideoIfNotAnswered->contentWidgetData("timeout")); - m_DataItemVideoIfNotAvailable->setContentWidgetData( - "state", m_DataItemVideoIfBusy->contentWidgetData("state")); + "checkState", m_DataItemVideoIfBusy->contentWidgetData("checkState")); } else { - m_DataItemVideoIfNotAvailable->setContentWidgetData("number", ""); - m_DataItemVideoIfNotAvailable->setContentWidgetData("timeout", 0); + m_DataItemVideoIfNotAvailable->setContentWidgetData("text", ""); m_DataItemVideoIfNotAvailable->setContentWidgetData( - "state", CpDivertSelectionCustomitem::Disabled); - + "checkState", Qt::Unchecked); } // Item dimming @@ -1227,4 +1260,60 @@ DPRINT << ": OUT"; } +void CpDivertPluginGroup::nextPhaseForActivateDivert(bool ok) +{ + DPRINT << ": IN"; + + if (ok) { + switch (m_activateDivertPhase) { + case PopUpVoiceNumberListQueryPhase: { + CpDivertRequestQueueItem request = m_divertRequestQueue.head(); + if (request.item->property("needTimeoutInfo").toBool()) { + m_activateDivertPhase = PopUpTimerQueryPhase; + popUpTimerQuery(); + } else { + m_activateDivertPhase = NonePhase; + setCallDiverting(m_divertCommand); + } + } + break; + case PopUpTimerQueryPhase: { + m_activateDivertPhase = NonePhase; + setCallDiverting(m_divertCommand); + } + default: + DPRINT << "Error: unknown enum value"; + break; + } + } else { + // Query was cancelled + revertItemData( + m_divertCommand.iServiceGroup, + m_divertCommand.iCondition); + m_divertRequestQueue.clear(); + m_activateDivertPhase = NonePhase; + } + + DPRINT << ": OUT"; +} + +/*! + CpDivertPluginGroup::itemShown. + */ +bool CpDivertPluginGroup::isDivertSettingsItem(HbDataFormModelItem* modelItem) { + return ( + modelItem == m_DataItemVoiceAllCalls || + modelItem == m_DataItemVoiceIfBusy || + modelItem == m_DataItemVoiceIfNotAnswered || + modelItem == m_DataItemVoiceIfOutOfReach || + modelItem == m_DataItemVoiceIfNotAvailable || + + modelItem == m_DataItemVideoAllCalls || + modelItem == m_DataItemVideoIfBusy || + modelItem == m_DataItemVideoIfNotAnswered || + modelItem == m_DataItemVideoIfOutOfReach || + modelItem == m_DataItemVideoIfNotAvailable + ); +} + // End of File. diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/divertplugin/src/cpdivertplugingroup.h --- a/phonesettings/cpphonesettingsplugins/divertplugin/src/cpdivertplugingroup.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/divertplugin/src/cpdivertplugingroup.h Wed Jun 23 18:12:20 2010 +0300 @@ -36,6 +36,7 @@ class CpDivertItemData; class QEventLoop; class HbLineEdit; +class HbDataFormModelItem; using namespace CpTelephonyUtils; @@ -60,6 +61,13 @@ CpDivertItemData *item; }; + // Activate divert phases + enum ActivateDivertPhases + { + NonePhase, + PopUpVoiceNumberListQueryPhase, + PopUpTimerQueryPhase + }; public: @@ -134,14 +142,14 @@ /** Show to user divert number query list. */ - bool popUpVoiceNumberListQuery( - const QString& heading, QString& result, PsServiceGroup serviceGroup); + void popUpVoiceNumberListQuery( + const QString& heading, PsServiceGroup serviceGroup); /** Show to user number query. */ void popUpNumberEditor( - const QString& heading, QString& result); + const QString& heading); /** @@ -152,7 +160,7 @@ /** Show to user divert time out query list. */ - bool popUpTimerQuery(int &timeout); + void popUpTimerQuery(); /** Desides which bsc parameters to use. @@ -231,6 +239,10 @@ */ void updateNotAvailableDivertOption(); + void nextPhaseForActivateDivert(bool ok); + + bool isDivertSettingsItem(HbDataFormModelItem* modelItem); + private: // data // Setting wrappers @@ -266,14 +278,10 @@ CpItemDataHelper &m_helper; - int m_divertTimeout; - - HbListWidget *m_voiceNumberList; - HbListWidget *m_popupTimerList; - QString m_divertNumber; - HbLineEdit *m_voiceNumberEditor; - QEventLoop *m_eventLoop; - + ActivateDivertPhases m_activateDivertPhase; + PSCallDivertingCommand m_divertCommand; + int m_timerId; + HbDialog *m_dialog; }; #endif // CPDIVERTPLUGINGROUP_H diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/divertplugin/src/cpdivertselectioncustomitem.cpp --- a/phonesettings/cpphonesettingsplugins/divertplugin/src/cpdivertselectioncustomitem.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,189 +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 "cpdivertselectioncustomitem.h" -#include -#include -#include -#include - - -/*! - CpDivertSelectionCustomitem::CpDivertSelectionCustomitem. - */ -CpDivertSelectionCustomitem::CpDivertSelectionCustomitem( - QGraphicsItem *parent /**=0*/, - Qt::WindowFlags wFlags /**=0*/): - HbWidget(parent, wFlags), - layout(NULL), - checkbox(NULL), - timeoutLabel(NULL), - timeoutValueLabel(NULL), - m_state(Disabled) -{ - DPRINT; - - layout = new QGraphicsGridLayout(this); - layout->setSpacing(0); - layout->setContentsMargins(0,0,0,0); - layout->setRowMaximumHeight(0,0); - layout->setRowMaximumHeight(1,0); - - checkbox = new HbCheckBox(this); - HbStyle::setItemName(checkbox, "dataItem_ContentWidget"); - - layout->addItem(checkbox, 0, 0, 1, 2); - connect(checkbox,SIGNAL(clicked()), this, SIGNAL(clicked())); - - timeoutLabel = new HbLabel(this); - HbStyle::setItemName(timeoutLabel, "dataItem_ContentWidget"); - timeoutLabel->setAlignment(Qt::AlignRight); - layout->addItem(timeoutLabel, 1, 0); - - timeoutLabel->hide(); - timeoutValueLabel = new HbLabel(this); - HbStyle::setItemName(timeoutValueLabel, "dataItem_ContentWidget"); - timeoutValueLabel->hide(); - layout->addItem(timeoutValueLabel, 1, 1); - - setLayout(layout); -} - - -/*! - CpDivertSelectionCustomitem::~CpDivertSelectionCustomitem. - */ -CpDivertSelectionCustomitem::~CpDivertSelectionCustomitem() -{ - DPRINT; -} - - -/*! - CpDivertSelectionCustomitem::number. - */ -const QString CpDivertSelectionCustomitem::number() const -{ - DPRINT; - return checkbox->text(); -} - - -/*! - CpDivertSelectionCustomitem::setNumber. - */ -void CpDivertSelectionCustomitem::setNumber(const QString& number) -{ - DPRINT << number; - checkbox->setText(number); -} - - -/*! - CpDivertSelectionCustomitem::timeout. - */ -int CpDivertSelectionCustomitem::timeout() const -{ - DPRINT; - return timeoutValueLabel->plainText().toInt(); -} - - -/*! - CpDivertSelectionCustomitem::setTimeout. - */ -void CpDivertSelectionCustomitem::setTimeout(int timeout) -{ - DPRINT << timeout; - timeoutValueLabel->setPlainText(QString::number(timeout)); -} - - -/*! - CpDivertSelectionCustomitem::timeoutText. - */ -const QString CpDivertSelectionCustomitem::timeoutText() const -{ - DPRINT; - return timeoutLabel->plainText(); -} - - -/*! - CpDivertSelectionCustomitem::setTimeoutText. - */ -void CpDivertSelectionCustomitem::setTimeoutText( const QString& text ) -{ - DPRINT << text; - timeoutLabel->setPlainText(text); - - if (text != QString("")) { - timeoutLabel->show(); - timeoutValueLabel->show(); - - } else { - timeoutLabel->hide(); - timeoutValueLabel->hide(); - } -} - - -/*! - CpDivertSelectionCustomitem::state. - */ -int CpDivertSelectionCustomitem::state() const -{ - DPRINT << m_state; - return m_state; -} - - -/*! - CpDivertSelectionCustomitem::setState. - */ -void CpDivertSelectionCustomitem::setState(int state) -{ - DPRINT << state; - m_state = state; - updateCheckState(); -} - - -/*! - CpDivertSelectionCustomitem::updateCheckState. - */ -void CpDivertSelectionCustomitem::updateCheckState() -{ - DPRINT << m_state; - - switch (m_state) { - case Enabled: - checkbox->setCheckState(Qt::Checked); - break; - case Deactivated: - setNumber(QString("")); - setTimeout(0); - //intended fall-through - case Disabled: - checkbox->setCheckState(Qt::Unchecked); - break; - default: - break; - } -} - -// End of File. diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/divertplugin/src/cpdivertselectioncustomitem.h --- a/phonesettings/cpphonesettingsplugins/divertplugin/src/cpdivertselectioncustomitem.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,83 +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: - * - */ - -#ifndef CPDIVERTSELECTIONCUSTOMITEM_H -#define CPDIVERTSELECTIONCUSTOMITEM_H - -#include - -class QGraphicsGridLayout; -class HbCheckBox; -class HbLabel; - -class CpDivertSelectionCustomitem : public HbWidget -{ - Q_OBJECT - Q_PROPERTY(QString number READ number WRITE setNumber) - Q_PROPERTY(QString timeoutText READ timeoutText WRITE setTimeoutText) - Q_PROPERTY(int timeout READ timeout WRITE setTimeout) - Q_PROPERTY(int state READ state WRITE setState) - -public: - enum State { - /** Divert is registered and activated.*/ - Enabled, - /** Divert is registered but inactive.*/ - Deactivated, - /** Divert is not registered.*/ - Disabled - }; - -public: - CpDivertSelectionCustomitem( - QGraphicsItem *parent=0, - Qt::WindowFlags wFlags=0); - - ~CpDivertSelectionCustomitem(); - - const QString number() const; - - void setNumber( const QString& number ); - - int timeout() const; - - void setTimeout( int timeout); - - const QString timeoutText() const; - - void setTimeoutText( const QString& text ); - - int state() const; - - void setState( int state); - -signals: - void clicked(); - -private: - void removeItemFromLayout( QGraphicsWidget* item ); - void updateCheckState(); - -private: - QGraphicsGridLayout *layout; - HbCheckBox *checkbox; - HbLabel *timeoutLabel; - HbLabel *timeoutValueLabel; - int m_state; -}; - -#endif // CPDIVERTSELECTIONCUSTOMITEM_H diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/divertplugin/src/cpdivertselectionitem.cpp --- a/phonesettings/cpphonesettingsplugins/divertplugin/src/cpdivertselectionitem.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,96 +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 "cpdivertselectionitem.h" -#include "cpdivertselectioncustomitem.h" -#include -#include -#include -#include - - - -CpDivertSelectionItem::CpDivertSelectionItem(QGraphicsItem *parent ) -: HbDataFormViewItem(parent) -{ - DPRINT; -} - -CpDivertSelectionItem::~CpDivertSelectionItem() -{ - DPRINT; -} - -HbAbstractViewItem* CpDivertSelectionItem::createItem() -{ - DPRINT; - return new CpDivertSelectionItem(*this); -} - -bool CpDivertSelectionItem::canSetModelIndex(const QModelIndex &index) const -{ - DPRINT << "index:" << index; - int type = index.data(HbDataFormModelItem::ItemTypeRole).toInt(); - return type == CpDivertSelectionItemId; -} - -HbWidget *CpDivertSelectionItem::createCustomWidget() -{ - DPRINT << ": IN"; - - int type = modelIndex().data(HbDataFormModelItem::ItemTypeRole).toInt(); - - if (type == CpDivertSelectionItemId) { - CpDivertSelectionCustomitem *retWidget = - new CpDivertSelectionCustomitem(this); - - DPRINT << ": OUT, retWidget"; - return retWidget; - } - DPRINT << ": OUT, 0"; - return 0; -} - - -void CpDivertSelectionItem::restore() -{ - HbDataFormViewItem::restore(); - - if (dataItemContentWidget()) { - HbDataFormModelItem::DataItemType itemType = static_cast( - modelIndex().data(HbDataFormModelItem::ItemTypeRole).toInt()); - - if (CpDivertSelectionItemId == itemType) { - - QModelIndex itemIndex = modelIndex(); - HbDataFormModel *model = static_cast(itemView()->model()); - HbDataFormModelItem *modelItem = static_cast( - model->itemFromIndex(itemIndex)); - - const QMetaObject *metaObj = dataItemContentWidget()->metaObject(); - int count = metaObj->propertyCount(); - for (int i = 0; i < count; i++) { - QMetaProperty metaProperty = metaObj->property(i); - if (metaProperty.isValid() && metaProperty.isWritable()) { - metaProperty.write( - dataItemContentWidget(), - modelItem->contentWidgetData(metaProperty.name())); - } - } - } - } - -} diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/divertplugin/src/cpdivertselectionitem.h --- a/phonesettings/cpphonesettingsplugins/divertplugin/src/cpdivertselectionitem.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,42 +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: - * - */ - - -#ifndef CPDIVERTSELECTIONITEM_H -#define CPDIVERTSELECTIONITEM_H - -#include -#include - - -class CpDivertSelectionItem : public HbDataFormViewItem -{ - Q_OBJECT -public: - enum { CpDivertSelectionItemId = HbDataFormModelItem::CustomItemBase + 66 }; - - explicit CpDivertSelectionItem(QGraphicsItem *parent = 0); - virtual ~CpDivertSelectionItem(); - virtual HbAbstractViewItem* createItem(); - virtual bool canSetModelIndex(const QModelIndex &index) const; - void restore(); -protected: - virtual HbWidget* createCustomWidget(); -}; - -#endif //CPDIVERTSELECTIONITEM_H - diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/divertplugin/tsrc/run_auto_tests_qt.bat --- a/phonesettings/cpphonesettingsplugins/divertplugin/tsrc/run_auto_tests_qt.bat Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/divertplugin/tsrc/run_auto_tests_qt.bat Wed Jun 23 18:12:20 2010 +0300 @@ -169,7 +169,7 @@ :::::::::::::::::::::::::::::::::::::::::::::::::::::: :CALCULATECOVERAGE echo Calculating coverage -ctcpost %PATH_TO_COVERAGE_DATA%\*.sym | ctcmerge -i - -o profile.txt +ctcpost %PATH_TO_COVERAGE_DATA%\*.sym -p - | ctcmerge -i - -o profile.txt call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb goto end diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/divertplugin/tsrc/ut_cpdivertplugin/qtestmains60ui.h --- a/phonesettings/cpphonesettingsplugins/divertplugin/tsrc/ut_cpdivertplugin/qtestmains60ui.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/divertplugin/tsrc/ut_cpdivertplugin/qtestmains60ui.h Wed Jun 23 18:12:20 2010 +0300 @@ -41,6 +41,11 @@ mainWindow = new HbMainWindow;\ mainWindow->show(); \ int ret = QTest::qExec(&tc, 3, new_argv); \ +/* Core dump if HbIconLoader instance is not destroyed before the application instance. */ \ +/* HbIconLoader uses QCoreApplication::aboutToQuit() signal to destroy itself. */ \ +/* app.exec() where the signal is normally emitted is not called here. */ \ +/* So, invoking the signal explicitly. */ \ +QMetaObject::invokeMethod(app, "aboutToQuit", Qt::DirectConnection); \ delete mainWindow; \ delete app; \ return ret; \ diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/divertplugin/tsrc/ut_cpdivertplugin/ut_cpdivertplugin.cpp --- a/phonesettings/cpphonesettingsplugins/divertplugin/tsrc/ut_cpdivertplugin/ut_cpdivertplugin.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/divertplugin/tsrc/ut_cpdivertplugin/ut_cpdivertplugin.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -30,7 +30,6 @@ #include "cpitemdatahelper.h" #include "cpdivertitemdata.h" #include "psetwrappertypes.h" -#include "cpdivertselectioncustomitem.h" #define private public #include "cpdivertplugin.h" @@ -48,7 +47,7 @@ ~CPsetContainer(){}; }; -void fillNumber(QString& number) +void fillNumber(QString& number, PsService /*service*/) { number = "1234567"; } @@ -96,6 +95,9 @@ m_divertpluginGroup = qobject_cast(list.takeFirst()); QVERIFY(m_divertpluginGroup); + m_dataForm = new HbDataFormModel; + m_dataForm->appendDataFormItem(m_divertpluginGroup); + QVERIFY(verify()); } @@ -105,7 +107,10 @@ void UT_CpDivertPlugin::cleanup() { reset(); - delete m_divertpluginGroup; + delete m_dataForm; + m_dataForm = NULL; + + //delete m_divertpluginGroup; // dataForm owned m_divertpluginGroup = NULL; delete m_helper; @@ -148,23 +153,27 @@ void UT_CpDivertPlugin::t_changeDivertingStateRequested() { //except user cancels - appendAction("All voice calls:", selectAction, "Cancel"); + appendAction("txt_phone_setlabel_all_calls", selectAction, "Cancel"); expect("PSetCallDivertingWrapper::getDefaultNumbers"); - m_divertpluginGroup->m_DataItemVoiceAllCalls->setContentWidgetData("number", ""); + m_divertpluginGroup->m_DataItemVoiceAllCalls->setContentWidgetData("text", ""); m_divertpluginGroup->m_DataItemVoiceAllCalls->setContentWidgetData( - "state", CpDivertSelectionCustomitem::Disabled); + "checkState", Qt::Checked); m_divertpluginGroup->m_DataItemVoiceAllCalls->thisItemClicked(); + waitForQueueEmpty(); QVERIFY(verify()); //except user selects vmb - appendAction("All voice calls:", selectItem, "txt_phone_setlabel_voice_mbx"); + appendAction("txt_phone_setlabel_all_calls", selectItem, "txt_phone_setlabel_voice_mbx"); expect("PSetCallDivertingWrapper::getDefaultNumbers"); - expect("PSetCallDivertingWrapper::getVoiceMailBoxNumber").willOnce(invoke(fillNumber)); + expect("PSetCallDivertingWrapper::queryVoiceMailBoxNumber").willOnce(invoke(fillNumber)).returns(0); expect("SsSettingsWrapper::get"); expect("PSetCallDivertingWrapper::setCallDiverting"); expect("CpPhoneNotes::noteShowing").returns(false); expect("CpPhoneNotes::showGlobalProgressNote"); + m_divertpluginGroup->m_DataItemVoiceAllCalls->setContentWidgetData( + "checkState", Qt::Checked); m_divertpluginGroup->m_DataItemVoiceAllCalls->thisItemClicked(); + waitForQueueEmpty(); QVERIFY(verify()); // Verify item click PSCallDivertingCommand command; command.iNumber = "12345"; @@ -172,32 +181,32 @@ command.iCondition = qvariant_cast( m_divertpluginGroup->m_DataItemVoiceAllCalls->property("condition")); command.iServiceGroup = ServiceGroupVoice; - expect("CpPhoneNotes::showGlobalNote"); + expect("CpPhoneNotes::showNotificationDialog"); m_divertpluginGroup->handleDivertingChanged(command, false); expect("CpPhoneNotes::cancelNote"); m_divertpluginGroup->divertRequestProcessed(); QVERIFY(verify()); // Verify result processing //except user selects one of the default numbers - m_divertpluginGroup->m_DataItemVoiceAllCalls->setContentWidgetData("number",""); + m_divertpluginGroup->m_DataItemVoiceAllCalls->setContentWidgetData("text", ""); m_divertpluginGroup->m_DataItemVoiceAllCalls->setContentWidgetData( - "state", CpDivertSelectionCustomitem::Disabled); - appendAction("All voice calls:", selectItem, "0401234567"); + "checkState", Qt::Checked); + appendAction("txt_phone_setlabel_all_calls", selectItem, "0401234567"); expect("PSetCallDivertingWrapper::getDefaultNumbers"); expect("SsSettingsWrapper::get"); expect("PSetCallDivertingWrapper::setCallDiverting"); expect("CpPhoneNotes::noteShowing").returns(false); expect("CpPhoneNotes::showGlobalProgressNote"); m_divertpluginGroup->m_DataItemVoiceAllCalls->thisItemClicked(); + waitForQueueEmpty(); command.iNumber = "0401234567"; command.iStatus = DivertingStatusActive; command.iCondition = qvariant_cast( m_divertpluginGroup->m_DataItemVoiceAllCalls->property("condition")); command.iServiceGroup = ServiceGroupVoice; expect("CpPhoneNotes::cancelNote"); - expect("CpPhoneNotes::showGlobalNote"); + expect("CpPhoneNotes::showNotificationDialog"); expect("PSetCallDivertingWrapper::setNewDefaultNumber").with(QString("0401234567")); - expect("Tools::voipSupported").returns(false); m_divertpluginGroup->handleDivertingChanged(command, true); expect("CpPhoneNotes::cancelNote"); m_divertpluginGroup->divertRequestProcessed(); @@ -208,25 +217,32 @@ expect("PSetCallDivertingWrapper::setCallDiverting"); // Disable divert expect("CpPhoneNotes::noteShowing").returns(false); expect("CpPhoneNotes::showGlobalProgressNote"); + m_divertpluginGroup->m_DataItemVoiceAllCalls->setContentWidgetData( + "checkState", Qt::Unchecked); m_divertpluginGroup->m_DataItemVoiceAllCalls->thisItemClicked(); + waitForQueueEmpty(); command.iNumber = ""; command.iStatus = DivertingStatusInactive; command.iCondition = qvariant_cast( m_divertpluginGroup->m_DataItemVoiceAllCalls->property("condition")); command.iServiceGroup = ServiceGroupVoice; - expect("CpPhoneNotes::showGlobalNote"); + expect("CpPhoneNotes::showNotificationDialog"); m_divertpluginGroup->handleDivertingChanged(command, false); - expect("CpPhoneNotes::cancelNote"); + //expect("CpPhoneNotes::cancelNote"); m_divertpluginGroup->divertRequestProcessed(); QVERIFY(verify()); //except user selects other number, inserts number and cancels + /* BUG in framework (Crash in QGestureManager::getState due to QWeakPointer) */ + /* appendAction("All voice calls:", selectItem, "Other number"); appendAction("Number:", insertText, "12345"); appendAction("Number:", selectAction, "Cancel"); expect("PSetCallDivertingWrapper::getDefaultNumbers"); m_divertpluginGroup->m_DataItemVoiceAllCalls->thisItemClicked(); + waitForQueueEmpty(); QVERIFY(verify()); + */ } /*! @@ -234,22 +250,19 @@ */ void UT_CpDivertPlugin::t_itemShown() { - HbDataFormModel* model = - qobject_cast(m_divertpluginGroup->model()); - expect("PSetCallDivertingWrapper::getCallDivertingStatus"); expect("CpPhoneNotes::noteShowing").returns(false); expect("CpPhoneNotes::showGlobalProgressNote"); m_divertpluginGroup->itemShown( - model->indexFromItem(m_divertpluginGroup->m_DataItemVoiceAllCalls)); + m_dataForm->indexFromItem(m_divertpluginGroup->m_DataItemVoiceAllCalls)); m_divertpluginGroup->itemShown( - model->indexFromItem(m_divertpluginGroup->m_DataItemVoiceIfBusy)); + m_dataForm->indexFromItem(m_divertpluginGroup->m_DataItemVoiceIfBusy)); m_divertpluginGroup->itemShown( - model->indexFromItem(m_divertpluginGroup->m_DataItemVoiceIfNotAnswered)); + m_dataForm->indexFromItem(m_divertpluginGroup->m_DataItemVoiceIfNotAnswered)); m_divertpluginGroup->itemShown( - model->indexFromItem(m_divertpluginGroup->m_DataItemVoiceIfOutOfReach)); + m_dataForm->indexFromItem(m_divertpluginGroup->m_DataItemVoiceIfOutOfReach)); m_divertpluginGroup->itemShown( - model->indexFromItem(m_divertpluginGroup->m_DataItemVoiceIfNotAvailable)); + m_dataForm->indexFromItem(m_divertpluginGroup->m_DataItemVoiceIfNotAvailable)); QList list; PSCallDivertingStatus divertStatus; @@ -279,15 +292,15 @@ // Test, Do not check status again m_divertpluginGroup->itemShown( - model->indexFromItem(m_divertpluginGroup->m_DataItemVoiceAllCalls)); + m_dataForm->indexFromItem(m_divertpluginGroup->m_DataItemVoiceAllCalls)); m_divertpluginGroup->itemShown( - model->indexFromItem(m_divertpluginGroup->m_DataItemVoiceIfBusy)); + m_dataForm->indexFromItem(m_divertpluginGroup->m_DataItemVoiceIfBusy)); m_divertpluginGroup->itemShown( - model->indexFromItem(m_divertpluginGroup->m_DataItemVoiceIfNotAnswered)); + m_dataForm->indexFromItem(m_divertpluginGroup->m_DataItemVoiceIfNotAnswered)); m_divertpluginGroup->itemShown( - model->indexFromItem(m_divertpluginGroup->m_DataItemVoiceIfOutOfReach)); + m_dataForm->indexFromItem(m_divertpluginGroup->m_DataItemVoiceIfOutOfReach)); m_divertpluginGroup->itemShown( - model->indexFromItem(m_divertpluginGroup->m_DataItemVoiceIfNotAvailable)); + m_dataForm->indexFromItem(m_divertpluginGroup->m_DataItemVoiceIfNotAvailable)); QVERIFY(verify()); @@ -296,26 +309,30 @@ /*! UT_CpDivertPlugin::t_popUpTimerQuery */ -void UT_CpDivertPlugin::t_popUpTimerQuery() +/*void UT_CpDivertPlugin::t_popUpTimerQuery() { - appendAction("If not answered:", selectItem, "0401234567"); - appendAction("Time out", selectAction, "Cancel"); + appendAction("txt_phone_setlabel_if_not_answered", selectItem, "0401234567"); + appendAction("txt_phone_title_delay", selectAction, "Cancel"); expect("PSetCallDivertingWrapper::getDefaultNumbers"); - m_divertpluginGroup->m_DataItemVoiceIfNotAnswered->setContentWidgetData("number", ""); + m_divertpluginGroup->m_DataItemVoiceIfNotAnswered->setContentWidgetData("text", ""); m_divertpluginGroup->m_DataItemVoiceIfNotAnswered->setContentWidgetData( - "state", CpDivertSelectionCustomitem::Disabled); + "checkState", Qt::Checked); m_divertpluginGroup->m_DataItemVoiceIfNotAnswered->thisItemClicked(); + waitForQueueEmpty(); QVERIFY(verify()); - appendAction("If not answered:", selectItem, "Other number"); - appendAction("Number:", insertText, "12345"); - appendAction("Number:", selectAction, "OK"); - appendAction("Time out", selectItem, "15 second"); + appendAction("txt_phone_setlabel_if_not_answered", selectItem, "txt_phone_list_enter_number_manually"); + appendAction("txt_phone_info_number", insertText, "12345"); + appendAction("txt_phone_info_number", selectAction, "OK"); + appendAction("txt_phone_title_delay", selectItem, "txt_phone_list_15_seconds"); //except user chooses other number and inserts number and timeout expect("PSetCallDivertingWrapper::getDefaultNumbers"); expect("SsSettingsWrapper::get"); expect("PSetCallDivertingWrapper::setCallDiverting"); + m_divertpluginGroup->m_DataItemVoiceIfNotAnswered->setContentWidgetData( + "checkState", Qt::Checked); m_divertpluginGroup->m_DataItemVoiceIfNotAnswered->thisItemClicked(); + waitForQueueEmpty(); PSCallDivertingCommand command; command.iNumber = "12345"; command.iNoReplyTimer = 15; @@ -325,13 +342,16 @@ command.iServiceGroup = ServiceGroupVoice; expect("CpPhoneNotes::showGlobalNote"); m_divertpluginGroup->handleDivertingChanged(command, false); - expect("CpPhoneNotes::cancelNote"); +// expect("CpPhoneNotes::cancelNote"); m_divertpluginGroup->divertRequestProcessed(); QVERIFY(verify()); expect("SsSettingsWrapper::get"); expect("PSetCallDivertingWrapper::setCallDiverting"); + m_divertpluginGroup->m_DataItemVoiceIfNotAnswered->setContentWidgetData( + "checkState", Qt::Unchecked); m_divertpluginGroup->m_DataItemVoiceIfNotAnswered->thisItemClicked(); + waitForQueueEmpty(); command.iNumber = ""; command.iNoReplyTimer = 0; command.iStatus = DivertingStatusInactive; @@ -340,12 +360,12 @@ command.iServiceGroup = ServiceGroupVoice; expect("CpPhoneNotes::showGlobalNote"); m_divertpluginGroup->handleDivertingChanged(command, false); - expect("CpPhoneNotes::cancelNote"); + //expect("CpPhoneNotes::cancelNote"); m_divertpluginGroup->divertRequestProcessed(); QVERIFY(verify()); } - +*/ /*! UT_CpDivertPlugin::t_handleDivertingChanged */ @@ -355,18 +375,14 @@ c.iStatus = DivertingStatusActive; c.iServiceGroup = ServiceGroupAllTeleservices; - bool bRet = false; expect("PSetCallDivertingWrapper::setNewDefaultNumber"); - expect("Tools::voipSupported").returns(bRet); m_divertpluginGroup->handleDivertingChanged(c, true); QVERIFY(verify()); - bRet = true; c.iServiceGroup = ServiceGroupAllTeleservices; c.iCondition = DivertConditionUnconditional; expect("PSetCallDivertingWrapper::setNewDefaultNumber"); - expect("Tools::voipSupported").returns(bRet); m_divertpluginGroup->handleDivertingChanged(c, false); QVERIFY(verify()); @@ -510,7 +526,7 @@ HbListWidget *list = qobject_cast(d->contentWidget()); QVERIFY(list); - bool ok=true; + bool ok=false; HbListWidgetItem *itemObject = 0; for (int i=0; i < list->count();i++) { itemObject = list->item(i); @@ -524,6 +540,7 @@ QTest::qWait(50); } QTest::qWait(50); + break; } } @@ -539,7 +556,6 @@ { HbDialog* d = visibleDialog(dialog); QVERIFY(d); - QAction* o; bool ok=false; foreach (o, d->actions()) { @@ -552,6 +568,7 @@ QTest::qWait(50); } QTest::qWait(50); + break; } } QVERIFY(ok); @@ -569,9 +586,23 @@ executeAction(*actionQueue.takeFirst()); if (actionQueue.count()) { startTimer(1000); + } else { + emit queueEmpty(); } qDebug() << "timerEvent, OUT"; } +/*! + UT_CpDivertPlugin::waitForQueueEmpty + */ +void UT_CpDivertPlugin::waitForQueueEmpty() +{ + if (actionQueue.count()) { + QSignalSpy spy(this, SIGNAL(queueEmpty())); + while (spy.count() == 0) + QTest::qWait(200); + } +} + QTEST_MAIN_S60UI(UT_CpDivertPlugin) diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/divertplugin/tsrc/ut_cpdivertplugin/ut_cpdivertplugin.h --- a/phonesettings/cpphonesettingsplugins/divertplugin/tsrc/ut_cpdivertplugin/ut_cpdivertplugin.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/divertplugin/tsrc/ut_cpdivertplugin/ut_cpdivertplugin.h Wed Jun 23 18:12:20 2010 +0300 @@ -25,6 +25,7 @@ class CpDivertPluginGroup; class CpItemDataHelper; class HbDialog; +class HbDataFormModel; class UT_CpDivertPlugin : public QObject, MockService { @@ -37,21 +38,20 @@ private slots: void init(); + void cleanup(); void t_createSettingFormItemData(); void t_changeDivertingStateRequested(); void t_itemShown(); - void t_popUpTimerQuery(); void t_handleDivertingChanged(); void t_handleDivertingStatus(); void t_handleDivertingError(); - - void cleanup(); - + void t_memleak(); +// void t_popUpTimerQuery(); private: @@ -82,12 +82,17 @@ void doAndVerifyAction( const QString& dialog, const QString& action ); void selectItemFromListWidget( const QString& dialog, const QString& item ); void timerEvent( QTimerEvent* event ); + void waitForQueueEmpty(); + +signals: + void queueEmpty(); private: CpDivertPlugin *m_divertplugin; CpDivertPluginGroup *m_divertpluginGroup; CpItemDataHelper *m_helper; + HbDataFormModel *m_dataForm; QQueue actionQueue; diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/divertplugin/tsrc/ut_cpdivertplugin/ut_cpdivertplugin.pro --- a/phonesettings/cpphonesettingsplugins/divertplugin/tsrc/ut_cpdivertplugin/ut_cpdivertplugin.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/divertplugin/tsrc/ut_cpdivertplugin/ut_cpdivertplugin.pro Wed Jun 23 18:12:20 2010 +0300 @@ -42,7 +42,6 @@ HEADERS += ../../src/cpdivertplugin.h \ ../../src/cpdivertplugingroup.h \ ../../src/cpdivertitemdata.h \ - ../../src/cpdivertselectionitem.h \ ../../../cptelephonyutils/inc/cpphonenotes.h \ ../../../cptelephonyutils/inc/cpplugincommon.h \ /epoc32/include/platform/mw/psetwrapper.h \ @@ -57,8 +56,7 @@ ../../src/cpdivertitemdata.cpp # mocks needed for testing -SOURCES += ../../../tsrc/mocks/mock_cpdivertselectionitem.cpp \ - ../../../tsrc/mocks/mock_psetcalldivertingwrapper.cpp \ +SOURCES += ../../../tsrc/mocks/mock_psetcalldivertingwrapper.cpp \ ../../../tsrc/mocks/mock_sssettingswrapper.cpp \ ../../../tsrc/mocks/mock_cpplugincommon.cpp \ ../../../tsrc/mocks/mock_cpphonenotes.cpp \ diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/divertplugin/tsrc/ut_cpdivertselectionitem/qtestmains60ui.h --- a/phonesettings/cpphonesettingsplugins/divertplugin/tsrc/ut_cpdivertselectionitem/qtestmains60ui.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,49 +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: -* -*/ - -#ifndef QTESTMAINS60 -#define QTESTMAINS60 - -#include -#include - -char *new_argv[3]; -HbMainWindow *mainWindow; -#define QTEST_MAIN_S60UI(TestObject) \ -int main(int argc, char *argv[]) \ -{ \ -HbApplication *app = new HbApplication(argc, argv); \ -QString str = "C:\\data\\" + QFileInfo(QCoreApplication::applicationFilePath()).baseName() + ".log"; \ -QByteArray bytes = str.toAscii(); \ -\ -char arg1[] = "-o"; \ -\ -new_argv[0] = argv[0]; \ -new_argv[1] = arg1; \ -new_argv[2] = bytes.data(); \ -\ -TestObject tc; \ -QResource::registerResource("../hbcore.rcc"); \ -mainWindow = new HbMainWindow;\ -mainWindow->show(); \ -int ret = QTest::qExec(&tc, 3, new_argv); \ -delete mainWindow; \ -delete app; \ -return ret; \ -} - -#endif diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/divertplugin/tsrc/ut_cpdivertselectionitem/ut_cpdivertselectionitem.cpp --- a/phonesettings/cpphonesettingsplugins/divertplugin/tsrc/ut_cpdivertselectionitem/ut_cpdivertselectionitem.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,150 +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 "ut_cpdivertselectionitem.h" -#include "qtestmains60ui.h" -#include -#include -#include -#include "cpdivertselectioncustomitem.h" - -#define protected public -#define private public -#include "cpdivertselectionitem.h" - - - -/*! - UT_CpDivertSelectionItem::UT_CpDivertSelectionItem - */ -UT_CpDivertSelectionItem::UT_CpDivertSelectionItem() - : m_item(NULL) -{ - -} - -/*! - UT_CpDivertSelectionItem::~UT_CpDivertSelectionItem - */ -UT_CpDivertSelectionItem::~UT_CpDivertSelectionItem() -{ - -} - -/*! - UT_CpDivertSelectionItem::init - */ -void UT_CpDivertSelectionItem::init() -{ - initialize(); - m_item = new CpDivertSelectionItem(); - m_form = new HbDataForm; - m_form->setModel(new HbDataFormModel); - - QList prototypes = m_form->itemPrototypes(); - prototypes.append(m_item); - m_form->setItemPrototypes(prototypes); -} - -/*! - UT_CpDivertSelectionItem::cleanup - */ -void UT_CpDivertSelectionItem::cleanup() -{ - reset(); - if (m_form) { - delete m_form->model(); - } - delete m_form; - m_form = NULL; -} - -/*! - UT_CpDivertSelectionItem::t_memleak - */ -void UT_CpDivertSelectionItem::t_memleak() -{ - -} - -/*! - UT_CpDivertSelectionItem::t_createItem - */ -void UT_CpDivertSelectionItem::t_createItem() -{ - delete m_item->createItem(); -} - -/*! - UT_CpDivertSelectionItem::t_canSetModelIndex - */ -void UT_CpDivertSelectionItem::t_canSetModelIndex() -{ - QModelIndex index = qobject_cast(m_form->model())->indexFromItem( - qobject_cast(m_form->model())->appendDataFormItem( - HbDataFormModelItem::TextItem, "test")); - - QVERIFY( !m_item->canSetModelIndex(index) ); - - index = qobject_cast(m_form->model())->indexFromItem( - qobject_cast(m_form->model())->appendDataFormItem( - static_cast( - CpDivertSelectionItem::CpDivertSelectionItemId), - "test2")); - - QVERIFY( m_item->canSetModelIndex(index) ); -} - -/*! - UT_CpDivertSelectionItem::t_createCustomWidget - */ -void UT_CpDivertSelectionItem::t_createCustomWidget() -{ - QVERIFY( !m_item->createCustomWidget() ); - - QModelIndex index = qobject_cast(m_form->model())->indexFromItem( - qobject_cast(m_form->model())->appendDataFormItem( - static_cast( - CpDivertSelectionItem::CpDivertSelectionItemId), - "test3")); - - m_item->setModelIndex(index); - HbWidget *widget=NULL; - QVERIFY( widget = m_item->createCustomWidget() ); - QVERIFY( widget->setProperty("number", "12345") ); - QVERIFY( widget->property("number").toString() == QString("12345") ); - - QVERIFY( widget->setProperty("timeoutText", "Delay:") ); - QVERIFY( widget->property("timeoutText").toString() == QString("Delay:") ); - - QVERIFY( widget->setProperty("timeout", "25") ); - QVERIFY( widget->property("timeout").toInt() == 25 ); - - QVERIFY( widget->setProperty("state", "0")); - QVERIFY( widget->property("state").toInt() - == CpDivertSelectionCustomitem::Enabled); - QVERIFY( widget->setProperty("state", "1")); - QVERIFY( widget->property("state").toInt() - == CpDivertSelectionCustomitem::Deactivated); - QVERIFY( widget->setProperty("state", "2")); - QVERIFY( widget->property("state").toInt() - == CpDivertSelectionCustomitem::Disabled); - - delete widget; -} - -QTEST_MAIN_S60UI(UT_CpDivertSelectionItem) diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/divertplugin/tsrc/ut_cpdivertselectionitem/ut_cpdivertselectionitem.h --- a/phonesettings/cpphonesettingsplugins/divertplugin/tsrc/ut_cpdivertselectionitem/ut_cpdivertselectionitem.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,55 +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: -* -*/ - -#ifndef UT_CPDIVERTSELECTIONITEM_H -#define UT_CPDIVERTSELECTIONITEM_H - -#include -#include - -class CpDivertSelectionItem; -class HbDataForm; - -class UT_CpDivertSelectionItem : public QObject, MockService -{ - Q_OBJECT - -public: - UT_CpDivertSelectionItem(); - ~UT_CpDivertSelectionItem(); - -private slots: - - void init(); - - void cleanup(); - - void t_memleak(); - - void t_createItem(); - void t_canSetModelIndex(); - void t_createCustomWidget(); -private: - // Not own - CpDivertSelectionItem *m_item; - - // Own - HbDataForm *m_form; - -}; - -#endif // UT_CPDIVERTSELECTIONITEM_H diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/divertplugin/tsrc/ut_cpdivertselectionitem/ut_cpdivertselectionitem.pro --- a/phonesettings/cpphonesettingsplugins/divertplugin/tsrc/ut_cpdivertselectionitem/ut_cpdivertselectionitem.pro Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,49 +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: Project file for building unit test component -# - -CONFIG += qtestlib hb -TEMPLATE = app -TARGET = -DEPENDPATH += . ../../src/ -INCLUDEPATH += . -INCLUDEPATH +=../../../cptelephonyutils/inc -DEFINES += - -QT -= gui -QT += testlib - -symbian: { - #CONFIG += no_icon - INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE - - LIBS += -lmocklib \ - -lsymbianmock \ - -lcpframework -} - -# test code -HEADERS += ut_cpdivertselectionitem.h -SOURCES += ut_cpdivertselectionitem.cpp - -# code to be tested -HEADERS += ../../src/cpdivertselectioncustomitem.h \ - ../../src/cpdivertselectionitem.h - -SOURCES += ../../src/cpdivertselectioncustomitem.cpp \ - ../../src/cpdivertselectionitem.cpp - -# mocks needed for testing -SOURCES += diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/eabi/cptelephonyutilsu.def --- a/phonesettings/cpphonesettingsplugins/eabi/cptelephonyutilsu.def Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,78 +0,0 @@ -EXPORTS - _ZN12CpPhoneNotes10cancelNoteEi @ 1 NONAME - _ZN12CpPhoneNotes11noteShowingEv @ 2 NONAME - _ZN12CpPhoneNotes11qt_metacallEN11QMetaObject4CallEiPPv @ 3 NONAME - _ZN12CpPhoneNotes11qt_metacastEPKc @ 4 NONAME - _ZN12CpPhoneNotes14showGlobalNoteERiRK7QStringN12HbMessageBox14MessageBoxTypeE @ 5 NONAME - _ZN12CpPhoneNotes16staticMetaObjectE @ 6 NONAME DATA 16 - _ZN12CpPhoneNotes19getStaticMetaObjectEv @ 7 NONAME - _ZN12CpPhoneNotes19passwordTextChangedEv @ 8 NONAME - _ZN12CpPhoneNotes19showGlobalErrorNoteERii @ 9 NONAME - _ZN12CpPhoneNotes20progressNoteCanceledEv @ 10 NONAME - _ZN12CpPhoneNotes20showBasicServiceListERK7QStringRK5QListIhE @ 11 NONAME - _ZN12CpPhoneNotes21launchNextNoteIfReadyEv @ 12 NONAME - _ZN12CpPhoneNotes21showCallDivertDetailsERK21PSCallDivertingStatus @ 13 NONAME - _ZN12CpPhoneNotes22activeNoteAboutToCloseEv @ 14 NONAME - _ZN12CpPhoneNotes22passwordQueryCompletedE7QStringb @ 15 NONAME - _ZN12CpPhoneNotes22showGlobalProgressNoteERiRK7QString @ 16 NONAME - _ZN12CpPhoneNotes23showPasswordQueryDialogERK7QStringRK10QValidatori @ 17 NONAME - _ZN12CpPhoneNotes26handleProgressNoteCanceledEv @ 18 NONAME - _ZN12CpPhoneNotes27finishedPasswordQueryDialogEP8HbAction @ 19 NONAME - _ZN12CpPhoneNotes8instanceEv @ 20 NONAME - _ZN12CpPhoneNotesC1Ev @ 21 NONAME - _ZN12CpPhoneNotesC2Ev @ 22 NONAME - _ZN12CpPhoneNotesD0Ev @ 23 NONAME - _ZN12CpPhoneNotesD1Ev @ 24 NONAME - _ZN12CpPhoneNotesD2Ev @ 25 NONAME - _ZN17CpSettingsWrapper11qt_metacallEN11QMetaObject4CallEiPPv @ 26 NONAME - _ZN17CpSettingsWrapper11qt_metacastEPKc @ 27 NONAME - _ZN17CpSettingsWrapper16showCallDurationEv @ 28 NONAME - _ZN17CpSettingsWrapper16staticMetaObjectE @ 29 NONAME DATA 16 - _ZN17CpSettingsWrapper18readSoftRejectTextER7QStringRb @ 30 NONAME - _ZN17CpSettingsWrapper19getStaticMetaObjectEv @ 31 NONAME - _ZN17CpSettingsWrapper19setShowCallDurationEb @ 32 NONAME - _ZN17CpSettingsWrapper19writeSoftRejectTextERK7QStringb @ 33 NONAME - _ZN17CpSettingsWrapper51isFeatureCallWaitingDistiquishNotProvisionedEnabledEv @ 34 NONAME - _ZN17CpSettingsWrapperC1EP7QObject @ 35 NONAME - _ZN17CpSettingsWrapperC2EP7QObject @ 36 NONAME - _ZN17CpSettingsWrapperD0Ev @ 37 NONAME - _ZN17CpSettingsWrapperD1Ev @ 38 NONAME - _ZN17CpSettingsWrapperD2Ev @ 39 NONAME - _ZN5Tools11qt_metacallEN11QMetaObject4CallEiPPv @ 40 NONAME - _ZN5Tools11qt_metacastEPKc @ 41 NONAME - _ZN5Tools13voipSupportedEv @ 42 NONAME - _ZN5Tools14videoSupportedEv @ 43 NONAME - _ZN5Tools16staticMetaObjectE @ 44 NONAME DATA 16 - _ZN5Tools19getStaticMetaObjectEv @ 45 NONAME - _ZN5Tools20errorCodeTextMappingEiR7QString @ 46 NONAME - _ZNK12CpPhoneNotes10metaObjectEv @ 47 NONAME - _ZNK12CpPhoneNotes17formatPhoneNumberE7QString @ 48 NONAME - _ZNK12CpPhoneNotes21basicServiceGroupNameEN16CpTelephonyUtils18BasicServiceGroupsE @ 49 NONAME - _ZNK17CpSettingsWrapper10metaObjectEv @ 50 NONAME - _ZNK17CpSettingsWrapper14isPhoneOfflineEv @ 51 NONAME - _ZNK17CpSettingsWrapper15readCenrepValueElm @ 52 NONAME - _ZNK17CpSettingsWrapper16readCenrepStringElm @ 53 NONAME - _ZNK17CpSettingsWrapper16writeCenrepValueElmRK8QVariant @ 54 NONAME - _ZNK17CpSettingsWrapper23numberGroupingSupportedEv @ 55 NONAME - _ZNK5Tools10metaObjectEv @ 56 NONAME - _ZTI12CpPhoneNotes @ 57 NONAME - _ZTI17CpSettingsWrapper @ 58 NONAME - _ZTI5Tools @ 59 NONAME - _ZTV12CpPhoneNotes @ 60 NONAME - _ZTV17CpSettingsWrapper @ 61 NONAME - _ZTV5Tools @ 62 NONAME - _ZN19CpPhoneLocalisation11qt_metacallEN11QMetaObject4CallEiPPv @ 63 NONAME - _ZN19CpPhoneLocalisation11qt_metacastEPKc @ 64 NONAME - _ZN19CpPhoneLocalisation16staticMetaObjectE @ 65 NONAME DATA 16 - _ZN19CpPhoneLocalisation17installTranslatorENS_17TranslationFileIdE @ 66 NONAME - _ZN19CpPhoneLocalisation17removeTranslatorsEv @ 67 NONAME - _ZN19CpPhoneLocalisation19getStaticMetaObjectEv @ 68 NONAME - _ZN19CpPhoneLocalisationC1EP7QObject @ 69 NONAME - _ZN19CpPhoneLocalisationC2EP7QObject @ 70 NONAME - _ZN19CpPhoneLocalisationD0Ev @ 71 NONAME - _ZN19CpPhoneLocalisationD1Ev @ 72 NONAME - _ZN19CpPhoneLocalisationD2Ev @ 73 NONAME - _ZNK19CpPhoneLocalisation10metaObjectEv @ 74 NONAME - _ZTI19CpPhoneLocalisation @ 75 NONAME - _ZTV19CpPhoneLocalisation @ 76 NONAME - diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/telephonyplugin/src/cptelephonypluginview.cpp --- a/phonesettings/cpphonesettingsplugins/telephonyplugin/src/cptelephonypluginview.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/telephonyplugin/src/cptelephonypluginview.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -92,7 +92,7 @@ QList items; CpPluginInterface *p(NULL); try { - p = CpPluginLoader::loadCpPlugin(plugin); + p = CpPluginLoader::loadCpPluginInterface(plugin); if (p && m_helper){ items = p->createSettingFormItemData(*m_helper); } diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/telephonyplugin/tsrc/run_auto_tests_qt.bat --- a/phonesettings/cpphonesettingsplugins/telephonyplugin/tsrc/run_auto_tests_qt.bat Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/telephonyplugin/tsrc/run_auto_tests_qt.bat Wed Jun 23 18:12:20 2010 +0300 @@ -169,7 +169,7 @@ :::::::::::::::::::::::::::::::::::::::::::::::::::::: :CALCULATECOVERAGE echo Calculating coverage -ctcpost %PATH_TO_COVERAGE_DATA%\*.sym | ctcmerge -i - -o profile.txt +ctcpost %PATH_TO_COVERAGE_DATA%\*.sym -p - | ctcmerge -i - -o profile.txt call ctc2html -t 70 -i profile.txt -o \coverage_result -nsb goto end diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/telephonyplugin/tsrc/ut_cptelephonyplugin/ut_cptelephonyplugin.pro --- a/phonesettings/cpphonesettingsplugins/telephonyplugin/tsrc/ut_cptelephonyplugin/ut_cptelephonyplugin.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/telephonyplugin/tsrc/ut_cptelephonyplugin/ut_cptelephonyplugin.pro Wed Jun 23 18:12:20 2010 +0300 @@ -32,7 +32,8 @@ LIBS += -lmocklib \ -lsymbianmock \ - -lcpframework + -lcpframework \ + -lcptelephonyutils } # test code diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/telephonyplugin/tsrc/ut_cptelephonypluginview/ut_cptelephonypluginview.cpp --- a/phonesettings/cpphonesettingsplugins/telephonyplugin/tsrc/ut_cptelephonypluginview/ut_cptelephonypluginview.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/telephonyplugin/tsrc/ut_cptelephonypluginview/ut_cptelephonypluginview.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -23,7 +23,6 @@ #include #include #include -#include #include "cptelephonypluginview.h" @@ -66,13 +65,15 @@ { initialize(); CpPluginInterface *nullPlugin=0; - expect("CpPluginLoader::loadCpPlugin").with(QString("cpcallsplugin")).returns(nullPlugin); + expect("CpPluginLoader::loadCpPluginInterface"). + with(QString("cpcallsplugin")).returns(nullPlugin); DummyPlugin *ret = new DummyPlugin; //ret = new DummyPlugin; QList list; list.append(new CpSettingFormItemData); - expect("CpPluginLoader::loadCpPlugin").with(QString("cpdivertplugin")).returns(ret); // cpnetworkplugin + expect("CpPluginLoader::loadCpPluginInterface"). + with(QString("cpdivertplugin")).returns(ret); // cpnetworkplugin expect("DummyPlugin::createSettingFormItemData").returns(list); m_callspluginview = new CpTelephonyPluginView; @@ -98,11 +99,13 @@ QList list; list.append(new CpSettingFormItemData); DummyPlugin *ret = new DummyPlugin; - expect("CpPluginLoader::loadCpPlugin").with(QString("cpcallsplugin")).returns(ret); + expect("CpPluginLoader::loadCpPluginInterface"). + with(QString("cpcallsplugin")).returns(ret); expect("DummyPlugin::createSettingFormItemData").returns(list); ret = new DummyPlugin; - expect("CpPluginLoader::loadCpPlugin").with(QString("cpdivertplugin")).returns(ret); + expect("CpPluginLoader::loadCpPluginInterface"). + with(QString("cpdivertplugin")).returns(ret); expect("DummyPlugin::createSettingFormItemData").returns(list); diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cmmanager.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cmmanager.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cmmanager.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -424,12 +424,12 @@ // ----------------------------------------------------------------------------- -// RCmManager::UncategorizedIconL +// RCmManager::GetUncategorizedIconL // ----------------------------------------------------------------------------- // -CGulIcon * RCmManager::UncategorizedIconL( ) const +HBufC * RCmManager::GetUncategorizedIconL( ) const { - SMC_MOCK_METHOD0( CGulIcon * ) + //SMC_MOCK_METHOD0( CGulIcon * ) } diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpbarringplugingroup.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpbarringplugingroup.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpbarringplugingroup.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -138,9 +138,9 @@ // CpBarringPluginGroup::changeBarringPasswordRequested // ----------------------------------------------------------------------------- // -void CpBarringPluginGroup::changeBarringPasswordRequested(bool checked) +void CpBarringPluginGroup::changeBarringPasswordRequested() { - SMC_MOCK_METHOD1( void, bool, checked) + SMC_MOCK_METHOD0( void ) } diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpbasesettingview.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpbasesettingview.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpbasesettingview.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -1,4 +1,4 @@ -/* +/* * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available @@ -45,23 +45,33 @@ // ----------------------------------------------------------------------------- -// CpBaseSettingView::setSettingForm +// CpBaseSettingView::returnValueDelivered // ----------------------------------------------------------------------------- // -void CpBaseSettingView::setSettingForm( - HbDataForm * settingForm ) +void CpBaseSettingView::returnValueDelivered( + const QVariant & returnValue ) { - + //SMC_MOCK_METHOD1( void, const QVariant &, returnValue ) } // ----------------------------------------------------------------------------- -// CpBaseSettingView::settingForm +// CpBaseSettingView::aboutToClose // ----------------------------------------------------------------------------- // -HbDataForm * CpBaseSettingView::settingForm( ) const +void CpBaseSettingView::aboutToClose( ) { - SMC_MOCK_METHOD0( HbDataForm * ) + SMC_MOCK_METHOD0( void ) } +// ----------------------------------------------------------------------------- +// CpBaseSettingView::close +// ----------------------------------------------------------------------------- +// +void CpBaseSettingView::close( ) + { + SMC_MOCK_METHOD0( void ) + } + + diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpcallsplugingroup.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpcallsplugingroup.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpcallsplugingroup.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -53,6 +53,17 @@ // ----------------------------------------------------------------------------- +// CpCallsPluginGroup::ownVideoInReceivedCallStateChanged +// ----------------------------------------------------------------------------- +// +void CpCallsPluginGroup::ownVideoInReceivedCallStateChanged( + int index ) + { + Q_UNUSED( index ) + } + + +// ----------------------------------------------------------------------------- // CpCallsPluginGroup::softRejectTextChanged // ----------------------------------------------------------------------------- // diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpdivertselectionitem.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpdivertselectionitem.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,87 +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 -#include -#include "cpdivertselectionitem.h" - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// CpDivertSelectionItem::CpDivertSelectionItem -// ----------------------------------------------------------------------------- -// -CpDivertSelectionItem::CpDivertSelectionItem( - QGraphicsItem * parent ) - //: - //HbDataFormViewItem( /*parent*/ ) - { - - } - - -// ----------------------------------------------------------------------------- -// CpDivertSelectionItem::~CpDivertSelectionItem -// ----------------------------------------------------------------------------- -// -CpDivertSelectionItem::~CpDivertSelectionItem( ) - { - - } - - -// ----------------------------------------------------------------------------- -// CpDivertSelectionItem::createItem -// ----------------------------------------------------------------------------- -// -HbAbstractViewItem * CpDivertSelectionItem::createItem( ) - { - SMC_MOCK_METHOD0( HbAbstractViewItem * ) - } - - -// ----------------------------------------------------------------------------- -// CpDivertSelectionItem::canSetModelIndex -// ----------------------------------------------------------------------------- -// -bool CpDivertSelectionItem::canSetModelIndex( - const QModelIndex & index ) const - { - SMC_MOCK_METHOD1( bool, const QModelIndex &, index ) - } - - -// ----------------------------------------------------------------------------- -// CpDivertSelectionItem::restore -// ----------------------------------------------------------------------------- -// -void CpDivertSelectionItem::restore( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// CpDivertSelectionItem::createCustomWidget -// ----------------------------------------------------------------------------- -// -HbWidget * CpDivertSelectionItem::createCustomWidget( ) - { - SMC_MOCK_METHOD0( HbWidget * ) - } - - diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpitemdatahelper.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpitemdatahelper.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpitemdatahelper.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -30,7 +30,7 @@ // ----------------------------------------------------------------------------- // CpItemDataHelper::CpItemDataHelper( - HbDataForm * form ) + HbDataForm * /*form*/ ) //: //QObject( /*form*/ ) { diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpnetworkplugin.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpnetworkplugin.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpnetworkplugin.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -15,6 +15,7 @@ * */ #include +#include #include "cpnetworkplugin.h" #include @@ -44,9 +45,22 @@ // CpNetworkPlugin::createSettingFormItemData // ----------------------------------------------------------------------------- // -QList CpNetworkPlugin::createSettingFormItemData( - CpItemDataHelper &itemDataHelper) const +QList CpNetworkPlugin::createSettingFormItemData( + CpItemDataHelper & itemDataHelper ) const { Q_UNUSED( itemDataHelper ) return QList (); } + + +// ----------------------------------------------------------------------------- +// CpNetworkPlugin::createSettingView +// ----------------------------------------------------------------------------- +// +CpBaseSettingView * CpNetworkPlugin::createSettingView( + const QVariant & hint ) const + { + SMC_MOCK_METHOD1( CpBaseSettingView *, const QVariant &, hint ) + } + + diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpnetworkpluginform.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpnetworkpluginform.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpnetworkpluginform.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -59,6 +59,46 @@ SMC_MOCK_METHOD0( void ) } + +// ----------------------------------------------------------------------------- +// CpNetworkPluginForm::showGlobalProgressNote +// ----------------------------------------------------------------------------- +// +void CpNetworkPluginForm::showGlobalProgressNote( + int & noteId, + const QString & text ) + { + SMC_MOCK_METHOD2( void, int &, noteId, + const QString &, text ) + } + + +// ----------------------------------------------------------------------------- +// CpNetworkPluginForm::showGlobalNote +// ----------------------------------------------------------------------------- +// +void CpNetworkPluginForm::showGlobalNote( + int & , + const QString & , + HbMessageBox::MessageBoxType ) + { + // SMC_MOCK_METHOD3( void, int &, noteId, + // const QString &, text, + // HbMessageBox::MessageBoxType, msgBoxType ) + } + + +// ----------------------------------------------------------------------------- +// CpNetworkPluginForm::cancelNote +// ----------------------------------------------------------------------------- +// +void CpNetworkPluginForm::cancelNote( + int noteId ) + { + SMC_MOCK_METHOD1( void, int, noteId ) + } + + // ----------------------------------------------------------------------------- // CpNetworkPluginForm::cellularDataUseHomeStateChanged // ----------------------------------------------------------------------------- @@ -96,10 +136,9 @@ // CpNetworkPluginForm::operatorSelectionStateChanged // ----------------------------------------------------------------------------- // -void CpNetworkPluginForm::operatorSelectionStateChanged( - bool index ) +void CpNetworkPluginForm::operatorSelectionStateChanged( ) { - SMC_MOCK_METHOD1( void, bool, index ) + SMC_MOCK_METHOD0( void ) } @@ -182,4 +221,14 @@ // PSetNetworkWrapper::RegistrationStatus &, status ) } +// ----------------------------------------------------------------------------- +// CpNetworkPluginForm::finishedManualSelectiondialog +// ----------------------------------------------------------------------------- +// +void CpNetworkPluginForm::finishedManualSelectiondialog( + HbAction* /*action*/ ) + { + // SMC_MOCK_METHOD1( void, HbAction *, action ) + } + diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpnetworkpluginview.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpnetworkpluginview.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpnetworkpluginview.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -25,7 +25,7 @@ // ----------------------------------------------------------------------------- // CpNetworkPluginView::CpNetworkPluginView( - QGraphicsItem * parent ) + QGraphicsItem * /*parent*/ ) : /*CpBaseSettingView(0, parent),*/ m_networkSettingsForm(0) diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpnetworkstatus.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpnetworkstatus.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,112 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include +#include "cpnetworkstatus.h" + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// CpNetworkStatus::CpNetworkStatus +// ----------------------------------------------------------------------------- +// +CpNetworkStatus::CpNetworkStatus( ) + //: + //QObject( /**/ ) + { + + } + + +// ----------------------------------------------------------------------------- +// CpNetworkStatus::~CpNetworkStatus +// ----------------------------------------------------------------------------- +// +CpNetworkStatus::~CpNetworkStatus( ) + { + + } + + +// ----------------------------------------------------------------------------- +// CpNetworkStatus::statusText +// ----------------------------------------------------------------------------- +// +QString CpNetworkStatus::statusText( ) const + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// CpNetworkStatus::statusIcon +// ----------------------------------------------------------------------------- +// +HbIcon CpNetworkStatus::statusIcon( ) const + { + SMC_MOCK_METHOD0( HbIcon ) + } + + +// ----------------------------------------------------------------------------- +// CpNetworkStatus::statusIconLocicalName +// ----------------------------------------------------------------------------- +// +QString CpNetworkStatus::statusIconLocicalName( ) const + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// CpNetworkStatus::setSettingFormItemData +// ----------------------------------------------------------------------------- +// +void CpNetworkStatus::setSettingFormItemData( + CpSettingFormItemData * data ) + { + //SMC_MOCK_METHOD1( void, CpSettingFormItemData *, data ) + } + + +// ----------------------------------------------------------------------------- +// CpNetworkStatus::networkNameChanged +// ----------------------------------------------------------------------------- +// +void CpNetworkStatus::networkNameChanged( + QSystemNetworkInfo::NetworkMode mode, + const QString & netName ) + { + //SMC_MOCK_METHOD2( void, QSystemNetworkInfo::NetworkMode, mode, + // const QString &, netName ) + } + + +// ----------------------------------------------------------------------------- +// CpNetworkStatus::networkStatusChanged +// ----------------------------------------------------------------------------- +// +void CpNetworkStatus::networkStatusChanged( + QSystemNetworkInfo::NetworkMode mode, + QSystemNetworkInfo::NetworkStatus status ) + { + //SMC_MOCK_METHOD2( void, QSystemNetworkInfo::NetworkMode, mode, + // QSystemNetworkInfo::NetworkStatus, status ) + } + + diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpphonelocalisation.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpphonelocalisation.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpphonelocalisation.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -25,7 +25,7 @@ // ----------------------------------------------------------------------------- // CpPhoneLocalisation::CpPhoneLocalisation( - QObject * parent ) + QObject * /*parent*/ ) //: //QObject( /*parent*/ ) { diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpphonenotes.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpphonenotes.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpphonenotes.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -90,19 +90,6 @@ // ----------------------------------------------------------------------------- -// CpPhoneNotes::showBasicServiceList -// ----------------------------------------------------------------------------- -// -void CpPhoneNotes::showBasicServiceList( - const QString & title, - const QList & basicServiceGroupIds ) - { - SMC_MOCK_METHOD2( void, const QString &, title, - const QList &, basicServiceGroupIds ) - } - - -// ----------------------------------------------------------------------------- // CpPhoneNotes::showCallDivertDetails // ----------------------------------------------------------------------------- // @@ -154,11 +141,20 @@ // ----------------------------------------------------------------------------- // void CpPhoneNotes::finishedPasswordQueryDialog( - HbAction * action ) + HbAction * /*action*/ ) { //SMC_MOCK_METHOD1( void, HbAction *, action ) } +// ----------------------------------------------------------------------------- +// CpPhoneNotes::showNotificationDialog +// ----------------------------------------------------------------------------- +// +void CpPhoneNotes::showNotificationDialog( + const QString & text ) + { + SMC_MOCK_METHOD1( void, const QString &, text ) + } // ----------------------------------------------------------------------------- // CpPhoneNotes::activeNoteAboutToClose diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpplugincommon.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpplugincommon.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpplugincommon.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -62,6 +62,27 @@ // ----------------------------------------------------------------------------- +// CpSettingsWrapper::readVtVideoSending +// ----------------------------------------------------------------------------- +// +int CpSettingsWrapper::readVtVideoSending( ) + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// CpSettingsWrapper::writeVtVideoSending +// ----------------------------------------------------------------------------- +// +int CpSettingsWrapper::writeVtVideoSending( + int value ) + { + SMC_MOCK_METHOD1( int, int, value ) + } + + +// ----------------------------------------------------------------------------- // CpSettingsWrapper::readSoftRejectText // ----------------------------------------------------------------------------- // @@ -118,6 +139,14 @@ SMC_MOCK_METHOD0( bool ) } +// ----------------------------------------------------------------------------- +// CpSettingsWrapper::isOngoingCall +// ----------------------------------------------------------------------------- +// +bool CpSettingsWrapper::isOngoingCall() const +{ + SMC_MOCK_METHOD0( bool ) +} // ----------------------------------------------------------------------------- // Tools::voipSupported diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cppluginloader.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cppluginloader.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cppluginloader.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -20,26 +20,21 @@ #include "cppluginloader.h" // ============================ MEMBER FUNCTIONS =============================== - // ----------------------------------------------------------------------------- -// CpPluginLoader::loadCpPlugin +// CpPluginLoader::loadCpPluginInterface // ----------------------------------------------------------------------------- // -CpPluginInterface * CpPluginLoader::loadCpPlugin( - const QString & pluginFile ) - { +CpPluginInterface *CpPluginLoader::loadCpPluginInterface(const QString &pluginFile) +{ SMC_MOCK_METHOD1( CpPluginInterface *, const QString &, pluginFile ) - } - +} // ----------------------------------------------------------------------------- -// CpPluginLoader::loadPlatCpPlugin +// CpPluginLoader::loadCpLauncherInterface // ----------------------------------------------------------------------------- // -CpPluginPlatInterface * CpPluginLoader::loadPlatCpPlugin( - const QString & pluginFile ) - { - SMC_MOCK_METHOD1( CpPluginPlatInterface *, const QString &, pluginFile ) - } +CpLauncherInterface *CpPluginLoader::loadCpLauncherInterface(const QString &pluginFile) +{ + SMC_MOCK_METHOD1( CpLauncherInterface *, const QString &, pluginFile ) +} - diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpsettingformentryitemdata.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpsettingformentryitemdata.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpsettingformentryitemdata.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -1,4 +1,4 @@ -/* +/* * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available @@ -68,6 +68,42 @@ // ----------------------------------------------------------------------------- +// CpSettingFormEntryItemData::CpSettingFormEntryItemData +// ----------------------------------------------------------------------------- +// +CpSettingFormEntryItemData::CpSettingFormEntryItemData( + EntryItemType type, + CpItemDataHelper & itemDataHelper, + const QString & text, + const QString & description, + const QString & iconName, + const HbDataFormModelItem * parent ) + //: + //CpSettingFormItemData( /*type, itemDataHelper, text, description, iconName, parent*/ ) + { + + } + + +// ----------------------------------------------------------------------------- +// CpSettingFormEntryItemData::CpSettingFormEntryItemData +// ----------------------------------------------------------------------------- +// +CpSettingFormEntryItemData::CpSettingFormEntryItemData( + EntryItemType type, + HbDataForm * dataForm, + const QString & text, + const QString & description, + const QString & iconName, + const HbDataFormModelItem * parent ) + //: + //CpSettingFormItemData( /*type, dataForm, text, description, iconName, parent*/ ) + { + + } + + +// ----------------------------------------------------------------------------- // CpSettingFormEntryItemData::~CpSettingFormEntryItemData // ----------------------------------------------------------------------------- // @@ -120,12 +156,33 @@ // ----------------------------------------------------------------------------- +// CpSettingFormEntryItemData::iconName +// ----------------------------------------------------------------------------- +// +QString CpSettingFormEntryItemData::iconName( ) const + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// CpSettingFormEntryItemData::setIconName +// ----------------------------------------------------------------------------- +// +void CpSettingFormEntryItemData::setIconName( + const QString & icon ) + { + SMC_MOCK_METHOD1( void, const QString &, icon ) + } + + +// ----------------------------------------------------------------------------- // CpSettingFormEntryItemData::entryItemIcon // ----------------------------------------------------------------------------- // HbIcon CpSettingFormEntryItemData::entryItemIcon( ) const { -// SMC_MOCK_METHOD0( HbIcon ) + SMC_MOCK_METHOD0( HbIcon ) } @@ -136,7 +193,17 @@ void CpSettingFormEntryItemData::setEntryItemIcon( const HbIcon & icon ) { -// SMC_MOCK_METHOD1( void, const HbIcon &, icon ) + SMC_MOCK_METHOD1( void, const HbIcon &, icon ) } +// ----------------------------------------------------------------------------- +// CpSettingFormEntryItemData::onLaunchView +// ----------------------------------------------------------------------------- +// +void CpSettingFormEntryItemData::onLaunchView( ) + { + SMC_MOCK_METHOD0( void ) + } + + diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbabstractitemview.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbabstractitemview.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbabstractitemview.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -17,8 +17,7 @@ #include #include #include - -HbScrollAreaPrivate* pointerHbScrollAreaPrivate(NULL); +#include // ============================ MEMBER FUNCTIONS =============================== @@ -27,10 +26,11 @@ // ----------------------------------------------------------------------------- // HbAbstractItemView::HbAbstractItemView( - HbAbstractItemViewPrivate & dd, - HbAbstractItemContainer * container, + HbAbstractItemViewPrivate & /*dd*/, + HbAbstractItemContainer * /*container*/, + HbModelIterator *, QGraphicsItem * parent ) - : HbScrollArea( *pointerHbScrollAreaPrivate, parent ) + : HbScrollArea(parent) { } @@ -47,23 +47,12 @@ // ----------------------------------------------------------------------------- -// HbAbstractItemView::type -// ----------------------------------------------------------------------------- -// -/* -int HbAbstractItemView::type( ) const - { - SMC_MOCK_METHOD0( int ) - } -*/ - -// ----------------------------------------------------------------------------- // HbAbstractItemView::setModel // ----------------------------------------------------------------------------- // void HbAbstractItemView::setModel( - QAbstractItemModel * model, - HbAbstractViewItem * prototype ) + QAbstractItemModel * , + HbAbstractViewItem * ) { } @@ -84,7 +73,7 @@ // ----------------------------------------------------------------------------- // void HbAbstractItemView::setItemPrototype( - HbAbstractViewItem * prototype ) + HbAbstractViewItem * ) { } @@ -95,7 +84,7 @@ // ----------------------------------------------------------------------------- // void HbAbstractItemView::setItemPrototypes( - const QList & prototypes ) + const QList & ) { } @@ -107,7 +96,7 @@ // QList HbAbstractItemView::itemPrototypes( ) const { - + return QList (); } @@ -116,7 +105,7 @@ // ----------------------------------------------------------------------------- // void HbAbstractItemView::setSelectionModel( - QItemSelectionModel * selectionModel ) + QItemSelectionModel * ) { } @@ -128,7 +117,7 @@ // QItemSelectionModel * HbAbstractItemView::selectionModel( ) const { - + return 0; } @@ -138,7 +127,7 @@ // QModelIndex HbAbstractItemView::currentIndex( ) const { - + return QModelIndex(); } @@ -148,7 +137,7 @@ // QModelIndex HbAbstractItemView::rootIndex( ) const { - + return QModelIndex(); } @@ -157,8 +146,7 @@ // ----------------------------------------------------------------------------- // void HbAbstractItemView::setSelectionMode( - SelectionMode newMode, - bool resetSelection ) + SelectionMode ) { } @@ -170,7 +158,7 @@ // HbAbstractItemView::SelectionMode HbAbstractItemView::selectionMode( ) const { - + return NoSelection; } @@ -210,12 +198,12 @@ // HbAbstractItemView::isVisible // ----------------------------------------------------------------------------- // -bool HbAbstractItemView::isVisible( - HbAbstractViewItem * item ) const +/*bool HbAbstractItemView::isVisible( + const QModelIndex & ) const { - + return false; } - +*/ // ----------------------------------------------------------------------------- // HbAbstractItemView::currentViewItem @@ -259,61 +247,6 @@ } - -// ----------------------------------------------------------------------------- -// HbAbstractItemView::itemAtPosition -// ----------------------------------------------------------------------------- -// -HbAbstractViewItem * HbAbstractItemView::itemAtPosition( - const QPointF & position ) const - { - - } - - -// ----------------------------------------------------------------------------- -// HbAbstractItemView::indexCount -// ----------------------------------------------------------------------------- -// -int HbAbstractItemView::indexCount( ) const - { - SMC_MOCK_METHOD0( int ) - } - - -// ----------------------------------------------------------------------------- -// HbAbstractItemView::indexPosition -// ----------------------------------------------------------------------------- -// -int HbAbstractItemView::indexPosition( - const QModelIndex & index ) const - { - - } - - -// ----------------------------------------------------------------------------- -// HbAbstractItemView::nextIndex -// ----------------------------------------------------------------------------- -// -QModelIndex HbAbstractItemView::nextIndex( - const QModelIndex & index ) const - { - - } - - -// ----------------------------------------------------------------------------- -// HbAbstractItemView::previousIndex -// ----------------------------------------------------------------------------- -// -QModelIndex HbAbstractItemView::previousIndex( - const QModelIndex & index ) const - { - - } - - // ----------------------------------------------------------------------------- // HbAbstractItemView::layoutName // ----------------------------------------------------------------------------- @@ -476,92 +409,6 @@ } -// ----------------------------------------------------------------------------- -// HbAbstractItemView::mousePressEvent -// ----------------------------------------------------------------------------- -// -void HbAbstractItemView::mousePressEvent( - QGraphicsSceneMouseEvent * event ) - { - - } - - -// ----------------------------------------------------------------------------- -// HbAbstractItemView::mouseReleaseEvent -// ----------------------------------------------------------------------------- -// -void HbAbstractItemView::mouseReleaseEvent( - QGraphicsSceneMouseEvent * event ) - { - - } - - -// ----------------------------------------------------------------------------- -// HbAbstractItemView::mouseMoveEvent -// ----------------------------------------------------------------------------- -// -void HbAbstractItemView::mouseMoveEvent( - QGraphicsSceneMouseEvent * event ) - { - - } - - -// ----------------------------------------------------------------------------- -// HbAbstractItemView::focusOutEvent -// ----------------------------------------------------------------------------- -// -void HbAbstractItemView::focusOutEvent( - QFocusEvent * event ) - { - - } - - -// ----------------------------------------------------------------------------- -// HbAbstractItemView::upGesture -// ----------------------------------------------------------------------------- -// -void HbAbstractItemView::upGesture( - int value ) - { - SMC_MOCK_METHOD1( void, int, value ) - } - - -// ----------------------------------------------------------------------------- -// HbAbstractItemView::downGesture -// ----------------------------------------------------------------------------- -// -void HbAbstractItemView::downGesture( - int value ) - { - SMC_MOCK_METHOD1( void, int, value ) - } - - -// ----------------------------------------------------------------------------- -// HbAbstractItemView::leftGesture -// ----------------------------------------------------------------------------- -// -void HbAbstractItemView::leftGesture( - int value ) - { - SMC_MOCK_METHOD1( void, int, value ) - } - - -// ----------------------------------------------------------------------------- -// HbAbstractItemView::rightGesture -// ----------------------------------------------------------------------------- -// -void HbAbstractItemView::rightGesture( - int value ) - { - SMC_MOCK_METHOD1( void, int, value ) - } // ----------------------------------------------------------------------------- @@ -607,17 +454,6 @@ } - -// ----------------------------------------------------------------------------- -// HbAbstractItemView::container -// ----------------------------------------------------------------------------- -// -HbAbstractItemContainer * HbAbstractItemView::container( ) const - { - - } - - // ----------------------------------------------------------------------------- // HbAbstractItemView::itemChange // ----------------------------------------------------------------------------- @@ -791,25 +627,4 @@ } -// ----------------------------------------------------------------------------- -// HbAbstractItemView::panGesture -// ----------------------------------------------------------------------------- -// -void HbAbstractItemView::panGesture( - const QPointF & point ) - { - - } - -// ----------------------------------------------------------------------------- -// HbAbstractItemView::longPressGesture -// ----------------------------------------------------------------------------- -// -void HbAbstractItemView::longPressGesture( - const QPointF & point ) - { - - } - - diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbaction.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbaction.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbaction.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -52,7 +52,7 @@ // ----------------------------------------------------------------------------- // HbAction::HbAction( - Hb::SoftKeyAction action, + Hb::NavigationAction action, QObject * parent ) : QAction( parent ), d_ptr(NULL) { diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbcheckbox.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbcheckbox.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbcheckbox.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -17,7 +17,6 @@ #include #include -#include #include #include #include @@ -30,7 +29,7 @@ // ----------------------------------------------------------------------------- // HbCheckBox::HbCheckBox( - const QString & text, + const QString & /*text*/, QGraphicsItem * parent ) : HbAbstractButton( parent ) @@ -138,9 +137,9 @@ // ----------------------------------------------------------------------------- // void HbCheckBox::initStyleOption( - HbStyleOptionCheckBox * option ) const + HbStyleOptionCheckBox * ) const { - SMC_MOCK_METHOD1( void, HbStyleOptionCheckBox *, option ) + } @@ -186,6 +185,7 @@ } +#ifndef HB_GESTURE_FW // ----------------------------------------------------------------------------- // HbCheckBox::mouseReleaseEvent // ----------------------------------------------------------------------------- @@ -206,6 +206,18 @@ { SMC_MOCK_METHOD1( void, QGraphicsSceneMouseEvent *, event ) } +#endif +#ifdef HB_GESTURE_FW + // ----------------------------------------------------------------------------- + // HbCheckBox::gestureEvent + // ----------------------------------------------------------------------------- + // + void HbCheckBox::gestureEvent( + QGestureEvent * event ) + { + SMC_MOCK_METHOD1( void, QGestureEvent *, event ) + } +#endif // ----------------------------------------------------------------------------- diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbdataform.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbdataform.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbdataform.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -30,7 +30,7 @@ HbDataForm::HbDataForm( HbDataFormPrivate & /*dd*/, HbAbstractItemContainer * /*container*/, - QGraphicsItem * parent ) : HbAbstractItemView( *temp, temp2, parent) + QGraphicsItem * parent ) : HbAbstractItemView( *temp, temp2, 0, parent) { } @@ -81,39 +81,6 @@ // ScrollHint, hint ) } - -// ----------------------------------------------------------------------------- -// HbDataForm::indexCount -// ----------------------------------------------------------------------------- -// -int HbDataForm::indexCount( ) const - { - SMC_MOCK_METHOD0( int ) - } - - -// ----------------------------------------------------------------------------- -// HbDataForm::nextIndex -// ----------------------------------------------------------------------------- -// -QModelIndex HbDataForm::nextIndex( - const QModelIndex & index ) const - { -// SMC_MOCK_METHOD1( QModelIndex, const QModelIndex &, index ) - } - - -// ----------------------------------------------------------------------------- -// HbDataForm::previousIndex -// ----------------------------------------------------------------------------- -// -QModelIndex HbDataForm::previousIndex( - const QModelIndex & index ) const - { -// SMC_MOCK_METHOD1( QModelIndex, const QModelIndex &, index ) - } - - // ----------------------------------------------------------------------------- // HbDataForm::setExpanded // ----------------------------------------------------------------------------- @@ -192,17 +159,6 @@ // ----------------------------------------------------------------------------- -// HbDataForm::dataFormViewItem -// ----------------------------------------------------------------------------- -// -HbDataFormViewItem * HbDataForm::dataFormViewItem( - const QModelIndex & index ) const - { - // SMC_MOCK_METHOD1( HbDataFormViewItem *, const QModelIndex &, index ) - } - - -// ----------------------------------------------------------------------------- // HbDataForm::setModel // ----------------------------------------------------------------------------- // @@ -271,26 +227,6 @@ // ----------------------------------------------------------------------------- -// HbDataForm::loadSettings -// ----------------------------------------------------------------------------- -// -void HbDataForm::loadSettings( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// HbDataForm::storeSettings -// ----------------------------------------------------------------------------- -// -void HbDataForm::storeSettings( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- // HbDataForm::itemShown // ----------------------------------------------------------------------------- // diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbdialog.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbdialog.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbdialog.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -17,7 +17,7 @@ #include #include #include -#include +#include // ============================ MEMBER FUNCTIONS =============================== @@ -127,28 +127,6 @@ // SMC_MOCK_METHOD1( void, HbAction *, action ) } - -// ----------------------------------------------------------------------------- -// HbDialog::type -// ----------------------------------------------------------------------------- -// -/* -int HbDialog::type( ) const - { - SMC_MOCK_METHOD0( int ) - } -*/ - -// ----------------------------------------------------------------------------- -// HbDialog::exec -// ----------------------------------------------------------------------------- -// -HbAction * HbDialog::exec( ) - { - // SMC_MOCK_METHOD0( HbAction * ) - } - - // ----------------------------------------------------------------------------- // HbDialog::HbDialog // ----------------------------------------------------------------------------- @@ -206,4 +184,12 @@ // SMC_MOCK_METHOD1( bool, QEvent *, event ) } +// ----------------------------------------------------------------------------- +// HbDialog::open +// ----------------------------------------------------------------------------- +// +void HbDialog::open( QObject* receiver, const char* member ) + { + SMC_MOCK_METHOD2( void, QObject *, receiver, const char*, member ) + } diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbicon.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbicon.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbicon.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -1,4 +1,4 @@ -/* +/* * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available @@ -44,7 +44,7 @@ // ----------------------------------------------------------------------------- // HbIcon::HbIcon( - const QString & iconName ) + const QString & /*iconName*/ ) { } @@ -55,7 +55,7 @@ // ----------------------------------------------------------------------------- // HbIcon::HbIcon( - const QIcon & icon ) + const QIcon & /*icon*/ ) { } @@ -66,7 +66,7 @@ // ----------------------------------------------------------------------------- // HbIcon::HbIcon( - const HbIcon & other ) + const HbIcon & /*other*/ ) { } @@ -92,6 +92,16 @@ // ----------------------------------------------------------------------------- +// HbIcon::isBadged +// ----------------------------------------------------------------------------- +// +bool HbIcon::isBadged( ) const + { + SMC_MOCK_METHOD0( bool ) + } + + +// ----------------------------------------------------------------------------- // HbIcon::clear // ----------------------------------------------------------------------------- // @@ -116,7 +126,7 @@ // ----------------------------------------------------------------------------- // void HbIcon::setColor( - const QColor & color ) + const QColor & /*color*/ ) { // SMC_MOCK_METHOD1( void, const QColor &, color ) } @@ -158,8 +168,8 @@ // ----------------------------------------------------------------------------- // QString HbIcon::iconName( - QIcon::Mode mode, - QIcon::State state ) const + QIcon::Mode /*mode*/, + QIcon::State /*state*/ ) const { // SMC_MOCK_METHOD2( QString, QIcon::Mode, mode, // QIcon::State, state ) @@ -171,9 +181,9 @@ // ----------------------------------------------------------------------------- // void HbIcon::setIconName( - const QString & iconName, - QIcon::Mode mode, - QIcon::State state ) + const QString & /*iconName*/, + QIcon::Mode /*mode*/, + QIcon::State /*state*/ ) { // SMC_MOCK_METHOD3( void, const QString &, iconName, // QIcon::Mode, mode, @@ -206,7 +216,7 @@ // ----------------------------------------------------------------------------- // void HbIcon::setSize( - const QSizeF & size ) + const QSizeF & /*size*/ ) { // SMC_MOCK_METHOD1( void, const QSizeF &, size ) } @@ -217,7 +227,7 @@ // ----------------------------------------------------------------------------- // void HbIcon::setHeight( - qreal height ) + qreal /*height*/ ) { // SMC_MOCK_METHOD1( void, qreal, height ) } @@ -228,7 +238,7 @@ // ----------------------------------------------------------------------------- // void HbIcon::setWidth( - qreal width ) + qreal /*width*/ ) { // SMC_MOCK_METHOD1( void, qreal, width ) } @@ -253,22 +263,44 @@ // SMC_MOCK_METHOD0( qreal ) } + +// ----------------------------------------------------------------------------- +// HbIcon::mirroringMode +// ----------------------------------------------------------------------------- +// +HbIcon::MirroringMode HbIcon::mirroringMode( ) const + { + SMC_MOCK_METHOD0( MirroringMode ) + } + + // ----------------------------------------------------------------------------- // HbIcon::setMirroringMode // ----------------------------------------------------------------------------- // void HbIcon::setMirroringMode( - MirroringMode mode ) + HbIcon::MirroringMode /*mode*/ ) { // SMC_MOCK_METHOD1( void, MirroringMode, mode ) } + +// ----------------------------------------------------------------------------- +// HbIcon::flags +// ----------------------------------------------------------------------------- +// +HbIcon::Flags HbIcon::flags( ) const + { + //SMC_MOCK_METHOD0( Flags ) + } + + // ----------------------------------------------------------------------------- // HbIcon::setFlags // ----------------------------------------------------------------------------- // void HbIcon::setFlags( - Flags flags ) + Flags /*flags*/ ) { // SMC_MOCK_METHOD1( void, Flags, flags ) } @@ -279,12 +311,12 @@ // ----------------------------------------------------------------------------- // void HbIcon::paint( - QPainter * painter, - const QRectF & rect, - Qt::AspectRatioMode aspectRatioMode, - Qt::Alignment alignment, - QIcon::Mode mode, - QIcon::State state ) const + QPainter * /*painter*/, + const QRectF & /*rect*/, + Qt::AspectRatioMode /*aspectRatioMode*/, + Qt::Alignment /*alignment*/, + QIcon::Mode /*mode*/, + QIcon::State /*state*/ ) const { /* SMC_MOCK_METHOD6( void, QPainter *, painter, const QRectF &, rect, @@ -296,6 +328,17 @@ // ----------------------------------------------------------------------------- +// HbIcon::QVariant +// ----------------------------------------------------------------------------- +// +/* +operator HbIcon::QVariant( ) const + { + SMC_MOCK_METHOD0( operator ) + } +*/ + +// ----------------------------------------------------------------------------- // HbIcon::qicon // ----------------------------------------------------------------------------- // @@ -305,3 +348,41 @@ } +// ----------------------------------------------------------------------------- +// HbIcon::addBadge +// ----------------------------------------------------------------------------- +// +bool HbIcon::addBadge( + Qt::Alignment alignment, + const HbIcon & badge, + int z ) + { + /* + SMC_MOCK_METHOD3( bool, Qt::Alignment, alignment, + const HbIcon &, badge, + int, z ) + */ + } + + +// ----------------------------------------------------------------------------- +// HbIcon::removeBadge +// ----------------------------------------------------------------------------- +// +bool HbIcon::removeBadge( + const HbIcon & badge ) + { + // SMC_MOCK_METHOD1( bool, const HbIcon &, badge ) + } + + +// ----------------------------------------------------------------------------- +// HbIcon::removeAllBadges +// ----------------------------------------------------------------------------- +// +void HbIcon::removeAllBadges( ) + { + SMC_MOCK_METHOD0( void ) + } + + diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hblistview.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hblistview.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hblistview.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -18,7 +18,6 @@ #include #include #include -#include HbAbstractItemViewPrivate *pointerHbAbstractItemViewPrivate(NULL); HbAbstractItemContainer *pointerHbAbstractItemContainer(NULL); @@ -33,13 +32,13 @@ HbListViewPrivate & dd, HbAbstractItemContainer * container, QGraphicsItem * parent ) - : HbAbstractItemView( *pointerHbAbstractItemViewPrivate, pointerHbAbstractItemContainer, parent ) + : HbAbstractItemView( *pointerHbAbstractItemViewPrivate, pointerHbAbstractItemContainer, 0, parent ) { } HbListView::HbListView(QGraphicsItem *parent) - : HbAbstractItemView( *pointerHbAbstractItemViewPrivate, pointerHbAbstractItemContainer, parent ) + : HbAbstractItemView( *pointerHbAbstractItemViewPrivate, pointerHbAbstractItemContainer, 0, parent ) { } @@ -189,38 +188,6 @@ } -// ----------------------------------------------------------------------------- -// HbListView::mousePressEvent -// ----------------------------------------------------------------------------- -// -void HbListView::mousePressEvent( - QGraphicsSceneMouseEvent * event ) - { - // SMC_MOCK_METHOD1( void, QGraphicsSceneMouseEvent *, event ) - } - - -// ----------------------------------------------------------------------------- -// HbListView::mouseReleaseEvent -// ----------------------------------------------------------------------------- -// -void HbListView::mouseReleaseEvent( - QGraphicsSceneMouseEvent * event ) - { - // SMC_MOCK_METHOD1( void, QGraphicsSceneMouseEvent *, event ) - } - - -// ----------------------------------------------------------------------------- -// HbListView::mouseMoveEvent -// ----------------------------------------------------------------------------- -// -void HbListView::mouseMoveEvent( - QGraphicsSceneMouseEvent * event ) - { - // SMC_MOCK_METHOD1( void, QGraphicsSceneMouseEvent *, event ) - } - // ----------------------------------------------------------------------------- // HbListView::move diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbpopup.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbpopup.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbpopup.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -196,16 +196,6 @@ // ----------------------------------------------------------------------------- -// HbPopup::exec -// ----------------------------------------------------------------------------- -// -void HbPopup::exec( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- // HbPopup::aboutToShow // ----------------------------------------------------------------------------- // @@ -284,15 +274,6 @@ } -// ----------------------------------------------------------------------------- -// HbPopup::keyPressEvent -// ----------------------------------------------------------------------------- -// -void HbPopup::keyPressEvent( - QKeyEvent * event ) - { - //SMC_MOCK_METHOD1( void, QKeyEvent *, event ) - } // ----------------------------------------------------------------------------- diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbscrollarea.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbscrollarea.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbscrollarea.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -374,15 +374,6 @@ } -// ----------------------------------------------------------------------------- -// HbScrollArea::mouseReleaseEvent -// ----------------------------------------------------------------------------- -// -void HbScrollArea::mouseReleaseEvent( - QGraphicsSceneMouseEvent * event ) - { - - } // ----------------------------------------------------------------------------- @@ -496,15 +487,7 @@ } -// ----------------------------------------------------------------------------- -// HbScrollArea::gestureSceneFilterChanged -// ----------------------------------------------------------------------------- -// -void HbScrollArea::gestureSceneFilterChanged( - HbGestureSceneFilter * newFilter ) - { - - } + // ----------------------------------------------------------------------------- diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbview.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbview.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbview.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -1,4 +1,4 @@ -/* +/* * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available @@ -25,7 +25,7 @@ // ----------------------------------------------------------------------------- // HbView::HbView( - QGraphicsItem * parent ) + QGraphicsItem * /*parent*/ ) //: //HbWidget( /*parent*/ ) { @@ -219,19 +219,11 @@ // ----------------------------------------------------------------------------- // void HbView::setItemVisible( - Hb::SceneItem , - bool ) + Hb::SceneItem item, + bool visible ) { - } - - -// ----------------------------------------------------------------------------- -// HbView::unsetVisibleItems -// ----------------------------------------------------------------------------- -// -void HbView::unsetVisibleItems( ) - { - SMC_MOCK_METHOD0( void ) + SMC_MOCK_METHOD2( void, Hb::SceneItem, item, + bool, visible ) } @@ -246,11 +238,12 @@ // ----------------------------------------------------------------------------- -// HbView::titleBarFlags +// HbView::viewFlags // ----------------------------------------------------------------------------- // -HbView::HbTitleBarFlags HbView::titleBarFlags( ) const +HbView::HbViewFlags HbView::viewFlags( ) const { + // SMC_MOCK_METHOD0( HbViewFlags ) } @@ -265,15 +258,49 @@ } +// ----------------------------------------------------------------------------- +// HbView::setStatusBarVisible +// ----------------------------------------------------------------------------- +// +void HbView::setStatusBarVisible( + bool visible ) + { + SMC_MOCK_METHOD1( void, bool, visible ) + } + + // ----------------------------------------------------------------------------- // HbView::addAction // ----------------------------------------------------------------------------- // void HbView::addAction( - HbAction * , - ActionContainer ) + HbAction * action, + ActionContainer preferredActionContainer ) { + // SMC_MOCK_METHOD2( void, HbAction *, action, + // ActionContainer, preferredActionContainer ) + } + + +// ----------------------------------------------------------------------------- +// HbView::navigationAction +// ----------------------------------------------------------------------------- +// +HbAction * HbView::navigationAction( ) const + { + SMC_MOCK_METHOD0( HbAction * ) + } + + +// ----------------------------------------------------------------------------- +// HbView::setNavigationAction +// ----------------------------------------------------------------------------- +// +void HbView::setNavigationAction( + HbAction * action ) + { + // SMC_MOCK_METHOD1( void, HbAction *, action ) } @@ -300,12 +327,75 @@ // ----------------------------------------------------------------------------- -// HbView::setTitleBarFlags +// HbView::setViewFlags +// ----------------------------------------------------------------------------- +// +void HbView::setViewFlags( + HbViewFlags flags ) + { + // SMC_MOCK_METHOD1( void, HbViewFlags, flags ) + } + + +// ----------------------------------------------------------------------------- +// HbView::titleChanged +// ----------------------------------------------------------------------------- +// +void HbView::titleChanged( + const QString & title ) + { + SMC_MOCK_METHOD1( void, const QString &, title ) + } + + +// ----------------------------------------------------------------------------- +// HbView::iconChanged // ----------------------------------------------------------------------------- // -void HbView::setTitleBarFlags( - HbView::HbTitleBarFlags ) +void HbView::iconChanged( + const HbIcon & icon ) + { + // SMC_MOCK_METHOD1( void, const HbIcon &, icon ) + } + + +// ----------------------------------------------------------------------------- +// HbView::toolBarChanged +// ----------------------------------------------------------------------------- +// +void HbView::toolBarChanged( ) { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// HbView::visibleItemsChanged +// ----------------------------------------------------------------------------- +// +void HbView::visibleItemsChanged( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// HbView::contentFullScreenChanged +// ----------------------------------------------------------------------------- +// +void HbView::contentFullScreenChanged( ) + { + SMC_MOCK_METHOD0( void ) + } + + +// ----------------------------------------------------------------------------- +// HbView::dockWidgetChanged +// ----------------------------------------------------------------------------- +// +void HbView::dockWidgetChanged( ) + { + SMC_MOCK_METHOD0( void ) } @@ -314,8 +404,8 @@ // ----------------------------------------------------------------------------- // HbView::HbView( - HbViewPrivate & , - QGraphicsItem * ) + HbViewPrivate & dd, + QGraphicsItem * parent ) //: //HbWidget( /*dd, parent*/ ) { @@ -328,8 +418,9 @@ // ----------------------------------------------------------------------------- // bool HbView::event( - QEvent * ) + QEvent * event ) { + // SMC_MOCK_METHOD1( bool, QEvent *, event ) } diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbwidget.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbwidget.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbwidget.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -125,6 +125,7 @@ HbMainWindow * HbWidget::mainWindow( ) const { // SMC_MOCK_METHOD0( HbMainWindow * ) + return 0; } @@ -133,9 +134,10 @@ // ----------------------------------------------------------------------------- // QGraphicsItem * HbWidget::primitive( - HbStyle::Primitive primitive ) const + HbStyle::Primitive ) const { // SMC_MOCK_METHOD1( QGraphicsItem *, HbStyle::Primitive, primitive ) + return 0; } @@ -144,8 +146,8 @@ // ----------------------------------------------------------------------------- // void HbWidget::setFocusOrientation( - Qt::Orientations previous, - Qt::Orientations next ) + Qt::Orientations , + Qt::Orientations ) { // SMC_MOCK_METHOD2( void, Qt::Orientations, previous, // Qt::Orientations, next ) @@ -159,6 +161,7 @@ QKeySequence HbWidget::keyForFocusNextChild( ) const { // SMC_MOCK_METHOD0( QKeySequence ) + return QKeySequence(); } @@ -169,6 +172,7 @@ QKeySequence HbWidget::keyForFocusPreviousChild( ) const { // SMC_MOCK_METHOD0( QKeySequence ) + return QKeySequence(); } @@ -177,7 +181,7 @@ // ----------------------------------------------------------------------------- // void HbWidget::setKeyFocusMode( - const QKeySequence & key ) + const QKeySequence & ) { // SMC_MOCK_METHOD1( void, const QKeySequence &, key ) } @@ -190,6 +194,7 @@ QKeySequence HbWidget::keyFocusMode( ) const { // SMC_MOCK_METHOD0( QKeySequence ) + return QKeySequence(); } @@ -200,6 +205,7 @@ QGraphicsItem * HbWidget::lastFocusedChild( ) const { // SMC_MOCK_METHOD0( QGraphicsItem * ) + return 0; } @@ -208,8 +214,8 @@ // ----------------------------------------------------------------------------- // void HbWidget::setFocusOrder( - QGraphicsItem * first, - QGraphicsItem * second ) + QGraphicsItem * , + QGraphicsItem * ) { // SMC_MOCK_METHOD2( void, QGraphicsItem *, first, // QGraphicsItem *, second ) @@ -221,7 +227,7 @@ // ----------------------------------------------------------------------------- // void HbWidget::setFocusDelegation( - HbWidget::FocusDelegation focusDelegation ) + HbWidget::FocusDelegation ) { // SMC_MOCK_METHOD1( void, HbWidget::FocusDelegation, focusDelegation ) } @@ -284,8 +290,8 @@ // ----------------------------------------------------------------------------- // void HbWidget::setFocusHighlight( - HbStyle::Primitive type, - HbWidget::FocusHighlight focusHighlight ) + HbStyle::Primitive , + HbWidget::FocusHighlight ) { // SMC_MOCK_METHOD2( void, HbStyle::Primitive, type, // HbWidget::FocusHighlight, focusHighlight ) @@ -297,7 +303,7 @@ // ----------------------------------------------------------------------------- // HbStyle::Primitive HbWidget::focusHighlight( - HbWidget::FocusHighlight focusHighlight ) + HbWidget::FocusHighlight ) { // SMC_MOCK_METHOD1( HbStyle::Primitive, HbWidget::FocusHighlight, focusHighlight ) } @@ -308,8 +314,8 @@ // ----------------------------------------------------------------------------- // void HbWidget::setBackgroundItem( - HbStyle::Primitive type, - int zValue ) + HbStyle::Primitive , + int ) { // SMC_MOCK_METHOD2( void, HbStyle::Primitive, type, // int, zValue ) @@ -321,8 +327,8 @@ // ----------------------------------------------------------------------------- // void HbWidget::setBackgroundItem( - QGraphicsItem * item, - int zValue ) + QGraphicsItem * , + int ) { // SMC_MOCK_METHOD2( void, QGraphicsItem *, item, // int, zValue ) @@ -340,30 +346,6 @@ // ----------------------------------------------------------------------------- -// HbWidget::overrideFeedback -// ----------------------------------------------------------------------------- -// -HbFeedback::InstantEffect HbWidget::overrideFeedback( - Hb::InstantInteraction interaction ) const - { - // SMC_MOCK_METHOD1( HbFeedback::InstantEffect, Hb::InstantInteraction, interaction ) - } - - -// ----------------------------------------------------------------------------- -// HbWidget::overrideContinuousFeedback -// ----------------------------------------------------------------------------- -// -HbFeedback::ContinuousEffect HbWidget::overrideContinuousFeedback( - Hb::ContinuousInteraction interaction, - int * intensity ) const - { - // SMC_MOCK_METHOD2( HbFeedback::ContinuousEffect, Hb::ContinuousInteraction, interaction, - // int *, intensity ) - } - - -// ----------------------------------------------------------------------------- // HbWidget::recreatePrimitives // ----------------------------------------------------------------------------- // @@ -483,15 +465,6 @@ } -// ----------------------------------------------------------------------------- -// HbWidget::gestureEvent -// ----------------------------------------------------------------------------- -// -void HbWidget::gestureEvent( - QGestureEvent * event ) - { - // SMC_MOCK_METHOD1( void, QGestureEvent *, event ) - } // ----------------------------------------------------------------------------- @@ -499,9 +472,9 @@ // ----------------------------------------------------------------------------- // HbWidget::HbWidget( - HbWidgetPrivate & dd, - QGraphicsItem * parent, - Qt::WindowFlags wFlags ) + HbWidgetPrivate & /*dd*/, + QGraphicsItem * /*parent*/, + Qt::WindowFlags /*wFlags*/ ) //: //HbWidgetBase( /*dd, parent, wFlags*/ ) { diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_psetcalldivertingwrapper.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_psetcalldivertingwrapper.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_psetcalldivertingwrapper.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -88,15 +88,10 @@ void PSetCallDivertingWrapper::getDefaultNumbers( QStringList & aDefNumbers ) { - static int i =0; - if(i == 0){ - QStringList list; - list << "0401234567" << "0501234567" << "0451234567"; - aDefNumbers = list; - i=1; - }else{ - i=0; - } + QStringList list; + list << "0401234567" << "0501234567" << "0451234567"; + aDefNumbers = list; + SMC_MOCK_METHOD1( void, QStringList &, aDefNumbers ) } @@ -115,7 +110,18 @@ // PSetCallDivertingWrapper::getVoiceMailBoxNumber // ----------------------------------------------------------------------------- // -void PSetCallDivertingWrapper::getVoiceMailBoxNumber(QString &number) -{ - SMC_MOCK_METHOD1( void, QString&, number ) -} \ No newline at end of file +int PSetCallDivertingWrapper::getVoiceMailBoxNumber( + QString &aNumber, PsService aService) + { + SMC_MOCK_METHOD2( int, QString & , aNumber, PsService, aService ) + } + +// ----------------------------------------------------------------------------- +// PSetCallDivertingWrapper::queryVoiceMailBoxNumber +// ----------------------------------------------------------------------------- +// +int PSetCallDivertingWrapper::queryVoiceMailBoxNumber( + QString &aNumber, PsService aService) + { + SMC_MOCK_METHOD2( int, QString & , aNumber, PsService, aService ) + } diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_qsysteminfo.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_qsysteminfo.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,544 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include + +// ============================ MEMBER FUNCTIONS =============================== + +QTM_BEGIN_NAMESPACE + + +// ----------------------------------------------------------------------------- +// QSystemStorageInfo::~QSystemStorageInfo +// ----------------------------------------------------------------------------- +// +QSystemStorageInfo::~QSystemStorageInfo( ) + { + + } + + +// ----------------------------------------------------------------------------- +// QSystemStorageInfo::totalDiskSpace +// ----------------------------------------------------------------------------- +// +Q_INVOKABLE qlonglong QSystemStorageInfo::totalDiskSpace( + const QString & driveVolume ) + { + SMC_MOCK_METHOD1( Q_INVOKABLE qlonglong, const QString &, driveVolume ) + } + + +// ----------------------------------------------------------------------------- +// QSystemStorageInfo::availableDiskSpace +// ----------------------------------------------------------------------------- +// +Q_INVOKABLE qlonglong QSystemStorageInfo::availableDiskSpace( + const QString & driveVolume ) + { + SMC_MOCK_METHOD1( Q_INVOKABLE qlonglong, const QString &, driveVolume ) + } + + +// ----------------------------------------------------------------------------- +// QSystemStorageInfo::logicalDrives +// ----------------------------------------------------------------------------- +// +QStringList QSystemStorageInfo::logicalDrives( ) + { + SMC_MOCK_METHOD0( QStringList ) + } + + +// ----------------------------------------------------------------------------- +// QSystemStorageInfo::typeForDrive +// ----------------------------------------------------------------------------- +// +Q_INVOKABLE QSystemStorageInfo::DriveType QSystemStorageInfo::typeForDrive( + const QString & driveVolume ) + { + SMC_MOCK_METHOD1( Q_INVOKABLE QSystemStorageInfo::DriveType, const QString &, driveVolume ) + } + + +// ----------------------------------------------------------------------------- +// QSystemDeviceInfo::QSystemDeviceInfo +// ----------------------------------------------------------------------------- +// +QSystemDeviceInfo::QSystemDeviceInfo( + QObject * parent ) + //: + //QObject( /*parent*/ ) + { + + } + + +// ----------------------------------------------------------------------------- +// QSystemDeviceInfo::~QSystemDeviceInfo +// ----------------------------------------------------------------------------- +// +QSystemDeviceInfo::~QSystemDeviceInfo( ) + { + + } + + +// ----------------------------------------------------------------------------- +// QSystemDeviceInfo::inputMethodType +// ----------------------------------------------------------------------------- +// +QSystemDeviceInfo::InputMethodFlags QSystemDeviceInfo::inputMethodType( ) + { + SMC_MOCK_METHOD0( QSystemDeviceInfo::InputMethodFlags ) + } + + +// ----------------------------------------------------------------------------- +// QSystemDeviceInfo::imei +// ----------------------------------------------------------------------------- +// +QString QSystemDeviceInfo::imei( ) + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// QSystemDeviceInfo::imsi +// ----------------------------------------------------------------------------- +// +QString QSystemDeviceInfo::imsi( ) + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// QSystemDeviceInfo::manufacturer +// ----------------------------------------------------------------------------- +// +QString QSystemDeviceInfo::manufacturer( ) + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// QSystemDeviceInfo::model +// ----------------------------------------------------------------------------- +// +QString QSystemDeviceInfo::model( ) + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// QSystemDeviceInfo::productName +// ----------------------------------------------------------------------------- +// +QString QSystemDeviceInfo::productName( ) + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// QSystemDeviceInfo::batteryLevel +// ----------------------------------------------------------------------------- +// +int QSystemDeviceInfo::batteryLevel( ) const + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// QSystemDeviceInfo::batteryStatus +// ----------------------------------------------------------------------------- +// +QSystemDeviceInfo::BatteryStatus QSystemDeviceInfo::batteryStatus( ) + { + SMC_MOCK_METHOD0( QSystemDeviceInfo::BatteryStatus ) + } + + +// ----------------------------------------------------------------------------- +// QSystemDeviceInfo::isDeviceLocked +// ----------------------------------------------------------------------------- +// +bool QSystemDeviceInfo::isDeviceLocked( ) + { + SMC_MOCK_METHOD0( bool ) + } + + +// ----------------------------------------------------------------------------- +// QSystemDeviceInfo::simStatus +// ----------------------------------------------------------------------------- +// +QSystemDeviceInfo::SimStatus QSystemDeviceInfo::simStatus( ) + { + SMC_MOCK_METHOD0( QSystemDeviceInfo::SimStatus ) + } + + +// ----------------------------------------------------------------------------- +// QSystemDeviceInfo::currentProfile +// ----------------------------------------------------------------------------- +// +QSystemDeviceInfo::Profile QSystemDeviceInfo::currentProfile( ) + { + SMC_MOCK_METHOD0( QSystemDeviceInfo::Profile ) + } + + +// ----------------------------------------------------------------------------- +// QSystemDeviceInfo::currentPowerState +// ----------------------------------------------------------------------------- +// +QSystemDeviceInfo::PowerState QSystemDeviceInfo::currentPowerState( ) + { + SMC_MOCK_METHOD0( QSystemDeviceInfo::PowerState ) + } + + +// ----------------------------------------------------------------------------- +// QSystemInfo::QSystemInfo +// ----------------------------------------------------------------------------- +// +QSystemInfo::QSystemInfo( + QObject * parent ) + //: + //QObject( /*parent*/ ) + { + + } + + +// ----------------------------------------------------------------------------- +// QSystemInfo::~QSystemInfo +// ----------------------------------------------------------------------------- +// +QSystemInfo::~QSystemInfo( ) + { + + } + + +// ----------------------------------------------------------------------------- +// QSystemInfo::currentLanguage +// ----------------------------------------------------------------------------- +// +QString QSystemInfo::currentLanguage( ) + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// QSystemInfo::availableLanguages +// ----------------------------------------------------------------------------- +// +QStringList QSystemInfo::availableLanguages( ) + { + SMC_MOCK_METHOD0( QStringList ) + } + + +// ----------------------------------------------------------------------------- +// QSystemInfo::currentCountryCode +// ----------------------------------------------------------------------------- +// +QString QSystemInfo::currentCountryCode( ) + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// QSystemInfo::version +// ----------------------------------------------------------------------------- +// +QString QSystemInfo::version( + QSystemInfo::Version type, + const QString & parameter ) + { + SMC_MOCK_METHOD2( QString, QSystemInfo::Version, type, + const QString &, parameter ) + } + + +// ----------------------------------------------------------------------------- +// QSystemInfo::hasFeatureSupported +// ----------------------------------------------------------------------------- +// +bool QSystemInfo::hasFeatureSupported( + QSystemInfo::Feature feature ) + { + SMC_MOCK_METHOD1( bool, QSystemInfo::Feature, feature ) + } + + +// ----------------------------------------------------------------------------- +// QSystemNetworkInfo::QSystemNetworkInfo +// ----------------------------------------------------------------------------- +// +QSystemNetworkInfo::QSystemNetworkInfo( + QObject * parent ) + //: + //QObject( /*parent*/ ) + { + + } + + +// ----------------------------------------------------------------------------- +// QSystemNetworkInfo::~QSystemNetworkInfo +// ----------------------------------------------------------------------------- +// +QSystemNetworkInfo::~QSystemNetworkInfo( ) + { + + } + + +// ----------------------------------------------------------------------------- +// QSystemNetworkInfo::networkStatus +// ----------------------------------------------------------------------------- +// +Q_INVOKABLE QSystemNetworkInfo::NetworkStatus QSystemNetworkInfo::networkStatus( + QSystemNetworkInfo::NetworkMode mode ) + { + SMC_MOCK_METHOD1( Q_INVOKABLE QSystemNetworkInfo::NetworkStatus, QSystemNetworkInfo::NetworkMode, mode ) + } + + +// ----------------------------------------------------------------------------- +// QSystemNetworkInfo::networkSignalStrength +// ----------------------------------------------------------------------------- +// +Q_INVOKABLE int QSystemNetworkInfo::networkSignalStrength( + QSystemNetworkInfo::NetworkMode mode ) + { + SMC_MOCK_METHOD1( Q_INVOKABLE int, QSystemNetworkInfo::NetworkMode, mode ) + } + + +// ----------------------------------------------------------------------------- +// QSystemNetworkInfo::macAddress +// ----------------------------------------------------------------------------- +// +QString QSystemNetworkInfo::macAddress( + QSystemNetworkInfo::NetworkMode mode ) + { + SMC_MOCK_METHOD1( QString, QSystemNetworkInfo::NetworkMode, mode ) + } + + +// ----------------------------------------------------------------------------- +// QSystemNetworkInfo::currentMode +// ----------------------------------------------------------------------------- +// +QSystemNetworkInfo::NetworkMode QSystemNetworkInfo::currentMode( ) + { + SMC_MOCK_METHOD0( QSystemNetworkInfo::NetworkMode ) + } + + +// ----------------------------------------------------------------------------- +// QSystemNetworkInfo::cellId +// ----------------------------------------------------------------------------- +// +int QSystemNetworkInfo::cellId( ) + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// QSystemNetworkInfo::locationAreaCode +// ----------------------------------------------------------------------------- +// +int QSystemNetworkInfo::locationAreaCode( ) + { + SMC_MOCK_METHOD0( int ) + } + + +// ----------------------------------------------------------------------------- +// QSystemNetworkInfo::currentMobileCountryCode +// ----------------------------------------------------------------------------- +// +QString QSystemNetworkInfo::currentMobileCountryCode( ) + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// QSystemNetworkInfo::currentMobileNetworkCode +// ----------------------------------------------------------------------------- +// +QString QSystemNetworkInfo::currentMobileNetworkCode( ) + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// QSystemNetworkInfo::homeMobileCountryCode +// ----------------------------------------------------------------------------- +// +QString QSystemNetworkInfo::homeMobileCountryCode( ) + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// QSystemNetworkInfo::homeMobileNetworkCode +// ----------------------------------------------------------------------------- +// +QString QSystemNetworkInfo::homeMobileNetworkCode( ) + { + SMC_MOCK_METHOD0( QString ) + } + + +// ----------------------------------------------------------------------------- +// QSystemNetworkInfo::networkName +// ----------------------------------------------------------------------------- +// +Q_INVOKABLE QString QSystemNetworkInfo::networkName( + QSystemNetworkInfo::NetworkMode mode ) + { + SMC_MOCK_METHOD1( Q_INVOKABLE QString, QSystemNetworkInfo::NetworkMode, mode ) + } + + +// ----------------------------------------------------------------------------- +// QSystemNetworkInfo::interfaceForMode +// ----------------------------------------------------------------------------- +// +QNetworkInterface QSystemNetworkInfo::interfaceForMode( + QSystemNetworkInfo::NetworkMode mode ) + { + SMC_MOCK_METHOD1( QNetworkInterface, QSystemNetworkInfo::NetworkMode, mode ) + } + + +// ----------------------------------------------------------------------------- +// QSystemNetworkInfo::connectNotify +// ----------------------------------------------------------------------------- +// +void QSystemNetworkInfo::connectNotify( + const char * signal ) + { + SMC_MOCK_METHOD1( void, const char *, signal ) + } + + +// ----------------------------------------------------------------------------- +// QSystemNetworkInfo::disconnectNotify +// ----------------------------------------------------------------------------- +// +void QSystemNetworkInfo::disconnectNotify( + const char * signal ) + { + SMC_MOCK_METHOD1( void, const char *, signal ) + } + + + +// ----------------------------------------------------------------------------- +// QSystemScreenSaver::~QSystemScreenSaver +// ----------------------------------------------------------------------------- +// +QSystemScreenSaver::~QSystemScreenSaver( ) + { + + } + + +// ----------------------------------------------------------------------------- +// QSystemScreenSaver::screenSaverInhibited +// ----------------------------------------------------------------------------- +// +bool QSystemScreenSaver::screenSaverInhibited( ) + { + SMC_MOCK_METHOD0( bool ) + } + + +// ----------------------------------------------------------------------------- +// QSystemScreenSaver::setScreenSaverInhibit +// ----------------------------------------------------------------------------- +// +Q_INVOKABLE bool QSystemScreenSaver::setScreenSaverInhibit( ) + { + SMC_MOCK_METHOD0( Q_INVOKABLE bool ) + } + + +// ----------------------------------------------------------------------------- +// QSystemDisplayInfo::QSystemDisplayInfo +// ----------------------------------------------------------------------------- +// +QSystemDisplayInfo::QSystemDisplayInfo( + QObject * parent ) + //: + //QObject( /*parent*/ ) + { + + } + + +// ----------------------------------------------------------------------------- +// QSystemDisplayInfo::~QSystemDisplayInfo +// ----------------------------------------------------------------------------- +// +QSystemDisplayInfo::~QSystemDisplayInfo( ) + { + + } + + +// ----------------------------------------------------------------------------- +// QSystemDisplayInfo::displayBrightness +// ----------------------------------------------------------------------------- +// +int QSystemDisplayInfo::displayBrightness( + int screen ) + { + SMC_MOCK_METHOD1( int, int, screen ) + } + + +// ----------------------------------------------------------------------------- +// QSystemDisplayInfo::colorDepth +// ----------------------------------------------------------------------------- +// +int QSystemDisplayInfo::colorDepth( + int screen ) + { + SMC_MOCK_METHOD1( int, int, screen ) + } + +QTM_END_NAMESPACE diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_xqsettingsmanager.cpp --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_xqsettingsmanager.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_xqsettingsmanager.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -61,10 +61,7 @@ const XQSettingsKey & key, const QVariant & value ) { - Q_UNUSED( key ) - Q_UNUSED( value ) - bool variable; - return variable; + SMC_MOCK_METHOD2( bool, XQSettingsKey &, key, QVariant &, value ) } diff -r ba76fc04e6c2 -r 6b911d05207e phonesettings/cpphonesettingsplugins/tsrc/mocks/ut_mockintegrity.pro --- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/ut_mockintegrity.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/ut_mockintegrity.pro Wed Jun 23 18:12:20 2010 +0300 @@ -48,6 +48,7 @@ HEADERS += ../../callsplugin/src/cpcallsplugin.h \ ../../cptelephonyutils/inc/cpphonenotes.h \ ../../cptelephonyutils/inc/cpplugincommon.h \ + ../../cptelephonyutils/inc/cpphonelocalisation.h \ /epoc32/include/platform/mw/psetwrapper.h \ /epoc32/include/platform/mw/psetcliwrapper.h \ /epoc32/include/platform/mw/sssettingswrapper.h \ @@ -55,9 +56,9 @@ /epoc32/include/platform/mw/psetcalldivertingwrapper.h \ /epoc32/include/platform/mw/psetnetworkwrapper.h \ /epoc32/include/platform/mw/psetcallbarringwrapper.h \ - /epoc32/include/mw/xqsettingskey.h \ - /epoc32/include/mw/xqsettingsmanager.h \ - /epoc32/include/mw/xqsysinfo.h + /epoc32/include/platform/mw/xqsettingskey.h \ + /epoc32/include/platform/mw/xqsettingsmanager.h \ + /epoc32/include/platform/mw/xqsysinfo.h SOURCES += *.cpp diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/bubblecore.pro --- a/phoneuis/bubblemanager2/bubblecore/bubblecore.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneuis/bubblemanager2/bubblecore/bubblecore.pro Wed Jun 23 18:12:20 2010 +0300 @@ -27,12 +27,11 @@ TARGET.UID3 = 0x100058FF defFiles = \ - "$${LITERAL_HASH}ifdef WINS" \ - "DEFFILE bwins/bubblecore.def" \ - "$${LITERAL_HASH}else" \ - "DEFFILE eabi/bubblecore.def" \ - "$${LITERAL_HASH}endif" - + "$${LITERAL_HASH}ifdef WINS" \ + "DEFFILE bwins/bubblemanager2.def" \ + "$${LITERAL_HASH}else" \ + "DEFFILE eabi/bubblemanager2.def" \ + "$${LITERAL_HASH}endif" MMP_RULES += defFiles LIBS += -lthumbnailmanagerqt diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/bubblecore.qrc --- a/phoneuis/bubblemanager2/bubblecore/bubblecore.qrc Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneuis/bubblemanager2/bubblecore/bubblecore.qrc Wed Jun 23 18:12:20 2010 +0300 @@ -5,51 +5,6 @@ xml/bubble_layout_3.docml xml/bubble_layout_4.docml xml/bubble_layout_5.docml - themes/icons/hbdefault/scalable/qtg_large_avatar.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_b.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_bl.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_br.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_c.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_l.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_r.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_t.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_tl.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_tr.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_b.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_bl.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_br.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_c.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_l.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_r.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_t.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_tl.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_tr.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_b.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_bl.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_br.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_c.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_l.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_r.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_t.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_tl.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_tr.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_b.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_bl.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_br.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_c.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_l.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_r.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_t.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_tl.svg - themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_tr.svg - themes/icons/hbdefault/scalable/qtg_large_waiting_call.svg - themes/icons/hbdefault/scalable/qtg_large_active_call.svg - themes/icons/hbdefault/scalable/qtg_large_end_call.svg - themes/icons/hbdefault/scalable/qtg_large_video_call_active.svg - themes/icons/hbdefault/scalable/qtg_large_video_call_waiting.svg - themes/icons/hbdefault/scalable/qtg_large_voip_call_active.svg - themes/icons/hbdefault/scalable/qtg_large_voip_call_waiting.svg - themes/icons/hbdefault/scalable/qtg_mono_ciphering_off.svg effects/bubble_muted_disappear.fxml effects/bubble_muted_appear.fxml xml/bubbleheadingwidget.widgetml @@ -58,7 +13,6 @@ xml/bubbleparticipantlistitem.css xml/bubbleparticipantlistitem.widgetml xml/bubbleheadingwidget.css - themes/icons/hbdefault/scalable/qtg_mono_call_diverted.svg resources/bubble_icon_anim.axml diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/bwins/bubblecoreu.def --- a/phoneuis/bubblemanager2/bubblecore/bwins/bubblecoreu.def Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,65 +0,0 @@ -EXPORTS - ?connectSignals@BubbleManager@@AAEXPAVQGraphicsWidget@@@Z @ 1 NONAME ; void BubbleManager::connectSignals(class QGraphicsWidget *) - ?createConference@BubbleManager@@UAEHHH@Z @ 2 NONAME ; int BubbleManager::createConference(int, int) - ?tr@BubbleManager@@SA?AVQString@@PBD0H@Z @ 3 NONAME ; class QString BubbleManager::tr(char const *, char const *, int) - ?staticMetaObject@BubbleManager@@2UQMetaObject@@B @ 4 NONAME ; struct QMetaObject const BubbleManager::staticMetaObject - ?setState@BubbleManager@@UAEXHW4PhoneCallState@BubbleManagerIF@@@Z @ 5 NONAME ; void BubbleManager::setState(int, enum BubbleManagerIF::PhoneCallState) - ?tr@BubbleManager@@SA?AVQString@@PBD0@Z @ 6 NONAME ; class QString BubbleManager::tr(char const *, char const *) - ?selectionInConference@BubbleManager@@UBEHXZ @ 7 NONAME ; int BubbleManager::selectionInConference(void) const - ??_EBubbleManager@@UAE@I@Z @ 8 NONAME ; BubbleManager::~BubbleManager(unsigned int) - ?addToLayout@BubbleManager@@AAE_NPAVQGraphicsWidget@@@Z @ 9 NONAME ; bool BubbleManager::addToLayout(class QGraphicsWidget *) - ?updateCallTime@BubbleManager@@UAEXHABVQString@@@Z @ 10 NONAME ; void BubbleManager::updateCallTime(int, class QString const &) - ?removeFromLayout@BubbleManager@@AAEXPAVQGraphicsWidget@@@Z @ 11 NONAME ; void BubbleManager::removeFromLayout(class QGraphicsWidget *) - ?polishEvent@BubbleManager@@EAEXXZ @ 12 NONAME ; void BubbleManager::polishEvent(void) - ?graphicsWidgetForAction@BubbleManager@@UBEPAVQGraphicsWidget@@PAVHbAction@@@Z @ 13 NONAME ; class QGraphicsWidget * BubbleManager::graphicsWidgetForAction(class HbAction *) const - ?setCallObjectImage@BubbleManager@@UAEXHABVQString@@@Z @ 14 NONAME ; void BubbleManager::setCallObjectImage(int, class QString const &) - ?isConferenceExpanded@BubbleManager@@UBE_NXZ @ 15 NONAME ; bool BubbleManager::isConferenceExpanded(void) const - ?setNumberType@BubbleManager@@UAEXHW4PhoneNumberType@BubbleManagerIF@@@Z @ 16 NONAME ; void BubbleManager::setNumberType(int, enum BubbleManagerIF::PhoneNumberType) - ?selectView@BubbleManager@@AAEPAVQGraphicsWidget@@XZ @ 17 NONAME ; class QGraphicsWidget * BubbleManager::selectView(void) - ?startChanges@BubbleManager@@UAEXXZ @ 18 NONAME ; void BubbleManager::startChanges(void) - ?removeRowFromConference@BubbleManager@@UAEXH@Z @ 19 NONAME ; void BubbleManager::removeRowFromConference(int) - ?clearActions@BubbleManager@@UAEXH@Z @ 20 NONAME ; void BubbleManager::clearActions(int) - ?qt_metacall@BubbleManager@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 21 NONAME ; int BubbleManager::qt_metacall(enum QMetaObject::Call, int, void * *) - ?findActiveHeader@BubbleManager@@AAE_NHAAPAVBubbleHeader@@@Z @ 22 NONAME ; bool BubbleManager::findActiveHeader(int, class BubbleHeader * &) - ?shownHeaderCount@BubbleManager@@UBEHXZ @ 23 NONAME ; int BubbleManager::shownHeaderCount(void) const - ?setBubbleSelectionDisabled@BubbleManager@@UAEX_N@Z @ 24 NONAME ; void BubbleManager::setBubbleSelectionDisabled(bool) - ??1BubbleManager@@UAE@XZ @ 25 NONAME ; BubbleManager::~BubbleManager(void) - ?findNextDrawableHeader@BubbleManager@@ABEXAAH@Z @ 26 NONAME ; void BubbleManager::findNextDrawableHeader(int &) const - ?trUtf8@BubbleManager@@SA?AVQString@@PBD0@Z @ 27 NONAME ; class QString BubbleManager::trUtf8(char const *, char const *) - ??0BubbleManager@@QAE@PAVQGraphicsItem@@@Z @ 28 NONAME ; BubbleManager::BubbleManager(class QGraphicsItem *) - ?expandedBubble@BubbleManager@@UBEHXZ @ 29 NONAME ; int BubbleManager::expandedBubble(void) const - ?setSelectionIdInConference@BubbleManager@@UAEXH@Z @ 30 NONAME ; void BubbleManager::setSelectionIdInConference(int) - ?moveHighlightOneUpInConference@BubbleManager@@UAEXXZ @ 31 NONAME ; void BubbleManager::moveHighlightOneUpInConference(void) - ?createCallHeader@BubbleManager@@UAEHXZ @ 32 NONAME ; int BubbleManager::createCallHeader(void) - ?setCallObjectFromTheme@BubbleManager@@UAEXH@Z @ 33 NONAME ; void BubbleManager::setCallObjectFromTheme(int) - ?handleOrientationChange@BubbleManager@@QAEXW4Orientation@Qt@@@Z @ 34 NONAME ; void BubbleManager::handleOrientationChange(enum Qt::Orientation) - ?setSecondaryCli@BubbleManager@@UAEXHABVQString@@W4TextElideMode@Qt@@@Z @ 35 NONAME ; void BubbleManager::setSecondaryCli(int, class QString const &, enum Qt::TextElideMode) - ?selectionIdInConference@BubbleManager@@UBEHXZ @ 36 NONAME ; int BubbleManager::selectionIdInConference(void) const - ?addAction@BubbleManager@@UAEXHPAVHbAction@@@Z @ 37 NONAME ; void BubbleManager::addAction(int, class HbAction *) - ?qt_metacast@BubbleManager@@UAEPAXPBD@Z @ 38 NONAME ; void * BubbleManager::qt_metacast(char const *) - ?getStaticMetaObject@BubbleManager@@SAABUQMetaObject@@XZ @ 39 NONAME ; struct QMetaObject const & BubbleManager::getStaticMetaObject(void) - ?moveHighlightOneDownInConference@BubbleManager@@UAEXXZ @ 40 NONAME ; void BubbleManager::moveHighlightOneDownInConference(void) - ?removeConference@BubbleManager@@UAEXXZ @ 41 NONAME ; void BubbleManager::removeConference(void) - ?removeCallHeader@BubbleManager@@UAEXH@Z @ 42 NONAME ; void BubbleManager::removeCallHeader(int) - ?setViewData@BubbleManager@@AAEXPAVQGraphicsWidget@@@Z @ 43 NONAME ; void BubbleManager::setViewData(class QGraphicsWidget *) - ?setPhoneMuted@BubbleManager@@UAEX_N@Z @ 44 NONAME ; void BubbleManager::setPhoneMuted(bool) - ?metaObject@BubbleManager@@UBEPBUQMetaObject@@XZ @ 45 NONAME ; struct QMetaObject const * BubbleManager::metaObject(void) const - ?updateCLI@BubbleManager@@UAEXHABVQString@@W4TextElideMode@Qt@@@Z @ 46 NONAME ; void BubbleManager::updateCLI(int, class QString const &, enum Qt::TextElideMode) - ?addParticipantListAction@BubbleManager@@UAEXPAVHbAction@@@Z @ 47 NONAME ; void BubbleManager::addParticipantListAction(class HbAction *) - ?setCallTime@BubbleManager@@UAEXHABVQString@@@Z @ 48 NONAME ; void BubbleManager::setCallTime(int, class QString const &) - ?endChanges@BubbleManager@@UAEXXZ @ 49 NONAME ; void BubbleManager::endChanges(void) - ?setSelectionInConference@BubbleManager@@UAEXH@Z @ 50 NONAME ; void BubbleManager::setSelectionInConference(int) - ?setParticipantListCli@BubbleManager@@UAEXHW4ParticipantListCli@BubbleManagerIF@@@Z @ 51 NONAME ; void BubbleManager::setParticipantListCli(int, enum BubbleManagerIF::ParticipantListCli) - ?setCallFlag@BubbleManager@@UAEXHV?$QFlags@W4PhoneCallFlag@BubbleManagerIF@@@@_N@Z @ 52 NONAME ; void BubbleManager::setCallFlag(int, class QFlags, bool) - ?setExpandAction@BubbleManager@@UAEXHPAVHbAction@@@Z @ 53 NONAME ; void BubbleManager::setExpandAction(int, class HbAction *) - ?trUtf8@BubbleManager@@SA?AVQString@@PBD0H@Z @ 54 NONAME ; class QString BubbleManager::trUtf8(char const *, char const *, int) - ?showExpanded@BubbleManager@@AAEXH@Z @ 55 NONAME ; void BubbleManager::showExpanded(int) - ?setCli@BubbleManager@@UAEXHABVQString@@W4TextElideMode@Qt@@@Z @ 56 NONAME ; void BubbleManager::setCli(int, class QString const &, enum Qt::TextElideMode) - ?conferenceRowCount@BubbleManager@@UBEHXZ @ 57 NONAME ; int BubbleManager::conferenceRowCount(void) const - ?setExpandedConferenceCallHeader@BubbleManager@@UAEX_N@Z @ 58 NONAME ; void BubbleManager::setExpandedConferenceCallHeader(bool) - ?clearParticipantListActions@BubbleManager@@UAEXXZ @ 59 NONAME ; void BubbleManager::clearParticipantListActions(void) - ?setCallFlags@BubbleManager@@UAEXHH@Z @ 60 NONAME ; void BubbleManager::setCallFlags(int, int) - ?addRowToConference@BubbleManager@@UAEXH@Z @ 61 NONAME ; void BubbleManager::addRowToConference(int) - ?setLabel@BubbleManager@@UAEXHABVQString@@W4TextElideMode@Qt@@@Z @ 62 NONAME ; void BubbleManager::setLabel(int, class QString const &, enum Qt::TextElideMode) - ?releaseImageIfNotUsed@BubbleManager@@AAEXABVQString@@@Z @ 63 NONAME ; void BubbleManager::releaseImageIfNotUsed(class QString const &) - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/bwins/bubblemanager2u.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneuis/bubblemanager2/bubblecore/bwins/bubblemanager2u.def Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,65 @@ +EXPORTS + ?connectSignals@BubbleManager@@AAEXPAVQGraphicsWidget@@@Z @ 1 NONAME ; void BubbleManager::connectSignals(class QGraphicsWidget *) + ?createConference@BubbleManager@@UAEHHH@Z @ 2 NONAME ; int BubbleManager::createConference(int, int) + ?tr@BubbleManager@@SA?AVQString@@PBD0H@Z @ 3 NONAME ; class QString BubbleManager::tr(char const *, char const *, int) + ?staticMetaObject@BubbleManager@@2UQMetaObject@@B @ 4 NONAME ; struct QMetaObject const BubbleManager::staticMetaObject + ?setState@BubbleManager@@UAEXHW4PhoneCallState@BubbleManagerIF@@@Z @ 5 NONAME ; void BubbleManager::setState(int, enum BubbleManagerIF::PhoneCallState) + ?tr@BubbleManager@@SA?AVQString@@PBD0@Z @ 6 NONAME ; class QString BubbleManager::tr(char const *, char const *) + ?selectionInConference@BubbleManager@@UBEHXZ @ 7 NONAME ; int BubbleManager::selectionInConference(void) const + ??_EBubbleManager@@UAE@I@Z @ 8 NONAME ; BubbleManager::~BubbleManager(unsigned int) + ?addToLayout@BubbleManager@@AAE_NPAVQGraphicsWidget@@@Z @ 9 NONAME ; bool BubbleManager::addToLayout(class QGraphicsWidget *) + ?updateCallTime@BubbleManager@@UAEXHABVQString@@@Z @ 10 NONAME ; void BubbleManager::updateCallTime(int, class QString const &) + ?removeFromLayout@BubbleManager@@AAEXPAVQGraphicsWidget@@@Z @ 11 NONAME ; void BubbleManager::removeFromLayout(class QGraphicsWidget *) + ?polishEvent@BubbleManager@@EAEXXZ @ 12 NONAME ; void BubbleManager::polishEvent(void) + ?graphicsWidgetForAction@BubbleManager@@UBEPAVQGraphicsWidget@@PAVHbAction@@@Z @ 13 NONAME ; class QGraphicsWidget * BubbleManager::graphicsWidgetForAction(class HbAction *) const + ?setCallObjectImage@BubbleManager@@UAEXHABVQString@@@Z @ 14 NONAME ; void BubbleManager::setCallObjectImage(int, class QString const &) + ?isConferenceExpanded@BubbleManager@@UBE_NXZ @ 15 NONAME ; bool BubbleManager::isConferenceExpanded(void) const + ?setNumberType@BubbleManager@@UAEXHW4PhoneNumberType@BubbleManagerIF@@@Z @ 16 NONAME ; void BubbleManager::setNumberType(int, enum BubbleManagerIF::PhoneNumberType) + ?selectView@BubbleManager@@AAEPAVQGraphicsWidget@@XZ @ 17 NONAME ; class QGraphicsWidget * BubbleManager::selectView(void) + ?startChanges@BubbleManager@@UAEXXZ @ 18 NONAME ; void BubbleManager::startChanges(void) + ?removeRowFromConference@BubbleManager@@UAEXH@Z @ 19 NONAME ; void BubbleManager::removeRowFromConference(int) + ?clearActions@BubbleManager@@UAEXH@Z @ 20 NONAME ; void BubbleManager::clearActions(int) + ?qt_metacall@BubbleManager@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 21 NONAME ; int BubbleManager::qt_metacall(enum QMetaObject::Call, int, void * *) + ?findActiveHeader@BubbleManager@@AAE_NHAAPAVBubbleHeader@@@Z @ 22 NONAME ; bool BubbleManager::findActiveHeader(int, class BubbleHeader * &) + ?shownHeaderCount@BubbleManager@@UBEHXZ @ 23 NONAME ; int BubbleManager::shownHeaderCount(void) const + ?setBubbleSelectionDisabled@BubbleManager@@UAEX_N@Z @ 24 NONAME ; void BubbleManager::setBubbleSelectionDisabled(bool) + ??1BubbleManager@@UAE@XZ @ 25 NONAME ; BubbleManager::~BubbleManager(void) + ?findNextDrawableHeader@BubbleManager@@ABEXAAH@Z @ 26 NONAME ; void BubbleManager::findNextDrawableHeader(int &) const + ?trUtf8@BubbleManager@@SA?AVQString@@PBD0@Z @ 27 NONAME ; class QString BubbleManager::trUtf8(char const *, char const *) + ??0BubbleManager@@QAE@PAVQGraphicsItem@@@Z @ 28 NONAME ; BubbleManager::BubbleManager(class QGraphicsItem *) + ?expandedBubble@BubbleManager@@UBEHXZ @ 29 NONAME ; int BubbleManager::expandedBubble(void) const + ?setSelectionIdInConference@BubbleManager@@UAEXH@Z @ 30 NONAME ; void BubbleManager::setSelectionIdInConference(int) + ?moveHighlightOneUpInConference@BubbleManager@@UAEXXZ @ 31 NONAME ; void BubbleManager::moveHighlightOneUpInConference(void) + ?createCallHeader@BubbleManager@@UAEHXZ @ 32 NONAME ; int BubbleManager::createCallHeader(void) + ?setCallObjectFromTheme@BubbleManager@@UAEXH@Z @ 33 NONAME ; void BubbleManager::setCallObjectFromTheme(int) + ?handleOrientationChange@BubbleManager@@QAEXW4Orientation@Qt@@@Z @ 34 NONAME ; void BubbleManager::handleOrientationChange(enum Qt::Orientation) + ?setSecondaryCli@BubbleManager@@UAEXHABVQString@@W4TextElideMode@Qt@@@Z @ 35 NONAME ; void BubbleManager::setSecondaryCli(int, class QString const &, enum Qt::TextElideMode) + ?selectionIdInConference@BubbleManager@@UBEHXZ @ 36 NONAME ; int BubbleManager::selectionIdInConference(void) const + ?addAction@BubbleManager@@UAEXHPAVHbAction@@@Z @ 37 NONAME ; void BubbleManager::addAction(int, class HbAction *) + ?qt_metacast@BubbleManager@@UAEPAXPBD@Z @ 38 NONAME ; void * BubbleManager::qt_metacast(char const *) + ?getStaticMetaObject@BubbleManager@@SAABUQMetaObject@@XZ @ 39 NONAME ; struct QMetaObject const & BubbleManager::getStaticMetaObject(void) + ?moveHighlightOneDownInConference@BubbleManager@@UAEXXZ @ 40 NONAME ; void BubbleManager::moveHighlightOneDownInConference(void) + ?removeConference@BubbleManager@@UAEXXZ @ 41 NONAME ; void BubbleManager::removeConference(void) + ?removeCallHeader@BubbleManager@@UAEXH@Z @ 42 NONAME ; void BubbleManager::removeCallHeader(int) + ?setViewData@BubbleManager@@AAEXPAVQGraphicsWidget@@@Z @ 43 NONAME ; void BubbleManager::setViewData(class QGraphicsWidget *) + ?setPhoneMuted@BubbleManager@@UAEX_N@Z @ 44 NONAME ; void BubbleManager::setPhoneMuted(bool) + ?metaObject@BubbleManager@@UBEPBUQMetaObject@@XZ @ 45 NONAME ; struct QMetaObject const * BubbleManager::metaObject(void) const + ?updateCLI@BubbleManager@@UAEXHABVQString@@W4TextElideMode@Qt@@@Z @ 46 NONAME ; void BubbleManager::updateCLI(int, class QString const &, enum Qt::TextElideMode) + ?addParticipantListAction@BubbleManager@@UAEXPAVHbAction@@@Z @ 47 NONAME ; void BubbleManager::addParticipantListAction(class HbAction *) + ?setCallTime@BubbleManager@@UAEXHABVQString@@@Z @ 48 NONAME ; void BubbleManager::setCallTime(int, class QString const &) + ?endChanges@BubbleManager@@UAEXXZ @ 49 NONAME ; void BubbleManager::endChanges(void) + ?setSelectionInConference@BubbleManager@@UAEXH@Z @ 50 NONAME ; void BubbleManager::setSelectionInConference(int) + ?setParticipantListCli@BubbleManager@@UAEXHW4ParticipantListCli@BubbleManagerIF@@@Z @ 51 NONAME ; void BubbleManager::setParticipantListCli(int, enum BubbleManagerIF::ParticipantListCli) + ?setCallFlag@BubbleManager@@UAEXHV?$QFlags@W4PhoneCallFlag@BubbleManagerIF@@@@_N@Z @ 52 NONAME ; void BubbleManager::setCallFlag(int, class QFlags, bool) + ?setExpandAction@BubbleManager@@UAEXHPAVHbAction@@@Z @ 53 NONAME ; void BubbleManager::setExpandAction(int, class HbAction *) + ?trUtf8@BubbleManager@@SA?AVQString@@PBD0H@Z @ 54 NONAME ; class QString BubbleManager::trUtf8(char const *, char const *, int) + ?showExpanded@BubbleManager@@AAEXH@Z @ 55 NONAME ; void BubbleManager::showExpanded(int) + ?setCli@BubbleManager@@UAEXHABVQString@@W4TextElideMode@Qt@@@Z @ 56 NONAME ; void BubbleManager::setCli(int, class QString const &, enum Qt::TextElideMode) + ?conferenceRowCount@BubbleManager@@UBEHXZ @ 57 NONAME ; int BubbleManager::conferenceRowCount(void) const + ?setExpandedConferenceCallHeader@BubbleManager@@UAEX_N@Z @ 58 NONAME ; void BubbleManager::setExpandedConferenceCallHeader(bool) + ?clearParticipantListActions@BubbleManager@@UAEXXZ @ 59 NONAME ; void BubbleManager::clearParticipantListActions(void) + ?setCallFlags@BubbleManager@@UAEXHH@Z @ 60 NONAME ; void BubbleManager::setCallFlags(int, int) + ?addRowToConference@BubbleManager@@UAEXH@Z @ 61 NONAME ; void BubbleManager::addRowToConference(int) + ?setLabel@BubbleManager@@UAEXHABVQString@@W4TextElideMode@Qt@@@Z @ 62 NONAME ; void BubbleManager::setLabel(int, class QString const &, enum Qt::TextElideMode) + ?releaseImageIfNotUsed@BubbleManager@@AAEXABVQString@@@Z @ 63 NONAME ; void BubbleManager::releaseImageIfNotUsed(class QString const &) + diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/eabi/bubblecoreu.def --- a/phoneuis/bubblemanager2/bubblecore/eabi/bubblecoreu.def Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,109 +0,0 @@ -EXPORTS - _ZN13BubbleManager10endChangesEv @ 1 NONAME - _ZN13BubbleManager10selectViewEv @ 2 NONAME - _ZN13BubbleManager11addToLayoutEP15QGraphicsWidget @ 3 NONAME - _ZN13BubbleManager11polishEventEv @ 4 NONAME - _ZN13BubbleManager11qt_metacallEN11QMetaObject4CallEiPPv @ 5 NONAME - _ZN13BubbleManager11qt_metacastEPKc @ 6 NONAME - _ZN13BubbleManager11setCallFlagEi6QFlagsIN15BubbleManagerIF13PhoneCallFlagEEb @ 7 NONAME - _ZN13BubbleManager11setCallTimeEiRK7QString @ 8 NONAME - _ZN13BubbleManager11setViewDataEP15QGraphicsWidget @ 9 NONAME - _ZN13BubbleManager12clearActionsEi @ 10 NONAME - _ZN13BubbleManager12setCallFlagsEii @ 11 NONAME - _ZN13BubbleManager12showExpandedEi @ 12 NONAME - _ZN13BubbleManager12startChangesEv @ 13 NONAME - _ZN13BubbleManager13setNumberTypeEiN15BubbleManagerIF15PhoneNumberTypeE @ 14 NONAME - _ZN13BubbleManager13setPhoneMutedEb @ 15 NONAME - _ZN13BubbleManager14connectSignalsEP15QGraphicsWidget @ 16 NONAME - _ZN13BubbleManager14updateCallTimeEiRK7QString @ 17 NONAME - _ZN13BubbleManager15setExpandActionEiP8HbAction @ 18 NONAME - _ZN13BubbleManager15setSecondaryCliEiRK7QStringN2Qt13TextElideModeE @ 19 NONAME - _ZN13BubbleManager16createCallHeaderEv @ 20 NONAME - _ZN13BubbleManager16createConferenceEii @ 21 NONAME - _ZN13BubbleManager16findActiveHeaderEiRP12BubbleHeader @ 22 NONAME - _ZN13BubbleManager16removeCallHeaderEi @ 23 NONAME - _ZN13BubbleManager16removeConferenceEv @ 24 NONAME - _ZN13BubbleManager16removeFromLayoutEP15QGraphicsWidget @ 25 NONAME - _ZN13BubbleManager16staticMetaObjectE @ 26 NONAME DATA 16 - _ZN13BubbleManager18addRowToConferenceEi @ 27 NONAME - _ZN13BubbleManager18setCallObjectImageEiRK7QString @ 28 NONAME - _ZN13BubbleManager19getStaticMetaObjectEv @ 29 NONAME - _ZN13BubbleManager21setParticipantListCliEiN15BubbleManagerIF18ParticipantListCliE @ 30 NONAME - _ZN13BubbleManager22setCallObjectFromThemeEi @ 31 NONAME - _ZN13BubbleManager23handleOrientationChangeEN2Qt11OrientationE @ 32 NONAME - _ZN13BubbleManager23removeRowFromConferenceEi @ 33 NONAME - _ZN13BubbleManager24addParticipantListActionEP8HbAction @ 34 NONAME - _ZN13BubbleManager24setSelectionInConferenceEi @ 35 NONAME - _ZN13BubbleManager26setBubbleSelectionDisabledEb @ 36 NONAME - _ZN13BubbleManager26setSelectionIdInConferenceEi @ 37 NONAME - _ZN13BubbleManager27clearParticipantListActionsEv @ 38 NONAME - _ZN13BubbleManager30moveHighlightOneUpInConferenceEv @ 39 NONAME - _ZN13BubbleManager31setExpandedConferenceCallHeaderEb @ 40 NONAME - _ZN13BubbleManager32moveHighlightOneDownInConferenceEv @ 41 NONAME - _ZN13BubbleManager6setCliEiRK7QStringN2Qt13TextElideModeE @ 42 NONAME - _ZN13BubbleManager8setLabelEiRK7QStringN2Qt13TextElideModeE @ 43 NONAME - _ZN13BubbleManager8setStateEiN15BubbleManagerIF14PhoneCallStateE @ 44 NONAME - _ZN13BubbleManager9addActionEiP8HbAction @ 45 NONAME - _ZN13BubbleManager9updateCLIEiRK7QStringN2Qt13TextElideModeE @ 46 NONAME - _ZN13BubbleManagerC1EP13QGraphicsItem @ 47 NONAME - _ZN13BubbleManagerC2EP13QGraphicsItem @ 48 NONAME - _ZN13BubbleManagerD0Ev @ 49 NONAME - _ZN13BubbleManagerD1Ev @ 50 NONAME - _ZN13BubbleManagerD2Ev @ 51 NONAME - _ZNK13BubbleManager10metaObjectEv @ 52 NONAME - _ZNK13BubbleManager14expandedBubbleEv @ 53 NONAME - _ZNK13BubbleManager16shownHeaderCountEv @ 54 NONAME - _ZNK13BubbleManager18conferenceRowCountEv @ 55 NONAME - _ZNK13BubbleManager20isConferenceExpandedEv @ 56 NONAME - _ZNK13BubbleManager21selectionInConferenceEv @ 57 NONAME - _ZNK13BubbleManager22findNextDrawableHeaderERi @ 58 NONAME - _ZNK13BubbleManager23graphicsWidgetForActionEP8HbAction @ 59 NONAME - _ZNK13BubbleManager23selectionIdInConferenceEv @ 60 NONAME - _ZTI13BubbleManager @ 61 NONAME - _ZTV13BubbleManager @ 62 NONAME - _ZThn16_N13BubbleManagerD0Ev @ 63 NONAME - _ZThn16_N13BubbleManagerD1Ev @ 64 NONAME - _ZThn28_N13BubbleManager10endChangesEv @ 65 NONAME - _ZThn28_N13BubbleManager11setCallFlagEi6QFlagsIN15BubbleManagerIF13PhoneCallFlagEEb @ 66 NONAME - _ZThn28_N13BubbleManager11setCallTimeEiRK7QString @ 67 NONAME - _ZThn28_N13BubbleManager12clearActionsEi @ 68 NONAME - _ZThn28_N13BubbleManager12setCallFlagsEii @ 69 NONAME - _ZThn28_N13BubbleManager12startChangesEv @ 70 NONAME - _ZThn28_N13BubbleManager13setNumberTypeEiN15BubbleManagerIF15PhoneNumberTypeE @ 71 NONAME - _ZThn28_N13BubbleManager13setPhoneMutedEb @ 72 NONAME - _ZThn28_N13BubbleManager14updateCallTimeEiRK7QString @ 73 NONAME - _ZThn28_N13BubbleManager15setExpandActionEiP8HbAction @ 74 NONAME - _ZThn28_N13BubbleManager15setSecondaryCliEiRK7QStringN2Qt13TextElideModeE @ 75 NONAME - _ZThn28_N13BubbleManager16createCallHeaderEv @ 76 NONAME - _ZThn28_N13BubbleManager16createConferenceEii @ 77 NONAME - _ZThn28_N13BubbleManager16removeCallHeaderEi @ 78 NONAME - _ZThn28_N13BubbleManager16removeConferenceEv @ 79 NONAME - _ZThn28_N13BubbleManager18addRowToConferenceEi @ 80 NONAME - _ZThn28_N13BubbleManager18setCallObjectImageEiRK7QString @ 81 NONAME - _ZThn28_N13BubbleManager21setParticipantListCliEiN15BubbleManagerIF18ParticipantListCliE @ 82 NONAME - _ZThn28_N13BubbleManager22setCallObjectFromThemeEi @ 83 NONAME - _ZThn28_N13BubbleManager23removeRowFromConferenceEi @ 84 NONAME - _ZThn28_N13BubbleManager24addParticipantListActionEP8HbAction @ 85 NONAME - _ZThn28_N13BubbleManager24setSelectionInConferenceEi @ 86 NONAME - _ZThn28_N13BubbleManager26setBubbleSelectionDisabledEb @ 87 NONAME - _ZThn28_N13BubbleManager26setSelectionIdInConferenceEi @ 88 NONAME - _ZThn28_N13BubbleManager27clearParticipantListActionsEv @ 89 NONAME - _ZThn28_N13BubbleManager30moveHighlightOneUpInConferenceEv @ 90 NONAME - _ZThn28_N13BubbleManager31setExpandedConferenceCallHeaderEb @ 91 NONAME - _ZThn28_N13BubbleManager32moveHighlightOneDownInConferenceEv @ 92 NONAME - _ZThn28_N13BubbleManager6setCliEiRK7QStringN2Qt13TextElideModeE @ 93 NONAME - _ZThn28_N13BubbleManager8setLabelEiRK7QStringN2Qt13TextElideModeE @ 94 NONAME - _ZThn28_N13BubbleManager8setStateEiN15BubbleManagerIF14PhoneCallStateE @ 95 NONAME - _ZThn28_N13BubbleManager9addActionEiP8HbAction @ 96 NONAME - _ZThn28_N13BubbleManager9updateCLIEiRK7QStringN2Qt13TextElideModeE @ 97 NONAME - _ZThn28_NK13BubbleManager14expandedBubbleEv @ 98 NONAME - _ZThn28_NK13BubbleManager16shownHeaderCountEv @ 99 NONAME - _ZThn28_NK13BubbleManager18conferenceRowCountEv @ 100 NONAME - _ZThn28_NK13BubbleManager20isConferenceExpandedEv @ 101 NONAME - _ZThn28_NK13BubbleManager21selectionInConferenceEv @ 102 NONAME - _ZThn28_NK13BubbleManager23graphicsWidgetForActionEP8HbAction @ 103 NONAME - _ZThn28_NK13BubbleManager23selectionIdInConferenceEv @ 104 NONAME - _ZThn8_N13BubbleManagerD0Ev @ 105 NONAME - _ZThn8_N13BubbleManagerD1Ev @ 106 NONAME - _ZN13BubbleManager21releaseImageIfNotUsedERK7QString @ 107 NONAME - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/eabi/bubblemanager2u.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneuis/bubblemanager2/bubblecore/eabi/bubblemanager2u.def Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,109 @@ +EXPORTS + _ZN13BubbleManager10endChangesEv @ 1 NONAME + _ZN13BubbleManager10selectViewEv @ 2 NONAME + _ZN13BubbleManager11addToLayoutEP15QGraphicsWidget @ 3 NONAME + _ZN13BubbleManager11polishEventEv @ 4 NONAME + _ZN13BubbleManager11qt_metacallEN11QMetaObject4CallEiPPv @ 5 NONAME + _ZN13BubbleManager11qt_metacastEPKc @ 6 NONAME + _ZN13BubbleManager11setCallFlagEi6QFlagsIN15BubbleManagerIF13PhoneCallFlagEEb @ 7 NONAME + _ZN13BubbleManager11setCallTimeEiRK7QString @ 8 NONAME + _ZN13BubbleManager11setViewDataEP15QGraphicsWidget @ 9 NONAME + _ZN13BubbleManager12clearActionsEi @ 10 NONAME + _ZN13BubbleManager12setCallFlagsEii @ 11 NONAME + _ZN13BubbleManager12showExpandedEi @ 12 NONAME + _ZN13BubbleManager12startChangesEv @ 13 NONAME + _ZN13BubbleManager13setNumberTypeEiN15BubbleManagerIF15PhoneNumberTypeE @ 14 NONAME + _ZN13BubbleManager13setPhoneMutedEb @ 15 NONAME + _ZN13BubbleManager14connectSignalsEP15QGraphicsWidget @ 16 NONAME + _ZN13BubbleManager14updateCallTimeEiRK7QString @ 17 NONAME + _ZN13BubbleManager15setExpandActionEiP8HbAction @ 18 NONAME + _ZN13BubbleManager15setSecondaryCliEiRK7QStringN2Qt13TextElideModeE @ 19 NONAME + _ZN13BubbleManager16createCallHeaderEv @ 20 NONAME + _ZN13BubbleManager16createConferenceEii @ 21 NONAME + _ZN13BubbleManager16findActiveHeaderEiRP12BubbleHeader @ 22 NONAME + _ZN13BubbleManager16removeCallHeaderEi @ 23 NONAME + _ZN13BubbleManager16removeConferenceEv @ 24 NONAME + _ZN13BubbleManager16removeFromLayoutEP15QGraphicsWidget @ 25 NONAME + _ZN13BubbleManager16staticMetaObjectE @ 26 NONAME DATA 16 + _ZN13BubbleManager18addRowToConferenceEi @ 27 NONAME + _ZN13BubbleManager18setCallObjectImageEiRK7QString @ 28 NONAME + _ZN13BubbleManager19getStaticMetaObjectEv @ 29 NONAME + _ZN13BubbleManager21setParticipantListCliEiN15BubbleManagerIF18ParticipantListCliE @ 30 NONAME + _ZN13BubbleManager22setCallObjectFromThemeEi @ 31 NONAME + _ZN13BubbleManager23handleOrientationChangeEN2Qt11OrientationE @ 32 NONAME + _ZN13BubbleManager23removeRowFromConferenceEi @ 33 NONAME + _ZN13BubbleManager24addParticipantListActionEP8HbAction @ 34 NONAME + _ZN13BubbleManager24setSelectionInConferenceEi @ 35 NONAME + _ZN13BubbleManager26setBubbleSelectionDisabledEb @ 36 NONAME + _ZN13BubbleManager26setSelectionIdInConferenceEi @ 37 NONAME + _ZN13BubbleManager27clearParticipantListActionsEv @ 38 NONAME + _ZN13BubbleManager30moveHighlightOneUpInConferenceEv @ 39 NONAME + _ZN13BubbleManager31setExpandedConferenceCallHeaderEb @ 40 NONAME + _ZN13BubbleManager32moveHighlightOneDownInConferenceEv @ 41 NONAME + _ZN13BubbleManager6setCliEiRK7QStringN2Qt13TextElideModeE @ 42 NONAME + _ZN13BubbleManager8setLabelEiRK7QStringN2Qt13TextElideModeE @ 43 NONAME + _ZN13BubbleManager8setStateEiN15BubbleManagerIF14PhoneCallStateE @ 44 NONAME + _ZN13BubbleManager9addActionEiP8HbAction @ 45 NONAME + _ZN13BubbleManager9updateCLIEiRK7QStringN2Qt13TextElideModeE @ 46 NONAME + _ZN13BubbleManagerC1EP13QGraphicsItem @ 47 NONAME + _ZN13BubbleManagerC2EP13QGraphicsItem @ 48 NONAME + _ZN13BubbleManagerD0Ev @ 49 NONAME + _ZN13BubbleManagerD1Ev @ 50 NONAME + _ZN13BubbleManagerD2Ev @ 51 NONAME + _ZNK13BubbleManager10metaObjectEv @ 52 NONAME + _ZNK13BubbleManager14expandedBubbleEv @ 53 NONAME + _ZNK13BubbleManager16shownHeaderCountEv @ 54 NONAME + _ZNK13BubbleManager18conferenceRowCountEv @ 55 NONAME + _ZNK13BubbleManager20isConferenceExpandedEv @ 56 NONAME + _ZNK13BubbleManager21selectionInConferenceEv @ 57 NONAME + _ZNK13BubbleManager22findNextDrawableHeaderERi @ 58 NONAME + _ZNK13BubbleManager23graphicsWidgetForActionEP8HbAction @ 59 NONAME + _ZNK13BubbleManager23selectionIdInConferenceEv @ 60 NONAME + _ZTI13BubbleManager @ 61 NONAME + _ZTV13BubbleManager @ 62 NONAME + _ZThn16_N13BubbleManagerD0Ev @ 63 NONAME + _ZThn16_N13BubbleManagerD1Ev @ 64 NONAME + _ZThn28_N13BubbleManager10endChangesEv @ 65 NONAME + _ZThn28_N13BubbleManager11setCallFlagEi6QFlagsIN15BubbleManagerIF13PhoneCallFlagEEb @ 66 NONAME + _ZThn28_N13BubbleManager11setCallTimeEiRK7QString @ 67 NONAME + _ZThn28_N13BubbleManager12clearActionsEi @ 68 NONAME + _ZThn28_N13BubbleManager12setCallFlagsEii @ 69 NONAME + _ZThn28_N13BubbleManager12startChangesEv @ 70 NONAME + _ZThn28_N13BubbleManager13setNumberTypeEiN15BubbleManagerIF15PhoneNumberTypeE @ 71 NONAME + _ZThn28_N13BubbleManager13setPhoneMutedEb @ 72 NONAME + _ZThn28_N13BubbleManager14updateCallTimeEiRK7QString @ 73 NONAME + _ZThn28_N13BubbleManager15setExpandActionEiP8HbAction @ 74 NONAME + _ZThn28_N13BubbleManager15setSecondaryCliEiRK7QStringN2Qt13TextElideModeE @ 75 NONAME + _ZThn28_N13BubbleManager16createCallHeaderEv @ 76 NONAME + _ZThn28_N13BubbleManager16createConferenceEii @ 77 NONAME + _ZThn28_N13BubbleManager16removeCallHeaderEi @ 78 NONAME + _ZThn28_N13BubbleManager16removeConferenceEv @ 79 NONAME + _ZThn28_N13BubbleManager18addRowToConferenceEi @ 80 NONAME + _ZThn28_N13BubbleManager18setCallObjectImageEiRK7QString @ 81 NONAME + _ZThn28_N13BubbleManager21setParticipantListCliEiN15BubbleManagerIF18ParticipantListCliE @ 82 NONAME + _ZThn28_N13BubbleManager22setCallObjectFromThemeEi @ 83 NONAME + _ZThn28_N13BubbleManager23removeRowFromConferenceEi @ 84 NONAME + _ZThn28_N13BubbleManager24addParticipantListActionEP8HbAction @ 85 NONAME + _ZThn28_N13BubbleManager24setSelectionInConferenceEi @ 86 NONAME + _ZThn28_N13BubbleManager26setBubbleSelectionDisabledEb @ 87 NONAME + _ZThn28_N13BubbleManager26setSelectionIdInConferenceEi @ 88 NONAME + _ZThn28_N13BubbleManager27clearParticipantListActionsEv @ 89 NONAME + _ZThn28_N13BubbleManager30moveHighlightOneUpInConferenceEv @ 90 NONAME + _ZThn28_N13BubbleManager31setExpandedConferenceCallHeaderEb @ 91 NONAME + _ZThn28_N13BubbleManager32moveHighlightOneDownInConferenceEv @ 92 NONAME + _ZThn28_N13BubbleManager6setCliEiRK7QStringN2Qt13TextElideModeE @ 93 NONAME + _ZThn28_N13BubbleManager8setLabelEiRK7QStringN2Qt13TextElideModeE @ 94 NONAME + _ZThn28_N13BubbleManager8setStateEiN15BubbleManagerIF14PhoneCallStateE @ 95 NONAME + _ZThn28_N13BubbleManager9addActionEiP8HbAction @ 96 NONAME + _ZThn28_N13BubbleManager9updateCLIEiRK7QStringN2Qt13TextElideModeE @ 97 NONAME + _ZThn28_NK13BubbleManager14expandedBubbleEv @ 98 NONAME + _ZThn28_NK13BubbleManager16shownHeaderCountEv @ 99 NONAME + _ZThn28_NK13BubbleManager18conferenceRowCountEv @ 100 NONAME + _ZThn28_NK13BubbleManager20isConferenceExpandedEv @ 101 NONAME + _ZThn28_NK13BubbleManager21selectionInConferenceEv @ 102 NONAME + _ZThn28_NK13BubbleManager23graphicsWidgetForActionEP8HbAction @ 103 NONAME + _ZThn28_NK13BubbleManager23selectionIdInConferenceEv @ 104 NONAME + _ZThn8_N13BubbleManagerD0Ev @ 105 NONAME + _ZThn8_N13BubbleManagerD1Ev @ 106 NONAME + _ZN13BubbleManager21releaseImageIfNotUsedERK7QString @ 107 NONAME + diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/src/bubblebutton.cpp --- a/phoneuis/bubblemanager2/bubblecore/src/bubblebutton.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneuis/bubblemanager2/bubblecore/src/bubblebutton.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -17,6 +17,8 @@ #include #include +#include +#include #include "bubblebutton.h" @@ -44,7 +46,7 @@ bool result = HbPushButton::sceneEvent(event); if (event->type() == QEvent::UngrabMouse) { - if (isDown()) { + if (isVisible() && isDown()) { // this is needed in situation, where // longpress launches a dialog (vmbx) // and button release event goes to @@ -70,22 +72,39 @@ } QString graphicsName; + QColor iconColor; // CSS doesn't work with changing icon color if (isDown()) { if (buttonType()==GreenButton) { graphicsName = "qtg_fr_btn_green_pressed"; + iconColor = HbColorScheme::color("qtc_callhandling_answer_pressed"); } else if (buttonType()==RedButton) { graphicsName = "qtg_fr_btn_red_pressed"; + iconColor = HbColorScheme::color("qtc_callhandling_reject_pressed"); + } else { + iconColor = HbColorScheme::color("qtc_button_pressed"); } } else { if (buttonType()==GreenButton) { graphicsName = "qtg_fr_btn_green_normal"; + iconColor = HbColorScheme::color("qtc_callhandling_answer_normal"); } else if (buttonType()==RedButton) { graphicsName = "qtg_fr_btn_red_normal"; + iconColor = HbColorScheme::color("qtc_callhandling_reject_normal"); + } else { + iconColor = HbColorScheme::color("qtc_button_normal"); } } if (graphicsName.length()) { frame->frameDrawer().setFrameGraphicsName(graphicsName); } + + // set icon color + HbIconItem* iconItem = + qgraphicsitem_cast(HbWidget::primitive("icon")); + + if (iconItem && iconColor.isValid()) { + iconItem->setColor(iconColor); + } } diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/src/bubbleconferencehandler.cpp --- a/phoneuis/bubblemanager2/bubblecore/src/bubbleconferencehandler.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneuis/bubblemanager2/bubblecore/src/bubbleconferencehandler.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -63,6 +63,11 @@ Q_ASSERT(mList); mModel = new BubbleParticipantListModel(); mList->setModel(mModel); + + HbAbstractItemView::ItemAnimations noCreationAndRemovalAnimations = HbAbstractItemView::All; + noCreationAndRemovalAnimations ^= HbAbstractItemView::Appear; + noCreationAndRemovalAnimations ^= HbAbstractItemView::Disappear; + mList->setEnabledAnimations(noCreationAndRemovalAnimations); mPrototype = qobject_cast( @@ -148,6 +153,8 @@ BubbleUtils::setButtonStyleForAction(*mButtonCenter,*action); connect(mButtonCenter, SIGNAL( clicked() ), action, SLOT( trigger() ) ); + connect(mButtonCenter, SIGNAL( longPress(QPointF)), + action, SLOT( trigger() ) ); mButtonCenter->show(); } else if (actions.count()==2 && mButtonLeft && mButtonRight ) { // Left button @@ -156,6 +163,8 @@ BubbleUtils::setButtonStyleForAction(*mButtonLeft,*action1); connect( mButtonLeft, SIGNAL( clicked() ), action1, SLOT( trigger() ) ); + connect(mButtonLeft, SIGNAL( longPress(QPointF)), + action1, SLOT( trigger() ) ); mButtonLeft->show(); // Right button HbAction* action2 = actions.at(1); @@ -163,6 +172,8 @@ BubbleUtils::setButtonStyleForAction(*mButtonRight,*action2); connect( mButtonRight, SIGNAL( clicked() ), action2, SLOT( trigger() ) ); + connect(mButtonRight, SIGNAL( longPress(QPointF)), + action2, SLOT( trigger() ) ); mButtonRight->show(); } } diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/src/bubbleexpandedhandler.cpp --- a/phoneuis/bubblemanager2/bubblecore/src/bubbleexpandedhandler.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneuis/bubblemanager2/bubblecore/src/bubbleexpandedhandler.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -100,6 +100,8 @@ mButtonCenter->setIcon( action->icon() ); connect(mButtonCenter, SIGNAL( clicked() ), action, SLOT( trigger() ) ); + connect(mButtonCenter, SIGNAL( longPress(QPointF)), + action, SLOT( trigger() ) ); BubbleUtils::setButtonStyleForAction(*mButtonCenter,*action); mButtonCenter->show(); } else if (actions.count()==2 && mButtonLeft && mButtonRight ) { @@ -108,6 +110,8 @@ mButtonLeft->setIcon(action1->icon()); connect( mButtonLeft, SIGNAL( clicked() ), action1, SLOT( trigger() ) ); + connect( mButtonLeft, SIGNAL( longPress(QPointF)), + action1, SLOT( trigger() ) ); BubbleUtils::setButtonStyleForAction(*mButtonLeft,*action1); mButtonLeft->show(); // Right button @@ -115,6 +119,8 @@ mButtonRight->setIcon( action2->icon() ); connect( mButtonRight, SIGNAL( clicked() ), action2, SLOT( trigger() ) ); + connect( mButtonRight, SIGNAL( longPress(QPointF)), + action2, SLOT( trigger() ) ); BubbleUtils::setButtonStyleForAction(*mButtonRight,*action2); mButtonRight->show(); } diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/src/bubbleimagewidget.cpp --- a/phoneuis/bubblemanager2/bubblecore/src/bubbleimagewidget.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneuis/bubblemanager2/bubblecore/src/bubbleimagewidget.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -17,6 +17,8 @@ */ #include +#include +#include #include #include #include @@ -28,7 +30,8 @@ QGraphicsItem* parent) : HbWidget(parent), mImageManager(imageManager), - mDefaultAvatar(0) + mDefaultAvatar(0), + mKeepSquareShape(0) { // create avatar mDefaultAvatar = new HbIconItem(this); @@ -50,6 +53,7 @@ void BubbleImageWidget::setImage(const QString& name) { mImageName = name; + mUpdateCount = 0; if (!mImageName.isEmpty()) { mDefaultAvatar->setVisible(false); @@ -75,7 +79,7 @@ { Q_UNUSED(option); Q_UNUSED(widget); - + if (mImageName.isEmpty()) return; @@ -105,3 +109,65 @@ } } + +QSizeF BubbleImageWidget::sizeHint( + Qt::SizeHint which, + const QSizeF & constraint) const +{ + Q_UNUSED(which); + Q_UNUSED(constraint); + + if (mKeepSquareShape && which==Qt::PreferredSize ) { + QSizeF hint(size().height(), size().height()); + if (hint.isNull()) { + hint = QSizeF(100,100); + } + + // workaround, sometimes last resize event is missing + if ((size().width()!=size().height()) && (mUpdateCount<10)) { + BubbleImageWidget* mutableThis = const_cast(this); + mutableThis->updateGeometry(); + mutableThis->mUpdateCount++; // prevent looping + } + + // qDebug() << "size hint: " << hint; + return hint; + } else { + return HbWidget::sizeHint(which,constraint); + } +} + +void BubbleImageWidget::resizeEvent(QGraphicsSceneResizeEvent * event) +{ + // qDebug() << "size:" << event->newSize(); + if ( event->newSize().height()!= event->oldSize().height() && + event->newSize().height() > 1 ) { + updateGeometry(); + } + + HbWidget::resizeEvent(event); +} + +bool BubbleImageWidget::keepSquareShape() const +{ + return mKeepSquareShape; +} + +void BubbleImageWidget::setKeepSquareShape(bool keepSquare) +{ + mKeepSquareShape = keepSquare; + + if (mKeepSquareShape) { + setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding); + } else { + setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); + } + + updateGeometry(); +} + + + + + + diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/src/bubbleimagewidget.h --- a/phoneuis/bubblemanager2/bubblecore/src/bubbleimagewidget.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneuis/bubblemanager2/bubblecore/src/bubbleimagewidget.h Wed Jun 23 18:12:20 2010 +0300 @@ -26,6 +26,8 @@ class BubbleImageWidget : public HbWidget { Q_OBJECT + + Q_PROPERTY(bool keepSquareShape READ keepSquareShape WRITE setKeepSquareShape) public: explicit BubbleImageWidget( @@ -35,6 +37,9 @@ void setImage(const QString& name); + bool keepSquareShape() const; + void setKeepSquareShape(bool keepSquare); + protected slots: void imageLoaded(QString imageFileName); @@ -44,10 +49,18 @@ const QStyleOptionGraphicsItem* option, QWidget* widget); + QSizeF sizeHint( + Qt::SizeHint which, + const QSizeF & constraint) const; + + void resizeEvent(QGraphicsSceneResizeEvent * event); + private: BubbleImageManager& mImageManager; QString mImageName; HbIconItem* mDefaultAvatar; + bool mKeepSquareShape; + int mUpdateCount; }; #endif /* BUBBLEIMAGEWIDGET_H_ */ diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/src/bubblemanager2.cpp --- a/phoneuis/bubblemanager2/bubblecore/src/bubblemanager2.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneuis/bubblemanager2/bubblecore/src/bubblemanager2.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -24,6 +24,7 @@ #include #include #include +#include #include "bubblemanager2.h" #include "bubbleheader.h" diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/src/bubbleutils.cpp --- a/phoneuis/bubblemanager2/bubblecore/src/bubbleutils.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneuis/bubblemanager2/bubblecore/src/bubbleutils.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -266,16 +266,7 @@ if ( (( callState == BubbleManagerIF::Incoming ) || ( callState == BubbleManagerIF::Waiting )) && (callFlags & BubbleManagerIF::Diverted) ) { - icon.setIcon( HbIcon(":/qtg_mono_call_diverted.svg") ); - - // temporary, diverted icon is not yet in theme and - // because of that css coloring doesn't work - QColor color; - color = HbColorScheme::color("qtc_list_item_title_normal"); - if (color.isValid()) { - icon.setColor(Qt::white); - } - + icon.setIcon( HbIcon("qtg_mono_call_diverted") ); icon.show(); } else { icon.setIcon( HbIcon() ); diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_b.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_b.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_bl.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_bl.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_br.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_br.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_c.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_c.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ - - - -]> - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_l.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_l.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_r.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_r.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_t.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_t.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_tl.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_tl.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_tr.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_normal_tr.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_b.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_b.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_bl.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_bl.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_br.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_br.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_c.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_c.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ - - - -]> - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_l.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_l.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_r.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_r.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_t.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_t.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_tl.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_tl.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_tr.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_green_pressed_tr.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_b.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_b.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_bl.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_bl.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_br.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_br.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_c.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_c.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ - - - -]> - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_l.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_l.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_r.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_r.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_t.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_t.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_tl.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_tl.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_tr.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_normal_tr.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_b.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_b.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_bl.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_bl.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_br.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_br.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_c.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_c.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ - - - -]> - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_l.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_l.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_r.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_r.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_t.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_t.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_tl.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_tl.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_tr.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_fr_btn_red_pressed_tr.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_large_active_call.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_large_active_call.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_large_avatar.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_large_avatar.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_large_end_call.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_large_end_call.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_large_video_call_active.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_large_video_call_active.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_large_video_call_waiting.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_large_video_call_waiting.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,137 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_large_voip_call_active.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_large_voip_call_active.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_large_voip_call_waiting.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_large_voip_call_waiting.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_large_waiting_call.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_large_waiting_call.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_mono_call_diverted.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_mono_call_diverted.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_mono_ciphering_off.svg --- a/phoneuis/bubblemanager2/bubblecore/themes/icons/hbdefault/scalable/qtg_mono_ciphering_off.svg Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/xml/bubble_layout_1.docml --- a/phoneuis/bubblemanager2/bubblecore/xml/bubble_layout_1.docml Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneuis/bubblemanager2/bubblecore/xml/bubble_layout_1.docml Wed Jun 23 18:12:20 2010 +0300 @@ -24,13 +24,17 @@
+ + + + - + @@ -54,6 +58,11 @@
+ + + + + @@ -61,24 +70,24 @@ - - + + + + + + - + - - - -
diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/xml/bubble_layout_2.docml --- a/phoneuis/bubblemanager2/bubblecore/xml/bubble_layout_2.docml Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneuis/bubblemanager2/bubblecore/xml/bubble_layout_2.docml Wed Jun 23 18:12:20 2010 +0300 @@ -1,24 +1,10 @@ -
- - - -
-
- - - - - - - -
- +
@@ -44,6 +30,18 @@
+ + + + + + + + + + + + @@ -83,6 +81,20 @@
+ + + + + + + + + + + + + + @@ -101,23 +113,23 @@ + + + + - + - - + + - - - -
diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/xml/bubble_layout_3.docml --- a/phoneuis/bubblemanager2/bubblecore/xml/bubble_layout_3.docml Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneuis/bubblemanager2/bubblecore/xml/bubble_layout_3.docml Wed Jun 23 18:12:20 2010 +0300 @@ -1,25 +1,18 @@ -
- - - - - - @@ -36,52 +29,40 @@ - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -131,6 +112,38 @@
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -161,6 +174,10 @@ + + + + @@ -172,13 +189,9 @@ - - - - - - +
+
diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/xml/bubbleheadingwidget.css --- a/phoneuis/bubblemanager2/bubblecore/xml/bubbleheadingwidget.css Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneuis/bubblemanager2/bubblecore/xml/bubbleheadingwidget.css Wed Jun 23 18:12:20 2010 +0300 @@ -17,36 +17,46 @@ BubbleHeadingWidget:text_line_1 { - preferred-height: var(hb-param-text-height-primary); + text-height: var(hb-param-text-height-primary); left: -var(hb-param-margin-gene-middle-horizontal); color: var(qtc_list_item_title_normal); + text-line-count-min:1; + text-line-count-max:1; } BubbleHeadingWidget:text_line_2[layoutOption!="one_line"] { - preferred-height: var(hb-param-text-height-primary); - preferred-width: -1; + text-height: var(hb-param-text-height-primary); + pref-width: -1; left: -var(hb-param-margin-gene-middle-horizontal); top: -var(hb-param-margin-gene-middle-vertical); text-align: left; color: var(qtc_list_item_title_normal); + text-line-count-min:1; + text-line-count-max:1; + size-policy-horizontal: expanding; } BubbleHeadingWidget:text_line_2[layoutOption="one_line"] { - preferred-height: var(hb-param-text-height-primary); - preferred-width: 30un; + text-height: var(hb-param-text-height-primary); + pref-width: 35un; /* not in spec yet, fixed value needed for localisation */ left: -var(hb-param-margin-gene-middle-horizontal); text-align: right; color: var(qtc_list_item_title_normal); + text-line-count-min:1; + text-line-count-max:1; + size-policy-horizontal: fixed; } BubbleHeadingWidget:text_line_3 { - preferred-height: var(hb-param-text-height-primary); + text-height: var(hb-param-text-height-primary); left: -var(hb-param-margin-gene-middle-horizontal); top: -var(hb-param-margin-gene-middle-vertical); color: var(qtc_list_item_title_normal); + text-line-count-min:1; + text-line-count-max:1; } BubbleHeadingWidget:status_icon diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/bubblecore/xml/bubbleheadingwidget.widgetml --- a/phoneuis/bubblemanager2/bubblecore/xml/bubbleheadingwidget.widgetml Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneuis/bubblemanager2/bubblecore/xml/bubbleheadingwidget.widgetml Wed Jun 23 18:12:20 2010 +0300 @@ -53,7 +53,7 @@ - + diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletest2.pro --- a/phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletest2.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletest2.pro Wed Jun 23 18:12:20 2010 +0300 @@ -19,7 +19,6 @@ TARGET = DEPENDPATH += . CONFIG += hb -QT += network xml INCLUDEPATH += . \ ../../inc win32:INCLUDEPATH += c:/hb/include/hbcore \ @@ -33,11 +32,9 @@ } # Input -HEADERS += bubbletestview.h \ - bubbletester.h +HEADERS += bubbletestview.h SOURCES += main.cpp \ - bubbletestview.cpp \ - bubbletester.cpp + bubbletestview.cpp RESOURCES += bubbletest2.qrc # Libraries diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletester.cpp --- a/phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletester.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,141 +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: Animated icon. -* -*/ - -#include - -#include "bubbletester.h" - - -BubbleTester::BubbleTester() : mLocalSocket(new QLocalSocket()) -{ -} - -BubbleTester::~BubbleTester() -{ - mLocalSocket->disconnectFromServer(); - delete mLocalSocket; -} - -bool BubbleTester::connectToServer() -{ - mLocalSocket->connectToServer("bubbletestserver"); - - // This logic needs to be improved - bool success = mLocalSocket->waitForConnected(500); - - qDebug() << "Socket Connect status: " << success; - - if (success) { - connect(mLocalSocket, SIGNAL(readyRead()), this, SLOT(readData())); - } - - return success; -} - -void BubbleTester::readData() -{ - QByteArray inputByteArray = mLocalSocket->readAll(); - QDataStream inputDataStream(inputByteArray); - QString textDocument; - inputDataStream >> textDocument; - - QString errorStr; - int errorLine; - int errorColumn; - - if (!mDomDocument.setContent(textDocument, true, &errorStr, &errorLine, - &errorColumn)) { - qDebug() << "Cannot read tester data!"; - } else { - emit dataChanged(); - } -} - -QList BubbleTester::bubbles() -{ - QDomNodeList list = mDomDocument.elementsByTagName("bubble"); - - QList testBubbles; - - for (int i=0; i -#include - -class QLocalSocket; - -class BubbleTester : public QObject -{ - Q_OBJECT - -public: - BubbleTester(); - ~BubbleTester(); - - bool connectToServer(); - - QList bubbles(); - QString dataField(const QString& fieldName); - QString dataField(const QString& bubble, const QString& fieldName); - QDomElement bubbleElement(const QString& bubble); - -signals: - void dataChanged(); - -private slots: - void readData(); - -private: - QLocalSocket* mLocalSocket; - QDomDocument mDomDocument; -}; - -#endif // BUBBLETESTER_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletester/bubbledata.cpp --- a/phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletester/bubbledata.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,153 +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: Animated icon. -* -*/ - -#include -#include -#include -#include "bubbledata.h" - -BubbleData::BubbleData( QObject *parent ) : QObject(parent) -{ - QFile file(":/testdata.xml"); - - if (!file.open(QFile::ReadOnly | QFile::Text)) { - QMessageBox::critical((QWidget*)parent, tr("Bubble tester"), - tr("Cannot read testdata.xml") ); - return; - } - - createDomFromFile(&file); -} - -void BubbleData::createDomFromFile(QIODevice *device) -{ - QString errorStr; - int errorLine; - int errorColumn; - - if (!mDomDocument.setContent(device, true, &errorStr, &errorLine, - &errorColumn)) { - QMessageBox::information((QWidget*)parent(), tr("Bubble tester"), - tr("Parse error at line %1, column %2:\n%3") - .arg(errorLine) - .arg(errorColumn) - .arg(errorStr)); - } -} - -QString BubbleData::dataField( const QString& bubble, const QString& fieldName ) -{ - QString text(""); - QDomElement elem = bubbleElement(bubble); - - if (!elem.isNull()) { - QDomNodeList list = elem.elementsByTagName(fieldName); - - if (list.count()) { - QDomNode node = list.at(0); - if (node.isElement()) { - QDomElement e = node.toElement(); - text = e.text(); - } - } - } - - return text; -} - -QDomElement BubbleData::bubbleElement(const QString& bubble) -{ - QDomNodeList list = mDomDocument.elementsByTagName("bubble"); - - QDomElement elem; - - for (int i=0; i -#include - -class BubbleData : public QObject -{ -public: - BubbleData( QObject *parent = 0 ); - - void createDomFromFile(QIODevice *device); - - // generic - QString dataField(const QString& fieldName); - void setDataField(const QString& fieldName, const QString& value); - - // bubble related - QString dataField(const QString& bubble, const QString& fieldName); - void setDataField(const QString& bubble, const QString& fieldName, const QString& value); - - const QDomDocument& document() const; - -private: - QDomElement bubbleElement(const QString& bubble); - -private: - QDomDocument mDomDocument; -}; - -#endif // BUBBLEDATA_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletester/bubbletester.pro --- a/phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletester/bubbletester.pro Fri Jun 04 10:19:18 2010 +0100 +++ /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: -# -# - -TARGET = bubbletester -TEMPLATE = app -QT = core \ - gui \ - svg \ - network \ - xml -SOURCES += main.cpp \ - mainwindow.cpp \ - bubbledata.cpp -HEADERS += mainwindow.h \ - bubbledata.h -FORMS += mainwindow.ui -RESOURCES += bubbletester.qrc diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletester/bubbletester.qrc --- a/phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletester/bubbletester.qrc Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ - - - testdata.xml - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletester/main.cpp --- a/phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletester/main.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /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: Animated icon. -* -*/ - -#include -#include "mainwindow.h" - -int main(int argc, char *argv[]) -{ - QApplication a(argc, argv); - MainWindow w; - w.show(); - w.start(); - return a.exec(); -} diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletester/mainwindow.cpp --- a/phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletester/mainwindow.cpp Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,184 +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: Animated icon. -* -*/ - -#include -#include -#include -#include -#include -#include - -#include "mainwindow.h" -#include "ui_mainwindow.h" -#include "bubbledata.h" - - -MainWindow::MainWindow(QWidget *parent) - : QMainWindow(parent), - ui(new Ui::MainWindow), - mServer(new QLocalServer(this)), - mClientConnection(0), - mStatusLabel(new QLabel(this)), - mBubbleId("1") -{ - ui->setupUi(this); - statusBar()->addWidget(mStatusLabel,1); - - connect( ui->comboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(bubbleChanged()) ); - connect( ui->lineEdit, SIGNAL(editingFinished()), this, SLOT(updateName()) ); - connect( ui->lineEdit_2, SIGNAL(editingFinished()), this, SLOT(updateNumber()) ); - connect( ui->comboBox_2, SIGNAL(currentIndexChanged(int)), this, SLOT(updateState()) ); - connect( ui->checkBox, SIGNAL(stateChanged(int)) , this, SLOT(updateDivert(int)) ); - connect( ui->checkBox_2, SIGNAL(stateChanged(int)) , this, SLOT(updateMute(int)) ); - - mDataModel = new BubbleData(this); - - initUi(); -} - -MainWindow::~MainWindow() -{ - delete ui; - mServer->close(); - delete mServer; -} - - -bool MainWindow::start() -{ - bool success = false; - if (!mServer->listen("bubbletestserver")) { - QMessageBox::critical( this, - tr("Bubble Tester"), - tr("Unable to start the server: %1.").arg(mServer->errorString())); - return success; - } - - mStatusLabel->setText(tr("Server running")); - - connect( mServer, SIGNAL(newConnection()), this, SLOT(clientConnected())); - success = true; - return success; -} - - -void MainWindow::clientConnected() -{ - if (mClientConnection) { - return; - } - - // get the next pending connection - mClientConnection = mServer->nextPendingConnection(); - - mStatusLabel->setText(tr("Connected")); - - connect(mClientConnection, SIGNAL(disconnected()), this, SLOT(clientDisconnected())); -} - -void MainWindow::clientDisconnected() -{ - mClientConnection = 0; - connect((QLocalSocket*)sender(), SIGNAL(disconnected()), (QLocalSocket*)sender(), SLOT(deleteLater())); - mStatusLabel->setText(tr("Disconnected")); -} - -void MainWindow::sendData() -{ - QByteArray block; - QDataStream out(&block, QIODevice::WriteOnly); - - out << mDataModel->document().toString(); - - if (mClientConnection) { - mClientConnection->write(block); - } -} - -void MainWindow::initUi() -{ - ui->lineEdit->setText(mDataModel->dataField(mBubbleId,"name")); - ui->lineEdit_2->setText(mDataModel->dataField(mBubbleId,"number")); - - QString state = mDataModel->dataField(mBubbleId,"state"); - int index = ui->comboBox_2->findText(state); - ui->comboBox_2->setCurrentIndex(index); - - QString divert = mDataModel->dataField(mBubbleId,"divert"); - ui->checkBox->setChecked((divert=="On")); - - QString mute = mDataModel->dataField("mute"); - ui->checkBox_2->setChecked((mute=="On")); -} - -void MainWindow::bubbleChanged() -{ - mBubbleId = ui->comboBox->currentText(); - initUi(); -} - -void MainWindow::updateName() -{ - mDataModel->setDataField(mBubbleId,"name",ui->lineEdit->text()); - sendData(); -} - -void MainWindow::updateNumber() -{ - mDataModel->setDataField(mBubbleId,"number",ui->lineEdit_2->text()); - sendData(); -} - -void MainWindow::updateState() -{ - mDataModel->setDataField(mBubbleId,"state",ui->comboBox_2->currentText()); - sendData(); -} - -void MainWindow::updateDivert(int state) -{ - if (!state) { - mDataModel->setDataField(mBubbleId,"divert","Off"); - } else { - mDataModel->setDataField(mBubbleId,"divert","On"); - } - - sendData(); -} - -void MainWindow::updateMute(int state) -{ - if (!state) { - mDataModel->setDataField("mute","Off"); - } else { - mDataModel->setDataField("mute","On"); - } - - sendData(); -} - - - - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletester/mainwindow.h --- a/phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletester/mainwindow.h Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,69 +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: Animated icon. -* -*/ - -#ifndef MAINWINDOW_H -#define MAINWINDOW_H - -#include - -namespace Ui -{ - class MainWindow; -} - -class QLocalServer; -class QLocalSocket; -class QLabel; -class BubbleData; - -class MainWindow : public QMainWindow -{ - Q_OBJECT - -public: - MainWindow(QWidget *parent = 0); - ~MainWindow(); - - bool start(); - -private slots: - void clientConnected(); - void clientDisconnected(); - - void bubbleChanged(); - void updateName(); - void updateNumber(); - void updateState(); - void updateDivert(int); - void updateMute(int); - - void sendData(); - -private: - void initUi(); - -private: - Ui::MainWindow *ui; - - QLocalServer *mServer; - QLocalSocket *mClientConnection; - QLabel *mStatusLabel; - BubbleData *mDataModel; - QString mBubbleId; -}; - -#endif // MAINWINDOW_H diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletester/mainwindow.ui --- a/phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletester/mainwindow.ui Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,253 +0,0 @@ - - - MainWindow - - - - 0 - 0 - 397 - 277 - - - - Bubble Tester - - - - - - 60 - 20 - 51 - 22 - - - - - 1 - - - - - 2 - - - - - - - 10 - 20 - 41 - 20 - - - - Bubble - - - - - - 10 - 60 - 46 - 14 - - - - Name - - - - - - 60 - 60 - 301 - 20 - - - - Gloria Andersson - - - - - - 10 - 100 - 46 - 14 - - - - Number - - - - - - 60 - 100 - 301 - 20 - - - - +35850123456789 - - - - - - 60 - 140 - 121 - 22 - - - - - Idle - - - - - Incoming - - - - - Outgoing - - - - - Waiting - - - - - Active - - - - - OnHold - - - - - Disconnected - - - - - - - 10 - 140 - 46 - 14 - - - - State - - - - - - 60 - 220 - 71 - 19 - - - - Diverted - - - - - - 10 - 220 - 46 - 14 - - - - Flags - - - - - - 140 - 220 - 71 - 19 - - - - Muted - - - - - - 10 - 180 - 46 - 14 - - - - Type - - - - - - 60 - 180 - 121 - 22 - - - - - Mobile - - - - - Work - - - - - Home - - - - - - - - 0 - 0 - 397 - 19 - - - - - - - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletester/testdata.xml --- a/phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletester/testdata.xml Fri Jun 04 10:19:18 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ - - - - Off - - Elvis Pelvis - 12345 - Idle - Mobile - Off - - - Jim Morrison - 67890 - Idle - Mobile - Off - - - diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletestview.cpp --- a/phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletestview.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletestview.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -22,9 +22,8 @@ #include #include #include - #include "bubbletestview.h" -#include "bubbletester.h" +#include BubbleTestView::BubbleTestView(HbMainWindow& window, QGraphicsItem *parent) : HbView (parent), mMainWindow(window), mMuted(0), mConfBubbleId(-1), @@ -50,33 +49,13 @@ // create actions for push buttons createBubbleActions(); - // tester - mBubbleTester = new BubbleTester(); - connect(mBubbleTester,SIGNAL(dataChanged()),this,SLOT(handleTesterDataChanged())); - mBubbleTester->connectToServer(); - - // create state map - mStateMap.insert("Idle", BubbleManagerIF::None ); - mStateMap.insert("Incoming", BubbleManagerIF::Incoming ); - mStateMap.insert("Active", BubbleManagerIF::Active ); - mStateMap.insert("Disconnected", BubbleManagerIF::Disconnected ); - mStateMap.insert("Outgoing", BubbleManagerIF::Outgoing ); - mStateMap.insert("Waiting", BubbleManagerIF::Waiting ); - mStateMap.insert("OnHold", BubbleManagerIF::OnHold ); - // create label map - mLabelMap.insert("Idle", "" ); - mLabelMap.insert("Incoming", "calling" ); - mLabelMap.insert("Active", "" ); - mLabelMap.insert("Disconnected", "disconnected" ); - mLabelMap.insert("Outgoing", "Calling" ); - mLabelMap.insert("Waiting", "waiting" ); - mLabelMap.insert("OnHold", "on hold" ); + // disable toolbar effects + HbEffect::disable(toolBar()); } BubbleTestView::~BubbleTestView() { toolBar()->clearActions(); - delete mBubbleTester; } void BubbleTestView::keyPressEvent(QKeyEvent *event) @@ -1068,52 +1047,3 @@ } } -void BubbleTestView::connectToTester() -{ - mBubbleTester->connectToServer(); -} - -void BubbleTestView::handleTesterDataChanged() -{ - bubbleManager().startChanges(); - - QString mute = mBubbleTester->dataField("mute"); - bubbleManager().setPhoneMuted( mute == "On" ); - - QList testBubbles = mBubbleTester->bubbles(); - - foreach (QString bubbleId, testBubbles) { - QString state = mBubbleTester->dataField(bubbleId,"state"); - - // create or remove bubble - if ( mTestBubbleIds.contains(bubbleId) && state=="Idle" ) { - bubbleManager().removeCallHeader(mTestBubbleIds.value(bubbleId)); - mTestBubbleIds.remove(bubbleId); - } else if (!mTestBubbleIds.contains(bubbleId) && state!="Idle" ) { - int id = bubbleManager().createCallHeader(); - mTestBubbleIds.insert(bubbleId,id); - } - - // set data - if (mTestBubbleIds.contains(bubbleId)) { - int id = mTestBubbleIds.value(bubbleId); - - QString name = mBubbleTester->dataField(bubbleId,"name"); - QString number = mBubbleTester->dataField(bubbleId,"number"); - QString divert = mBubbleTester->dataField(bubbleId,"divert"); - - bubbleManager().setState(id, mStateMap.value(state)); - bubbleManager().setCli(id, name, Qt::ElideRight); - bubbleManager().setSecondaryCli(id, number ); - bubbleManager().setLabel(id, mLabelMap.value(state), Qt::ElideRight); - - bubbleManager().setCallFlag(id, BubbleManager::Diverted, (divert == "On") ); - - setCallObject(id,":resources/contactpic.jpg"); - - setBubbleActions(id, mStateMap.value(state) ); - } - } - - bubbleManager().endChanges(); -} diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletestview.h --- a/phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletestview.h Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletestview.h Wed Jun 23 18:12:20 2010 +0300 @@ -25,7 +25,6 @@ class HbMainWindow; class QSignalMapper; class HbToolBar; -class BubbleTester; class BubbleManager; class BubbleTestView : public HbView @@ -60,9 +59,6 @@ void switchOrientation(); void handleOrientationChange(Qt::Orientation orientation); - void connectToTester(); - void handleTesterDataChanged(); - private: void keyPressEvent(QKeyEvent *event); @@ -89,7 +85,7 @@ BubbleManager *mBubbleManager; QList mBubbleActions; - // settings + // Settings HbAction *mCallDivert; HbAction *mCipheringOff; HbAction *mCallTimer; @@ -140,10 +136,7 @@ bool mMuted; HbAction *mConnectTester; - BubbleTester *mBubbleTester; QMap mTestBubbleIds; - QMap mStateMap; - QMap mLabelMap; QString mPhoneNumber; int mConfBubbleId; bool mProvideJoin; diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/tsrc/unit/loctest/loctest.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneuis/bubblemanager2/tsrc/unit/loctest/loctest.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,254 @@ +/*! +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Test cases to measure localisation metrics. +* +*/ + +#include +#include + +#include +#include +#include +#include +#include +#include // hb "configure --developer" required +#include + +#include "bubbletest.h" +#include "bubblemanager2.h" + +const int WAIT_TIME = 1000; + +class LocTest : public QObject +{ + Q_OBJECT + +private slots: + void initTestCase(); + void cleanupTestCase(); + + void testPortraitStrings(); + + void changeOrientation(); + + void testLandscapeStrings(); + +private: + void testLabel(int bubbleId, const char *id); + void testCli(int bubbleId, const char *id); + +private: + HbMainWindow* mainWindow; + BubbleManager* bubbleManager; // widget under test + HbAction* toolbarAction; + HbView* view; // not owned +}; + +void LocTest::initTestCase() +{ + mainWindow = new HbMainWindow; + + bubbleManager = new BubbleManager(); + connect(mainWindow,SIGNAL(orientationChanged(Qt::Orientation)), + bubbleManager,SLOT(handleOrientationChange(Qt::Orientation))); + + view = mainWindow->addView( bubbleManager ); + + HbToolBar *toolBar = new HbToolBar(); + toolbarAction = new HbAction(this); + toolBar->addAction( toolbarAction ); + toolBar->addAction( toolbarAction ); + mainWindow->currentView()->setToolBar(toolBar); + + mainWindow->show(); + QTest::qWait( 3000 ); +} + +void LocTest::cleanupTestCase() +{ + delete mainWindow; + delete toolbarAction; +} + +void LocTest::testPortraitStrings() +{ + view->setTitle( "Measuring portrait" ); + + // In portrait all text fields have same width, only font + // is different between label and cli field. + + // create test bubble + bubbleManager->startChanges(); + int bubbleId = bubbleManager->createCallHeader(); + bubbleManager->setState( bubbleId, BubbleManager::Incoming ); + HbAction action1("Answer", this); + action1.setSoftKeyRole(QAction::PositiveSoftKey); + bubbleManager->addAction( bubbleId, &action1 ); + HbAction action2("Reject", this); + action2.setSoftKeyRole(QAction::NegativeSoftKey); + bubbleManager->addAction( bubbleId, &action2 ); + bubbleManager->setCallObjectFromTheme(bubbleId); + bubbleManager->endChanges(); + + QTest::qWait( WAIT_TIME ); + + // measure label texts + testLabel(bubbleId,"txt_phone_other_calling"); + + testLabel(bubbleId,"txt_phone_other_incoming_call"); + + testLabel(bubbleId,"txt_phone_other_waiting"); + + testLabel(bubbleId,"txt_phone_other_on_hold"); + + testLabel(bubbleId,"txt_phone_other_disconnected"); + + testLabel(bubbleId,"txt_phone_other_attempting"); + + // measure cli texts + testCli(bubbleId,"txt_phone_other_conference_call"); + + testCli(bubbleId,"txt_phone_other_unknown_number"); + + testCli(bubbleId,"txt_phone_other_remote_sim"); + + testCli(bubbleId,"txt_phone_other_private_number"); + + testCli(bubbleId,"txt_phone_other_emergency_call"); + + // write results + QTest::qWait( WAIT_TIME ); + HbDeviceProfile profile = HbDeviceProfile::profile(mainWindow); + QFileInfo info(QCoreApplication::applicationFilePath()); + HbTextMeasurementUtility* utility = HbTextMeasurementUtility::instance(); + utility->writeReport(profile, info.baseName()); + utility->reset(); + + QTest::qWait( WAIT_TIME ); + bubbleManager->startChanges(); + bubbleManager->removeCallHeader( bubbleId ); + bubbleManager->endChanges(); + QTest::qWait( WAIT_TIME ); +} + +void LocTest::changeOrientation() +{ + view->setTitle( "Changing orientation" ); + mainWindow->setOrientation(Qt::Horizontal); + mainWindow->resize(640,360); + QTest::qWait(3000); +} + +void LocTest::testLandscapeStrings() +{ + view->setTitle( "Measuring landscape" ); + + // In landscape text field width depends on call situation, + // measure according to most narrow case. + + // create test bubble + bubbleManager->startChanges(); + int bubbleId = bubbleManager->createCallHeader(); + bubbleManager->setState( bubbleId, BubbleManager::OnHold ); + HbAction action1("End call", this); + action1.setSoftKeyRole(QAction::PositiveSoftKey); + bubbleManager->addAction( bubbleId, &action1 ); + bubbleManager->setCallObjectFromTheme(bubbleId); + bubbleManager->endChanges(); + + + // only in single call texts + testLabel(bubbleId,"txt_phone_other_incoming_call"); + + testLabel(bubbleId,"txt_phone_other_attempting"); + + testCli(bubbleId,"txt_phone_other_emergency_call"); + + // multicall + bubbleManager->startChanges(); + int bubbleId2 = bubbleManager->createCallHeader(); + bubbleManager->setState( bubbleId2, BubbleManager::OnHold ); + int bubbleId3 = bubbleManager->createCallHeader(); + bubbleManager->setState( bubbleId3, BubbleManager::Waiting ); + HbAction action2("Replace", this); + action2.setSoftKeyRole(QAction::PositiveSoftKey); + bubbleManager->addAction( bubbleId3, &action1 ); + bubbleManager->setCallObjectFromTheme(bubbleId3); + bubbleManager->endChanges(); + + // measure label texts + testLabel(bubbleId2,"txt_phone_other_calling"); + + testLabel(bubbleId2,"txt_phone_other_waiting"); + + testLabel(bubbleId2,"txt_phone_other_on_hold"); + + testLabel(bubbleId2,"txt_phone_other_disconnected"); + + // measure cli texts + testCli(bubbleId2,"txt_phone_other_conference_call"); + + testCli(bubbleId3,"txt_phone_other_unknown_number"); + + testCli(bubbleId3,"txt_phone_other_remote_sim"); + + testCli(bubbleId3,"txt_phone_other_private_number"); + + // write results + QTest::qWait( WAIT_TIME ); + HbDeviceProfile profile = HbDeviceProfile::profile(mainWindow); + QFileInfo info(QCoreApplication::applicationFilePath()); + HbTextMeasurementUtility* utility = HbTextMeasurementUtility::instance(); + utility->writeReport(profile, info.baseName()); + utility->reset(); + + QTest::qWait( WAIT_TIME ); + bubbleManager->startChanges(); + bubbleManager->removeCallHeader( bubbleId ); + bubbleManager->removeCallHeader( bubbleId2 ); + bubbleManager->removeCallHeader( bubbleId3 ); + bubbleManager->endChanges(); + QTest::qWait( WAIT_TIME ); +} + +void LocTest::testLabel(int bubbleId, const char *id) +{ + HbTextMeasurementUtility* utility = HbTextMeasurementUtility::instance(); + bubbleManager->startChanges(); + bubbleManager->setLabel( bubbleId, hbTrId(id)); + bubbleManager->endChanges(); + utility->measureItems(100); + QTest::qWait( WAIT_TIME ); + bubbleManager->startChanges(); + bubbleManager->setLabel( bubbleId, ""); + bubbleManager->endChanges(); +} + +void LocTest::testCli(int bubbleId, const char *id) +{ + HbTextMeasurementUtility* utility = HbTextMeasurementUtility::instance(); + bubbleManager->startChanges(); + bubbleManager->setCli( bubbleId, hbTrId(id), Qt::ElideRight); + bubbleManager->endChanges(); + utility->measureItems(100); + QTest::qWait( WAIT_TIME ); + bubbleManager->startChanges(); + bubbleManager->setCli( bubbleId, "", Qt::ElideRight); + bubbleManager->endChanges(); +} + +BUBBLE_TEST_MAIN(LocTest) +#include "loctest.moc" + diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/tsrc/unit/loctest/loctest.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneuis/bubblemanager2/tsrc/unit/loctest/loctest.pro Wed Jun 23 18:12:20 2010 +0300 @@ -0,0 +1,35 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# +# + +TEMPLATE = app +TARGET = +INCLUDEPATH += . ../../../inc ../shared + +CONFIG += hb qtestlib + +symbian { + INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE +} else:win32 { + DESTDIR = ./ +} + +# +SOURCES += loctest.cpp + +# +unix:!symbian: LIBS += -L../../../bubblecore +LIBS += -lbubblemanager2 diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/tsrc/unit/ut_bubbleimagemanager/ut_bubbleimagemanager.cpp --- a/phoneuis/bubblemanager2/tsrc/unit/ut_bubbleimagemanager/ut_bubbleimagemanager.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneuis/bubblemanager2/tsrc/unit/ut_bubbleimagemanager/ut_bubbleimagemanager.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -81,7 +81,7 @@ mImageManager->loadImage(imageFile1); // wait loading to finish - QTest::qWait(2*WAIT_TIME); + QTest::qWait(4*WAIT_TIME); QVERIFY(spy.count()==1); QList arguments = spy.takeFirst(); @@ -170,7 +170,7 @@ QString imageFile1 = fileNameWithPath("testpic1.png"); qDebug() << imageFile1; mImageManager->loadImage(imageFile1); - QTest::qWait(50); + QTest::qWait(5); mImageManager->unloadImage(imageFile1); mImageManager->unloadImage("foobar.png"); @@ -186,7 +186,7 @@ qDebug() << imageFile2; mImageManager->loadImage(imageFile2); - QTest::qWait(50); + QTest::qWait(5); mImageManager->unloadImage(imageFile2); // wait loading to finish diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/tsrc/unit/ut_bubbleimagewidget/ut_bubbleimagewidget.cpp --- a/phoneuis/bubblemanager2/tsrc/unit/ut_bubbleimagewidget/ut_bubbleimagewidget.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneuis/bubblemanager2/tsrc/unit/ut_bubbleimagewidget/ut_bubbleimagewidget.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -41,6 +41,8 @@ void testWidePixmap(); void testDefaultAvatar(); + void testSetKeepSquareShape(); + private: QString fileNameWithPath(const QString& fileName); @@ -102,5 +104,17 @@ // there is now way to verify using public API } +void ut_BubbleImageWidget::testSetKeepSquareShape() +{ + mImage->setKeepSquareShape(true); + QVERIFY(mImage->keepSquareShape()==true); + QVERIFY(mImage->sizePolicy().verticalPolicy()==QSizePolicy::Expanding); + QVERIFY(mImage->sizePolicy().horizontalPolicy()==QSizePolicy::Fixed); + mImage->setKeepSquareShape(false); + QVERIFY(mImage->keepSquareShape()==false); + QVERIFY(mImage->sizePolicy().verticalPolicy()==QSizePolicy::Expanding); + QVERIFY(mImage->sizePolicy().horizontalPolicy()==QSizePolicy::Expanding); +} + BUBBLE_TEST_MAIN(ut_BubbleImageWidget) #include "ut_bubbleimagewidget.moc" diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/bubblemanager2/tsrc/unit/ut_bubbleutils/ut_bubbleutils.cpp --- a/phoneuis/bubblemanager2/tsrc/unit/ut_bubbleutils/ut_bubbleutils.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneuis/bubblemanager2/tsrc/unit/ut_bubbleutils/ut_bubbleutils.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -699,12 +699,12 @@ BubbleUtils::setNumberTypeIcon( BubbleManagerIF::Incoming, BubbleManagerIF::Diverted, icon); - QVERIFY(icon.iconName()==":/qtg_mono_call_diverted.svg"); + QVERIFY(icon.iconName()=="qtg_mono_call_diverted"); QVERIFY(icon.isVisible()==true); BubbleUtils::setNumberTypeIcon( BubbleManagerIF::Waiting, BubbleManagerIF::Diverted, icon); - QVERIFY(icon.iconName()==":/qtg_mono_call_diverted.svg"); + QVERIFY(icon.iconName()=="qtg_mono_call_diverted"); QVERIFY(icon.isVisible()==true); BubbleUtils::setNumberTypeIcon( diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/ussdeditor/rom/ussdeditor.iby --- a/phoneuis/ussdeditor/rom/ussdeditor.iby Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneuis/ussdeditor/rom/ussdeditor.iby Wed Jun 23 18:12:20 2010 +0300 @@ -1,19 +1,19 @@ -; -; 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: IBY file for satapp application -; -; +/* +* 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: IBY file for satapp application +* +*/ #ifndef __USSDEDITOR_IBY__ #define __USSDEDITOR_IBY__ @@ -22,5 +22,7 @@ file=ABI_DIR\BUILD_DIR\ussdeditor.exe SHARED_LIB_DIR\ussdeditor.exe data=ZSYSTEM\install\ussdeditor_stub.sis system\install\ussdeditor_stub.sis +data=DATAZ_\RESOURCE_FILES_DIR\ussdeditor.rsc RESOURCE_FILES_DIR\ussdeditor.rsc +data=ZPRIVATE\10003a3f\import\apps\ussdeditor_reg.rsc private\10003a3f\import\apps\ussdeditor_reg.rsc #endif diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/ussdeditor/rom/ussdeditorresources.iby --- a/phoneuis/ussdeditor/rom/ussdeditorresources.iby Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneuis/ussdeditor/rom/ussdeditorresources.iby Wed Jun 23 18:12:20 2010 +0300 @@ -21,9 +21,6 @@ #include -data=DATAZ_\RESOURCE_FILES_DIR\ussdeditor.rsc RESOURCE_FILES_DIR\ussdeditor.rsc -data=ZPRIVATE\10003a3f\import\apps\ussdeditor_reg.rsc private\10003a3f\import\apps\ussdeditor_reg.rsc - -//data=DATAZ_\QT_TRANSLATIONS_DIR\phcltsrvussd.qm QT_TRANSLATIONS_DIR\phcltsrvussd.qm +data=DATAZ_\QT_TRANSLATIONS_DIR\ussd.qm QT_TRANSLATIONS_DIR\ussd.qm #endif diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/ussdeditor/src/main.cpp --- a/phoneuis/ussdeditor/src/main.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneuis/ussdeditor/src/main.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -20,6 +20,7 @@ #include #include #include +#include #include "ussdeditorquery.h" #include "ussdcomms.h" @@ -38,29 +39,33 @@ // Create application instance HbApplication application(argc, argv); TFLOGSTRING("USSDEDITOR: main app") - + + QTranslator translator; + QString path = "Z:/resource/qt/translations/"; + QString lang = QLocale::system().name(); + bool ok = translator.load("ussd_"+lang, path); + TFLOGSTRING2("USSDEDITOR: main, translation %d (1=OK, 0=fail)", ok ) + application.installTranslator(&translator); + // Create main widow HbMainWindow window; window.show(); TFLOGSTRING("USSDEDITOR: main window") - + // Add a virtual view and hidden it HbView *view = new HbView(); - // TODO: Still show - view->setViewFlags(HbView::ViewStatusBarHidden); - view->setViewFlags(HbView::ViewTitleBarHidden); window.addView(view); TFLOGSTRING("USSDEDITOR: main addView") // Create CUssdComms - ussd client CUssdComms *ussdComms = new CUssdComms(view); TFLOGSTRING("USSDEDITOR: main ussdComms") - + // Create HbInputDialog UssdEditorQuery *query = new UssdEditorQuery(*ussdComms); query->show(); TFLOGSTRING("USSDEDITOR: main query") - + // Execute application loop int result = application.exec(); TFLOGSTRING2("USSDEDITOR: main application OUT %d", result) diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/ussdeditor/src/ussdeditorquery.cpp --- a/phoneuis/ussdeditor/src/ussdeditorquery.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneuis/ussdeditor/src/ussdeditorquery.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -46,26 +46,24 @@ :HbInputDialog(parent), mComms(ussd) { TFLOGSTRING("USSDEDITOR: UssdEditorQuery::UssdEditorQuery IN") - setPromptText(hbTrId("Reply")); + setPromptText(hbTrId("txt_ussd_title_reply")); if (lineEdit()){ // Set max length and rows lineEdit()->setMaxLength(KUssdEditorMaxLength); lineEdit()->setMaxRows(KUssdMaxNumberOfEditorLines); lineEdit()->setText(QString()); + lineEdit()->setFocus(); // 0-9, *, +, # - HbEditorInterface interface(lineEdit()); - interface.setFilter(HbPhoneNumberFilter::instance()); - // TODO: cannot open keypad - interface.vkbHost()->openKeypad(); + HbEditorInterface inputMode(lineEdit()); + inputMode.setFilter(HbPhoneNumberFilter::instance()); mComms.appStarting(); // Disable Ok key by default - primaryAction()->setEnabled(false); - + actions().at(0)->setEnabled(false); bool ret(false); - ret = connect(primaryAction(), SIGNAL(triggered(bool)), + ret = connect(actions().at(0), SIGNAL(triggered(bool)), this, SLOT(sendUssdString())); TFLOGSTRING2("USSDEDITOR: UssdEditorQuery::UssdEditorQuery \ connect send %d", ret); @@ -76,7 +74,7 @@ connect ok button %d", ret); // Connect cancel - ret = connect(secondaryAction(), SIGNAL(triggered(bool)), + ret = connect(actions().at(1), SIGNAL(triggered(bool)), this, SLOT(cancelUssdString())); TFLOGSTRING2("USSDEDITOR: UssdEditorQuery::UssdEditorQuery \ connect send %d", ret); @@ -134,9 +132,9 @@ { TFLOGSTRING("USSDEDITOR: UssdEditorQuery::updateButtonVisible IN"); if (text.length() > 0) { - primaryAction()->setEnabled(true); + actions().at(0)->setEnabled(true); } else { - primaryAction()->setEnabled(false); + actions().at(0)->setEnabled(false); } TFLOGSTRING("USSDEDITOR: UssdEditorQuery::updateOkButton OUT"); } diff -r ba76fc04e6c2 -r 6b911d05207e phoneuis/ussdeditor/ussdeditor.pro --- a/phoneuis/ussdeditor/ussdeditor.pro Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneuis/ussdeditor/ussdeditor.pro Wed Jun 23 18:12:20 2010 +0300 @@ -17,8 +17,6 @@ # TEMPLATE = app -#the application will be "invisible" -CONFIG += no_icon TARGET = ussdeditor DEPENDPATH += . @@ -29,9 +27,11 @@ symbian: { -TARGET.CAPABILITY = CAP_GENERAL_DLL +TARGET.CAPABILITY = CAP_APPLICATION NetworkControl TARGET.UID3 = 0x10005955 +RSS_RULES = "hidden = KAppIsHidden;" + INCLUDEPATH += . INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE INCLUDEPATH += MOC_DIR @@ -52,6 +52,5 @@ "rom/ussdeditorresources.iby LANGUAGE_APP_LAYER_IBY_EXPORT_PATH(ussdeditorresources.iby)" \ "rom/ussdeditor_stub.sis /epoc32/data/z/system/install/ussdeditor_stub.sis" -#The next line will be opened when the official translations already -#TRANSLATIONS = phcltsrvussd.ts +TRANSLATIONS = ussd.ts }