cmmanager/gsconnsettingsplugin/inc/gsconnsettingsselectiondlg.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 03 May 2010 12:53:07 +0300
changeset 20 9c97ad6591ae
parent 0 5a93021fdf25
child 45 4c83dcfb6f1a
permissions -rw-r--r--
Revision: 201015 Kit: 201018

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:    Header file for CGSConnSettingsSelectionDlg class
*
*/

#ifndef GSCONNSETTINGSSELECTIONDLG_H
#define GSCONNSETTINGSSELECTIONDLG_H

#include <aknradiobuttonsettingpage.h>
#include <AknInfoPopupNoteController.h>

class CGSConnSettingsSelectionDlg : public CAknRadioButtonSettingPage
    {
    
public:
    
    /**
     * Symbian OS two-phased constructor
     * 
     * @param aResourceID               Text at top of setting pane
     * @param aCurrentSelectionIndex    Current slected item
     * @param aItemArray                Pointer to array of loaded resource texts for radio buttons
     * @param aPopupResource            ID of popup note resource array
     * @return 
     * 
    */
    static CGSConnSettingsSelectionDlg* NewL(TInt aResourceID, 
            TInt& aCurrentSelectionIndex, 
            const MDesCArray* aItemArray,
            TInt aPopupResource);
    
    /**
     * Symbian OS two-phased constructor
     * 
     * @param aPopupResource    ID of popup note resource array
    */
    void ConstructL(TInt aPopupResource);
    
    /**
     * C++ default constructor.
     *
     * @param aResourceID               Text at top of setting pane
     * @param aCurrentSelectionIndex    Current slected item
     * @param aItemArray                Pointer to array of loaded resource texts for radio buttons
     * @param aPopupResource            ID of popup note resource array
    */
    CGSConnSettingsSelectionDlg( 
            TInt aResourceID, 
            TInt& aCurrentSelectionIndex, 
            const MDesCArray* aItemArray,
            TInt aPopupResource);
    /**
     * Destructor.
     */
    virtual ~CGSConnSettingsSelectionDlg();
    
private:
    //From CAknListBoxSettingPage
    void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType);
    
    //From CAknSettingPage
    TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType);

private:
    //New Functions

    /**
    * Displays info popup on the screen
    * 
    */
    void ShowInfoPopupL();

private: //Private data

    /**
     * Pointer to popup note controller. Owned.
     */
    CAknInfoPopupNoteController* iPopupController;
    
    /**
     * Pointer to loaded popup note resources. Owned.
     */
    CDesCArrayFlat* iPopupItems;

    };
#endif // GSCONNSETTINGSSELECTIONDLG_H