phonesettings/cpphonesettingsplugins/divertplugin/src/cpdivertitemdata.h
changeset 21 92ab7f8d0eab
child 27 2f8f8080a020
equal deleted inserted replaced
4:c84cf270c54f 21:92ab7f8d0eab
       
     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 DIVERTINGITEMDATA_H_
       
    18 #define DIVERTINGITEMDATA_H_
       
    19 
       
    20 #include <cpsettingformitemdata.h>
       
    21 #include <psetwrappertypes.h>
       
    22 #include <cpitemdatahelper.h>
       
    23 
       
    24 class CpDivertItemData : public CpSettingFormItemData
       
    25 {
       
    26     Q_OBJECT
       
    27 public:
       
    28     CpDivertItemData(
       
    29         PsCallDivertingCondition condition,
       
    30         PsServiceGroup serviceGroup,
       
    31         const QString &label,
       
    32         const QString &queryLabel,
       
    33         bool needTimeoutInfo,
       
    34         CpItemDataHelper &helper,
       
    35         const HbDataFormModelItem *parent = 0);
       
    36     
       
    37     ~CpDivertItemData();
       
    38     
       
    39     PsServiceGroup service();
       
    40     
       
    41     PsCallDivertingCondition condition();
       
    42     
       
    43     QString queryLabel();
       
    44     
       
    45     bool needTimeoutInfo();
       
    46 
       
    47 public slots:
       
    48     void thisItemClicked();
       
    49 
       
    50 signals:
       
    51     void itemClicked(CpDivertItemData &item);
       
    52 
       
    53 private:
       
    54     PsServiceGroup m_serviceGroup;
       
    55     PsCallDivertingCondition m_condition;
       
    56     QString m_queryLabel;
       
    57     bool m_needTimeoutInfo;
       
    58     CpItemDataHelper &m_helper;
       
    59 };
       
    60 
       
    61 #endif /* DIVERTINGITEMDATA_H_ */