securitydialogs/secuinotifications/secuinotificationdialogplugin/inc/secuinotificationdialog.h
changeset 15 318c4eab2439
child 17 8957df7b0072
equal deleted inserted replaced
14:b75757c81051 15:318c4eab2439
       
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: SecUi notification plugin dialog.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef SECUINOTIFICATIONDIALOG_H
       
    19 #define SECUINOTIFICATIONDIALOG_H
       
    20 
       
    21 #include <hbdialog.h>                   // HbDialog
       
    22 #include <hbdevicedialoginterface.h>    // HbDeviceDialogInterface
       
    23 #include <hbwidget.h>       // HbWidget
       
    24 #include <hblineedit.h>       // HbWidget
       
    25 
       
    26 
       
    27 /**
       
    28  * SW Install notification widget class.
       
    29  */
       
    30 class SecUiNotificationDialog : public HbDialog, public HbDeviceDialogInterface
       
    31 {
       
    32     Q_OBJECT
       
    33 
       
    34 public:     // constructor and destructor
       
    35     SecUiNotificationDialog(const QVariantMap &parameters);
       
    36     virtual ~SecUiNotificationDialog();
       
    37 
       
    38 public:     // from HbDeviceDialogInterface
       
    39     bool setDeviceDialogParameters(const QVariantMap &parameters);
       
    40     int deviceDialogError() const;
       
    41     void closeDeviceDialog(bool byClient);
       
    42     HbDialog *deviceDialogWidget() const;
       
    43 
       
    44 signals:
       
    45     void deviceDialogClosed();
       
    46     void deviceDialogData(const QVariantMap &data);
       
    47 
       
    48 protected:  // from HbPopup (via HbDialog)
       
    49     void hideEvent(QHideEvent *event);
       
    50     void showEvent(QShowEvent *event);
       
    51 
       
    52 private:    // new functions
       
    53     bool constructDialog(const QVariantMap &parameters);
       
    54     void sendResult(bool accepted);
       
    55 
       
    56 private slots:
       
    57     void handleAccepted();
       
    58     void handleCancelled();
       
    59     void handleMemorySelectionChanged(const QString &text);
       
    60     void handleCodeTopChanged(const QString &text);
       
    61 		void saveFocusWidget(QWidget*,QWidget*);
       
    62 		void handlebut1Changed();
       
    63 		void handlebut2Changed();
       
    64 		void handlebut3Changed();
       
    65 
       
    66 private:
       
    67     Q_DISABLE_COPY(SecUiNotificationDialog)
       
    68 
       
    69     int mLastError;
       
    70     bool mShowEventReceived;
       
    71     QVariantMap mResultMap;
       
    72     HbLineEdit *codeTop;
       
    73     HbAction *okAction;
       
    74     HbAction *cancelAction;
       
    75     int queryType;
       
    76 };
       
    77 
       
    78 #endif // SECUINOTIFICATIONDIALOG_H