sdkcreationmw/sdkruntimes/GuiLauncher/inc/EcmtGuiSettingItem.h
author rajpuroh
Mon, 08 Mar 2010 12:09:11 +0530
changeset 0 b26acd06ea60
permissions -rw-r--r--
First Contribution of SDK components
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     1
/*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     2
* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     3
* All rights reserved.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     4
* This component and the accompanying materials are made available
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     6
* which accompanies this distribution, and is available
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     8
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     9
* Initial Contributors:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    11
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    12
* Contributors:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    13
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    14
* Description:  This class is for accessing the user selected item texts from
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    15
                 settingpage.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    16
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    17
*/
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    18
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    19
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    20
#ifndef ECMTGUISETTINGITEM_H
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    21
#define ECMTGUISETTINGITEM_H
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    22
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    23
#include <aknsettingitemlist.h> 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    24
#include "ecmtguisettinglist.h"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    25
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    26
/**
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    27
 *  This class is for accessing the user selected item texts from
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    28
 *  settingpage.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    29
 *
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    30
 *  @since S60 v3.1
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    31
 */
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    32
class CEcmtGuiSettingItem : public CAknEnumeratedTextPopupSettingItem
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    33
    {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    34
        
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    35
public:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    36
    
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    37
    /**
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    38
     * C++ default constructor.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    39
     */
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    40
    CEcmtGuiSettingItem( CEcmtGuiSettingList& aSettingList,
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    41
                         TInt aIdentifier, TInt& aValue );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    42
    
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    43
    /**
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    44
     * Destructor.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    45
     */
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    46
    ~CEcmtGuiSettingItem();        
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    47
    
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    48
public: // from CAknSettingItem
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    49
    
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    50
    /**
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    51
     * From CAknSettingItem.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    52
     * Handles setting page events. From here it is possible to access
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    53
     * to selected item texts after OK softkey pressing.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    54
     *
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    55
     * @param aSettingPage The setting page.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    56
     * @param aEventType The event.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    57
     */
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    58
    void HandleSettingPageEventL( CAknSettingPage* aSettingPage,  
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    59
                                    TAknSettingPageEvent aEventType );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    60
    
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    61
private: //Data
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    62
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    63
    /**
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    64
     * Reference to CEcmtGuiSettingList object. Needed from 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    65
     * HandleSettingPageEventL
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    66
     */
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    67
    CEcmtGuiSettingList& iSettingList;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    68
    
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    69
    };
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    70
    
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    71
#endif //ECMTGUISETTINGITEM_H