policymanagement/policyengine/policyengineui/inc/PolicyEngineUi.h
changeset 55 1c556dee8eb1
parent 54 085438c28042
child 60 eb6690d0d439
equal deleted inserted replaced
54:085438c28042 55:1c556dee8eb1
     1 /*
       
     2 * Copyright (c) 2000 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: Implementation of policymanagement components
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef POLICYENGINEUI_H
       
    19 #define POLICYENGINEUI_H
       
    20 
       
    21 #include <hbdialog.h>
       
    22 #include <hbdevicedialoginterface.h>
       
    23 
       
    24 class HbDialog;
       
    25 class HbLineEdit;
       
    26 
       
    27 class PolicyEngineUI : public HbDialog, public HbDeviceDialogInterface
       
    28     {
       
    29 Q_OBJECT
       
    30 
       
    31 public:
       
    32     PolicyEngineUI(const QVariantMap& parameters);
       
    33     ~PolicyEngineUI();
       
    34     void DisplayNotificationDialog(const QVariantMap &parameters);
       
    35     void ShowInputDialog();
       
    36     bool verifyFingerPrint();
       
    37 
       
    38 public slots:
       
    39     void onOKSelected();
       
    40     void onCancelSelected();
       
    41     void establishTrust();
       
    42     void cancelTrust();
       
    43     void onTrustCreation();
       
    44     void codeTextChanged();
       
    45 public:
       
    46     //derived from HbDeviceDialogInterface
       
    47     bool setDeviceDialogParameters(const QVariantMap &parameters);
       
    48     int deviceDialogError() const;
       
    49     void closeDeviceDialog(bool byClient);
       
    50     HbDialog *deviceDialogWidget() const;
       
    51 
       
    52 signals:
       
    53     //signal to be sent to client
       
    54     void deviceDialogClosed();
       
    55     void deviceDialogData(QVariantMap data);
       
    56     
       
    57 private:
       
    58     // number of tries user does
       
    59     int estbTrustCount;
       
    60     QString iServerName;
       
    61     QString iFingerprint;
       
    62     QString iCode;
       
    63     HbLineEdit *mContentEdit;
       
    64     HbDialog* mdialog;
       
    65     };
       
    66 
       
    67 #endif // POLICYENGINEUI_H