appinstaller/AppinstUi/sifuidevicedialogplugin/inc/sifuidialogtitlewidget.h
changeset 25 98b66e4fb0be
child 29 26b6f0522fd8
equal deleted inserted replaced
24:84a16765cd86 25:98b66e4fb0be
       
     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: SIF UI dialog title widget.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef SIFUIDIALOGTITLEWIDGET_H
       
    19 #define SIFUIDIALOGTITLEWIDGET_H
       
    20 
       
    21 #include <hbwidget.h>
       
    22 #include "sifuidialogdefinitions.h"         // SifUiDeviceDialogType, SifUiDeviceDialogMode
       
    23 
       
    24 class QGraphicsLinearLayout;
       
    25 class HbLabel;
       
    26 class HbPushButton;
       
    27 
       
    28 
       
    29 class SifUiDialogTitleWidget : public HbWidget
       
    30 {
       
    31     Q_OBJECT
       
    32 
       
    33 public:
       
    34     SifUiDialogTitleWidget(QGraphicsItem *parent=0, Qt::WindowFlags flags=0);
       
    35     virtual ~SifUiDialogTitleWidget();
       
    36 
       
    37     void constructFromParameters(const QVariantMap &parameters);
       
    38     void updateFromParameters(const QVariantMap &parameters);
       
    39 
       
    40 signals:
       
    41     void certificatesClicked();
       
    42 
       
    43 private:
       
    44     Q_DISABLE_COPY(SifUiDialogTitleWidget)
       
    45     QString defaultTitle(SifUiDeviceDialogType type, SifUiDeviceDialogMode mode);
       
    46     void createCertButton();
       
    47     void removeCertButton();
       
    48 
       
    49 private:    // data
       
    50     QGraphicsLinearLayout *mLayout;
       
    51     HbLabel *mTitle;
       
    52     HbPushButton *mCertButton;
       
    53 };
       
    54 
       
    55 #endif // SIFUIDIALOGTITLEWIDGET_H