--- a/iaupdate/IAD/ui/inc/iaupdatedialogutil.h Tue Aug 31 15:21:33 2010 +0300
+++ b/iaupdate/IAD/ui/inc/iaupdatedialogutil.h Wed Sep 01 12:22:02 2010 +0100
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
@@ -11,7 +11,7 @@
*
* Contributors:
*
-* Description: This file contains the header file of the IAUpdateDialogUtil class
+* Description:
*
*/
@@ -20,42 +20,75 @@
#ifndef IAUPDATEDIALOGUTIL_H
#define IAUPDATEDIALOGUTIL_H
-#include <QtCore/qmetaobject.h>
-#include <QObject>
-#include <HbAction>
+
+// INCLUDES
+#include <e32base.h>
+
+
+//FORWARD DECLARATIONS
+class MIAUpdateNode;
+
-class IAUpdateDialogObserver;
+/**
+* TIAUpdateTextLinkObserver
+*
+* Observer interface function for observing text link.
+*/
+class MIAUpdateTextLinkObserver
+ {
+ public:
+ virtual void TextLinkL( TInt aLinkId ) = 0;
+ };
-class IAUpdateDialogUtil : public QObject
-{
- Q_OBJECT
-
+/**
+* TIAUpdateDialogParam
+*
+* This class is used as general dialog parameter type.
+*/
+class TIAUpdateDialogParam
+ {
public:
-
- IAUpdateDialogUtil(QObject *parent, IAUpdateDialogObserver *observer = NULL);
- ~IAUpdateDialogUtil();
+ TInt iCountSuccessfull;
+ TInt iCountCancelled;
+ TInt iCountFailed;
+ TInt iShowCloseAllText;
+ TInt iResourceId;
+ MIAUpdateNode* iNode;
+ MIAUpdateTextLinkObserver* iLinkObserver;
+
+ public:
+ TIAUpdateDialogParam();
+
+ };
+
+
+
- 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:
+/**
+* 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 );
+
+ static TInt ShowConfirmationQueryL( const TDesC& aText, TInt aSoftkeyResourceId );
+ static TInt ShowConfirmationQueryL( TInt aResource, TInt aSoftkeyResourceId );
+
+ static void Panic( TInt aReason );
+ };
- void finished(HbAction *action);
-
-
- private:
-
-
- private:
-
- IAUpdateDialogObserver* mObserver; //not owned
-
-};
+
+
-#endif // IAUPDATEDIALOGUTIL_H
+
+#endif // IAUPDATEDIALOGUTIL_H
// End of File