diff -r 594d59766373 -r 7d48bed6ce0c phoneclientserver/phoneserver/Inc/Ussd/CPhSrvUssdManager.h --- a/phoneclientserver/phoneserver/Inc/Ussd/CPhSrvUssdManager.h Thu Aug 19 10:28:14 2010 +0300 +++ b/phoneclientserver/phoneserver/Inc/Ussd/CPhSrvUssdManager.h Tue Aug 31 15:45:17 2010 +0300 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of "Eclipse Public License v1.0" @@ -21,11 +21,11 @@ // INCLUDES #include // ETel -#include "PhCltClientServer.h" -#include "MPhSrvUssdNetworkObserver.h" -#include "MPhSrvUssdReplyTimerObserver.h" +#include "phcltclientserver.h" +#include "mphsrvussdnetworkobserver.h" +#include "mphsrvussdreplytimerobserver.h" #include - +#include // FORWARD DECLARATIONS class RFs; @@ -35,11 +35,8 @@ class CPhSrvUssdReplyTimer; class MPhSrvPhoneInterface; class MPhSrvUssdMessageSentObserver; -class CAknGlobalMsgQuery; class CPhSrvUssdSessionCancelWaiter; class CPhSrvUssdNotifyNWRelease; -// RM-RIM 417-66528 -class CUssdExtensionInterface; // CLASS DECLARATION @@ -51,7 +48,8 @@ class CPhSrvUssdManager : public CActive, public MPhSrvUssdNetworkObserver, - public MPhSrvUssdReplyTimerObserver + public MPhSrvUssdReplyTimerObserver, + public MHbDeviceMessageBoxObserver { public: // Constructors and destructor @@ -163,6 +161,12 @@ */ void UssdReplyTimerObserverHandleExpiredL( TInt aError ); + /** + * @see MHbDeviceMessageBoxObserver + */ + void MessageBoxClosed(const CHbDeviceMessageBoxSymbian* aMessageBox, + CHbDeviceMessageBoxSymbian::TButtonId aButton); + /* * @see CActive */ @@ -177,8 +181,6 @@ * @see CActive */ TInt RunError( TInt aError ); - - private: // New functions @@ -216,18 +218,6 @@ const TDes8& aMsgData, const RMobileUssdMessaging::TMobileUssdAttributesV1& aMsgAttributes); - - // RM-RIM 417-66528 - /** Third stage handler for received messages meant for extension - */ - void PorcessReceivedMessageInExtesnionL(const TDes8& aMsgData, - const RMobileUssdMessaging::TMobileUssdAttributesV1& - aMsgAttributes); - /** Third stage handler for received messages - */ - void ProcessReceivedMessageL(const TDes8& aMsgData, - const RMobileUssdMessaging::TMobileUssdAttributesV1& - aMsgAttributes); // Restart the reply timer void RestartReplyTimerL(); @@ -237,11 +227,6 @@ // Set timer and activate it if there are notifications available void SetActiveIfPendingNotificationsExist(); - // RM-RIM 417-66528 - // Create and Initialize the global message query - void CreateGlobalMessageQueryL( - const RMobileUssdMessaging::TMobileUssdAttributesV1& - aMsgAttributes); // Launch the global message query (used from RunL) void LaunchGlobalMessageQueryL(); @@ -322,7 +307,7 @@ * * @since 3.1 */ - void UpdateNotifyMessage(); + void UpdateNotifyMessageL(); /** * Turn lights on @@ -330,9 +315,15 @@ * @since 3.1 */ void TurnLightsOn(); + + /** + * Load default string by QT style localization + * @param aText default string id defined by _LIT + */ + const TPtrC LoadDefaultString( const TDesC& aText ); private: // Data - + // The file session reference. RFs& iFsSession; @@ -361,8 +352,8 @@ TBuf< KPhCltUssdMax8BitCharacters > iReceivedMessage; // The message query for showing USSD operation queries. - CAknGlobalMsgQuery* iGlobalMsgQuery; - + CHbDeviceMessageBoxSymbian* iDeviceDialog; + // Is editor emptied. TBool iEmptyEditor; @@ -393,9 +384,6 @@ // Local Telephony variant read-only data. TInt iVariantReadOnlyValues; - // The message query header text. - HBufC* iMeQuHeaderText; - // The buffer for received decoded message. TBuf< KPhCltUssdMax8BitCharacters > iDecodedMessage; @@ -423,7 +411,7 @@ // Show Done note TBool iShowDone; - // Checks if received message type is Reply + // Checks if received message type is Reply TBool iMsgTypeReply; // Has the transaction been closed or not @@ -438,9 +426,8 @@ // An asynchronous callback for sending MO ACK messages CAsyncCallBack* iMoAckCallback; - // RM-RIM 417-66528 - // Pointer to the UssdExtension - CUssdExtensionInterface* iUssdExtnInterface; + HBufC* iTextBuffer; + }; #endif // CPHSRVUSSDMANAGER_H