iaupdate/IAD/ui/inc/iaupdatedialogutil.h
branchRCL_3
changeset 65 7333d7932ef7
parent 0 ba25891c3a9e
child 66 8b7f4e561641
--- a/iaupdate/IAD/ui/inc/iaupdatedialogutil.h	Thu Aug 19 10:02:49 2010 +0300
+++ b/iaupdate/IAD/ui/inc/iaupdatedialogutil.h	Tue Aug 31 15:21:33 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
+* 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"
@@ -11,7 +11,7 @@
 *
 * Contributors:
 *
-* Description:    
+* Description:   This file contains the header file of the IAUpdateDialogUtil class 
 *
 */
 
@@ -20,75 +20,42 @@
 #ifndef IAUPDATEDIALOGUTIL_H
 #define IAUPDATEDIALOGUTIL_H
 
-
-//  INCLUDES
-#include <e32base.h>
-
-
-//FORWARD DECLARATIONS
-class MIAUpdateNode;
-
+#include <QtCore/qmetaobject.h>
+#include <QObject>
+#include <HbAction>
 
-/**
-* TIAUpdateTextLinkObserver
-* 
-* Observer interface function for observing text link.
-*/
-class MIAUpdateTextLinkObserver
-    {
-    public:
-        virtual void TextLinkL( TInt aLinkId ) = 0;
-    };
+class IAUpdateDialogObserver;
 
 
-/**
-* TIAUpdateDialogParam
-*
-* This class is used as general dialog parameter type.
-*/
-class TIAUpdateDialogParam
-	{
+class IAUpdateDialogUtil : public QObject
+{
+    Q_OBJECT
+    
     public:
-		TInt iCountSuccessfull;
-		TInt iCountCancelled;
-		TInt iCountFailed;
-		TInt iShowCloseAllText;
-		TInt iResourceId;
-		MIAUpdateNode* iNode;
-		MIAUpdateTextLinkObserver* iLinkObserver;
-		
-    public:
-    	TIAUpdateDialogParam();
-		
-	};
-
-
-
+            
+    IAUpdateDialogUtil(QObject *parent, IAUpdateDialogObserver *observer = NULL);
+    ~IAUpdateDialogUtil();
 
-/**
-* IAUpdateDialogUtil
-* 
-* IAUpdateDialogUtil contains general dialog utilities.
-*/
-class IAUpdateDialogUtil
-	{
-    public:
-		static void ShowMessageQueryL( const TDesC& aTitle, const TDesC& aText) ;
-		static void ShowMessageQueryL( const TDesC& aTitle, TInt aResource );
-		
-        static void ShowInformationQueryL( const TDesC& aText );
-        static void ShowInformationQueryL( TInt aResource );
+    void showInformation(const QString &text, HbAction *primaryAction);
+    
+    void showQuestion(const QString &text, HbAction *primaryAction, HbAction *secondaryAction);
+    
+    void showAgreement(HbAction *primaryAction, HbAction *secondaryAction = NULL);  
+    
+    public slots:
+
+    void finished(HbAction *action);
+    
+    
+    private:
+    
         
-        static TInt ShowConfirmationQueryL( const TDesC& aText, TInt aSoftkeyResourceId );
-        static TInt ShowConfirmationQueryL( TInt aResource, TInt aSoftkeyResourceId );
-        
-        static void Panic( TInt aReason );
-	};
+    private:
+    
+    IAUpdateDialogObserver* mObserver; //not owned
+    
+};
 
-
-
-
-
-#endif      // IAUPDATEDIALOGUTIL_H
+#endif  // IAUPDATEDIALOGUTIL_H
             
 // End of File