securitydialogs/secuinotifications/secuinotificationdialogplugin/inc/secuinotificationdialog.h
/*
* 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.h> // HbDialog
#include <hbdevicedialoginterface.h> // HbDeviceDialogInterface
#include <hbwidget.h> // HbWidget
#include <hblineedit.h> // 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