controlpanelui/src/cpplugins/profileactivatorplugin/src/cpprofileactivatordialog.h
changeset 12 624337f114fe
child 14 23411a3be0db
equal deleted inserted replaced
11:10d0dd0e43f1 12:624337f114fe
       
     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 class HbRadioButtonList;
       
    23 class HbDataFormModelItem;
       
    24 class CpProfileActivatorEntryItem;
       
    25 class CpSettingFormItemData;
       
    26 
       
    27 class CpProfileActivatorDialog: public HbDialog
       
    28 {
       
    29     Q_OBJECT
       
    30 public:
       
    31     explicit CpProfileActivatorDialog(CpSettingFormItemData *profileActivator,
       
    32                                       CpProfileModel &profileModel,
       
    33                                       QGraphicsItem *parent = 0);
       
    34     ~CpProfileActivatorDialog();
       
    35     
       
    36 private slots:
       
    37     void confirmProfileSelection();
       
    38     void cancelProfileSelection();
       
    39 private:
       
    40     CpProfileModel &mProfileModel;
       
    41     HbRadioButtonList *mProfileList;
       
    42     CpSettingFormItemData *mProfileActivator;
       
    43     HbAction *mConfirmProfile;
       
    44     HbAction *mCancelProfile;
       
    45     QList<ProfileWrapperProfileId> mProfileIds;
       
    46 };
       
    47 #endif