pkiutilities/untrustedcertificatedialog/tsrc/dialoglauncher/dialoglauncher.h
branchRCL_3
changeset 22 03674e5abf46
parent 21 09b1ac925e3f
child 23 94da73d93b58
equal deleted inserted replaced
21:09b1ac925e3f 22:03674e5abf46
     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:  Test application for untrusted certificate dialog.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef UNTRUSTEDCERTDIALOGLAUNCHER_H
       
    19 #define UNTRUSTEDCERTDIALOGLAUNCHER_H
       
    20 
       
    21 #include <hbapplication.h>
       
    22 
       
    23 class HbMainWindow;
       
    24 class HbView;
       
    25 class HbComboBox;
       
    26 class HbTextEdit;
       
    27 
       
    28 
       
    29 class UntrustedCertDialogLauncher : public HbApplication
       
    30 {
       
    31     Q_OBJECT
       
    32 
       
    33 public:     // constructor and destructor
       
    34     UntrustedCertDialogLauncher(int& argc, char* argv[]);
       
    35     ~UntrustedCertDialogLauncher();
       
    36 
       
    37 private:    // new functions
       
    38     void activateDialog(const QVariantMap &params);
       
    39     QVariantMap readParams();
       
    40 
       
    41 private slots:  // new functions
       
    42     void activateDialogDateValid();
       
    43     void activateDialogOutOfDate();
       
    44     void activateDialogUntrusted();
       
    45     void activateDialogInvalid();
       
    46     void dataReceived(QVariantMap data);
       
    47     void deviceDialogClosed();
       
    48 
       
    49 private:    // data
       
    50     HbMainWindow *mMainWindow;
       
    51     HbView       *mMainView;
       
    52     HbComboBox   *mFilesList;
       
    53     HbTextEdit   *mHostName;
       
    54 };
       
    55 
       
    56 #endif  // UNTRUSTEDCERTDIALOGLAUNCHER_H
       
    57