diff -r b75757c81051 -r 318c4eab2439 securitydialogs/secuinotifications/secuinotificationdialogplugin/inc/secuinotificationdialog.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/securitydialogs/secuinotifications/secuinotificationdialogplugin/inc/secuinotificationdialog.h Fri Apr 16 15:53:24 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: SecUi notification plugin dialog. +* +*/ + +#ifndef SECUINOTIFICATIONDIALOG_H +#define SECUINOTIFICATIONDIALOG_H + +#include // HbDialog +#include // HbDeviceDialogInterface +#include // HbWidget +#include // HbWidget + + +/** + * SW Install notification widget class. + */ +class SecUiNotificationDialog : public HbDialog, public HbDeviceDialogInterface +{ + Q_OBJECT + +public: // constructor and destructor + SecUiNotificationDialog(const QVariantMap ¶meters); + virtual ~SecUiNotificationDialog(); + +public: // from HbDeviceDialogInterface + bool setDeviceDialogParameters(const QVariantMap ¶meters); + int deviceDialogError() const; + void closeDeviceDialog(bool byClient); + HbDialog *deviceDialogWidget() const; + +signals: + void deviceDialogClosed(); + void deviceDialogData(const QVariantMap &data); + +protected: // from HbPopup (via HbDialog) + void hideEvent(QHideEvent *event); + void showEvent(QShowEvent *event); + +private: // new functions + bool constructDialog(const QVariantMap ¶meters); + void sendResult(bool accepted); + +private slots: + void handleAccepted(); + void handleCancelled(); + void handleMemorySelectionChanged(const QString &text); + void handleCodeTopChanged(const QString &text); + void saveFocusWidget(QWidget*,QWidget*); + void handlebut1Changed(); + void handlebut2Changed(); + void handlebut3Changed(); + +private: + Q_DISABLE_COPY(SecUiNotificationDialog) + + int mLastError; + bool mShowEventReceived; + QVariantMap mResultMap; + HbLineEdit *codeTop; + HbAction *okAction; + HbAction *cancelAction; + int queryType; +}; + +#endif // SECUINOTIFICATIONDIALOG_H