--- a/phoneclientserver/phoneclient/Inc/UssdWrapper/CPhCltUssdNoteController.h Thu Aug 19 10:28:14 2010 +0300
+++ b/phoneclientserver/phoneclient/Inc/UssdWrapper/CPhCltUssdNoteController.h Tue Aug 31 15:45:17 2010 +0300
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
@@ -21,11 +21,10 @@
// INCLUDES
#include <e32base.h>
-#include "MPhCltUssdNoteControllerCallBack.h"
+#include <hbdeviceprogressdialogsymbian.h>
+#include "mphcltussdnotecontrollercallback.h"
+#include "cphcltussdcommonconstant.h"
-// FORWARD DECLARATIONS
-class CAknGlobalNote;
-class RConeResourceLoader;
// CLASS DECLARATION
@@ -33,12 +32,12 @@
* Encapsulates an active object used in controlling notes.
*
* @lib phoneclient.lib
-* @since 9.1
*/
-NONSHARABLE_CLASS( CPhCltUssdNoteController ) : public CActive
+NONSHARABLE_CLASS( CPhCltUssdNoteController ) : public CBase,
+ public MHbDeviceProgressDialogObserver
{
public: // Constructor and destructor
-
+
/**
* Two-phased constructor.
*
@@ -47,87 +46,67 @@
* @return Pointer to created CPhCltUssdImp instance.
*/
static CPhCltUssdNoteController* NewL(
- MPhCltUssdNoteControllerCallBack& aCallBack,
- TInt aPriority );
-
+ MPhCltUssdNoteControllerCallBack& aCallBack );
+
/**
* Destructor.
*/
~CPhCltUssdNoteController();
-
public:
-
- // Shows information note.
- void ShowInformationNoteL( TInt aResourceId );
-
- // Shows global information note.
- void ShowGlobalInformationNoteL( TInt aResourceId );
-
- // Shows global confirmation note.
- void ShowGlobalConfirmationNoteL( TInt aResourceId );
-
- // Shows global wait note.
- void ShowGlobalWaitNoteL( TInt aResourceId, TInt aSoftkeyResourceId = 0 );
-
- // Destroys global wait note.
+
+ /**
+ * Shows global Information note.
+ */
+ void ShowGlobalInformationNoteL( const TPhCltUssdInformationType aInfoType );
+
+ /**
+ * Shows global wait note.
+ */
+ void ShowGlobalWaitNoteL();
+
+ /**
+ * Destroys global wait note.
+ */
void DestroyGlobalWaitNote();
-
- private:
-
+
+ /**
+ * From base class MHbDeviceProgressDialogObserver
+ */
+ void ProgressDialogCancelled(
+ const CHbDeviceProgressDialogSymbian* aProgressDialog);
+
+ /**
+ * From base class MHbDeviceProgressDialogObserver
+ */
+ void ProgressDialogClosed(
+ const CHbDeviceProgressDialogSymbian* aProgressDialog);
+
+ private:
+
/**
* C++ constructor.
*/
CPhCltUssdNoteController(
- MPhCltUssdNoteControllerCallBack& aCallBack,
- TInt aPriority );
-
- // Symbian 2nd phase constructor.
+ MPhCltUssdNoteControllerCallBack& aCallBack );
+
+ /**
+ * Symbian 2nd phase constructor.
+ */
void ConstructL();
-
- // The note type enumeration, used inside the class.
- enum TPhCltUssdNoteType
- {
- EPhCltUssdInformationNote,
- EPhCltUssdGlobalInformationNote,
- EPhCltUssdGlobalConfirmationNote
- };
- // Shows the note of given type.
- void ShowNoteL( TPhCltUssdNoteType aType, TInt aResourceId );
-
- // Loads the resource file.
- void LoadResourceFileL();
-
- // From base classes
-
- /*
- * From CActive. Called when dialog is dismissed by soft key.
- */
- void RunL();
+ private: // Data
/**
- * From CActive.
+ * Own,Global wait note.
*/
- void DoCancel();
-
+ CHbDeviceProgressDialogSymbian* iGlobalWaitNote;
- private: // Data
-
- // Buffer for messages.
- HBufC* iMessageBuffer;
-
- // Global wait note.
- CAknGlobalNote* iGlobalWaitNote;
-
- // Id of an active wait note.
- TInt iWaitNoteId;
-
- // The callback to be notified when wait note is dismissed.
+ /**
+ * Not own,callback to be notified when wait note is dismissed.
+ */
MPhCltUssdNoteControllerCallBack& iCallBack;
- // Resource loader.
- RConeResourceLoader* iResourceLoader;
};
#endif // CPHCLTUSSDNOTECONTROLLER_H