controlpanelui/src/cpplugins/profileactivatorplugin/src/cpprofileactivatordialog.h
branchRCL_3
changeset 13 90fe62538f66
equal deleted inserted replaced
12:3fec62e6e7fc 13:90fe62538f66
       
     1 /*
       
     2  * Copyright (c) 2009 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:
       
    15  *
       
    16  */
       
    17 #ifndef CPPROFILEACTIVATORDIALOG_H
       
    18 #define CPPROFILEACTIVATORDIALOG_H
       
    19 
       
    20 #include <hbdialog.h>
       
    21 #include <cpprofilemodel.h>
       
    22 #include <QPointer>
       
    23 class HbRadioButtonList;
       
    24 class HbDataFormModelItem;
       
    25 class CpProfileActivatorEntryItem;
       
    26 class CpSettingFormItemData;
       
    27 class QGraphicsLinearLayout;
       
    28 class QGraphicsWidget;
       
    29 class HbLabel;
       
    30 
       
    31 class CpProfileActivatorDialog: public HbDialog
       
    32 {
       
    33     Q_OBJECT
       
    34 public:
       
    35     explicit CpProfileActivatorDialog(CpSettingFormItemData *profileActivator,
       
    36                                       CpProfileModel &profileModel,
       
    37                                       QGraphicsItem *parent = 0);
       
    38     ~CpProfileActivatorDialog();
       
    39     
       
    40 private slots:
       
    41     void confirmProfileSelection();
       
    42     void cancelProfileSelection();
       
    43 private:
       
    44     CpProfileModel &mProfileModel;
       
    45     HbRadioButtonList *mProfileList;
       
    46     CpSettingFormItemData *mProfileActivator;
       
    47     QPointer<HbAction> mConfirmProfile;
       
    48     QPointer<HbAction> mCancelProfile;
       
    49     QList<ProfileWrapperProfileId> mProfileIds;
       
    50     QGraphicsLinearLayout *mLayout;
       
    51     QGraphicsWidget *mContentWidget;
       
    52     HbLabel *mTitleLabel;
       
    53 };
       
    54 #endif