appinstaller/AppinstUi/sifuidevicedialogplugin/inc/sifuidialogcertificatedetails.h
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
child 27 e8965914fac7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
     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: Certificate details dialog in SifUi
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef SIFUIDIALOGCERTIFICATEDETAILS_H
       
    19 #define SIFUIDIALOGCERTIFICATEDETAILS_H
       
    20 
       
    21 #include <hbdialog.h>                   // HbDialog
       
    22 
       
    23 class SifUiDialogCertificateInfo;
       
    24 
       
    25 
       
    26 /**
       
    27  * SifUi certificate details dialog. Implements selection list and
       
    28  * certificate details dialogs. Selection list is shown first if there
       
    29  * are more than one certificate to be displayed.
       
    30  */
       
    31 class SifUiDialogCertificateDetails : public HbDialog
       
    32 {
       
    33     Q_OBJECT
       
    34 
       
    35 public:     // constructor and destructor
       
    36     SifUiDialogCertificateDetails(const QList<SifUiDialogCertificateInfo*> &certificates);
       
    37     virtual ~SifUiDialogCertificateDetails();
       
    38 
       
    39 public:     // new functions
       
    40     void showDetails();
       
    41 
       
    42 private:    // new functions
       
    43     QString certificateDetails(const SifUiDialogCertificateInfo& certificate);
       
    44     void showList();
       
    45 
       
    46 private slots:
       
    47     void certificateSelected();
       
    48     void showCertificate(int index);
       
    49 
       
    50 private:    // data
       
    51     const QList<SifUiDialogCertificateInfo*> &mCertificates;
       
    52 };
       
    53 
       
    54 #endif // SIFUIDIALOGCERTIFICATEDETAILS_H