fmradio/fmradio/inc/fmradiofrequencyquerydialog.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:30:32 +0100
branchRCL_3
changeset 20 93c594350b9a
parent 0 f3d95d9c00ab
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201031 Kit: 201035

/*
* Copyright (c) 2005-2006 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 CFMRadioFrequencyQueryDialog
*
*/


#ifndef FMRADIOFREQUENCYQUERYDIALOG_H
#define FMRADIOFREQUENCYQUERYDIALOG_H

#include <AknQueryDialog.h>

/**
 * Custom query dialog for frequency.
 */
class CFMRadioFrequencyQueryDialog : public CAknQueryDialog
    {

public:  // Methods

    /**
     * Static constructor.
     */
    static CFMRadioFrequencyQueryDialog* NewL( TUint32& aFreq, 
        const TTone& aTone = ENoTone );
    
    /**
     * Destructor.
     */
    ~CFMRadioFrequencyQueryDialog();

	/**
     * Returns the frequency currently set in this dialog.
     *
     * @return ?description
     */
	TUint32 Frequency() const;

    // from base class MAknQueryControlObserver
	/**
     * From MAknQueryControlObserver 
     *
     * @see MAknQueryControlObserver::HandleQueryEditorStateEventL
	 */
	TBool HandleQueryEditorStateEventL( 
	    CAknQueryControl* aQueryControl, 
	    TQueryControlEvent aEventType, 
	    TQueryValidationStatus aStatus );
    
protected:  // Methods
   
    // from base class CAknQueryDialog
    /**
     * From CAknQueryDialog 
     * 
     * @see CAknQueryDialog::QueryControl() const
     */
    CAknQueryControl* QueryControl() const;

	/**
	 * From CAknQueryDialog 
	 * 
	 * @see CAknQueryDialog::UpdateLeftSoftKeyL()
	 */
	void UpdateLeftSoftKeyL();

	/**
     * From CAknQueryDialog OkToExitL
     */
	TBool OkToExitL(TInt aButtonId);

    // from base class CEikDialog
	/**
     * From CEikDialog
     *
     * @see CEikDialog::PreLayoutDynInitL()
     */
	void PreLayoutDynInitL();

private: //Methods

	/**
     * C++ default constructor.
     */
    CFMRadioFrequencyQueryDialog( TUint32& aFreq, const TTone& aTone = ENoTone );


private:

	/** 
	 * Current frequency 
	 */
    TUint32& iFreq;

    };

#endif      // FMRADIOFREQUENCYQUERYDIALOG_H