S60 3rd Edition SDK for Symbian OS
Example Applications Guide

BrCtlSampleAppQueryDialog.h

00001 /*
00002 * ============================================================================
00003 *  Name        : BrCtlSampleAppQueryDialog.h
00004 *  Part of     : BrCtlSampleApp
00005 *  Interface   : Browser Control API
00006 *  Description : Display a Query Dialog
00007 *  Version     : 
00008 *
00009 *  Copyright (c) 2005-2006 Nokia Corporation.
00010 *  This material, including documentation and any related 
00011 *  computer programs, is protected by copyright controlled by 
00012 *  Nokia Corporation.
00013 * ============================================================================
00014 */
00015 
00016 #ifndef BRCTLSAMPLEAPPQUERYDIALOG_H
00017 #define BRCTLSAMPLEAPPQUERYDIALOG_H
00018 
00019 
00020 //  INCLUDES
00021 
00022 #include <eikdialg.h>
00023 #include <aknmultilinequerycontrol.h>
00024 #include <aknquerydialog.h>
00025 
00026 // CLASS DECLARATION
00027 
00028 /**
00029 *  CBrCtlSampleAppQueryDialog class.
00030 *  This class is used to query the user for text information
00031 */
00032 class CBrCtlSampleAppQueryDialog : public CAknTextQueryDialog
00033     {
00034     public:  // Constructors and destructor
00035     
00036         /**
00037         * C++ default constructor.
00038             * @param aDefInput Input into the dialog
00039             * @param aRetBuf Return buffer
00040         */
00041             CBrCtlSampleAppQueryDialog( TDes& aDefInput, HBufC*& aRetBuf );
00042 
00043         /**
00044         * Destructor.
00045         */
00046         virtual ~CBrCtlSampleAppQueryDialog() {};
00047 
00048     private:    // from CEikDialog
00049 
00050             /**
00051             * Fills the edwins with default values.
00052             */
00053         void  PreLayoutDynInitL();
00054 
00055             /**
00056             * Set the password if the user pressed Ok.
00057             * @param aKeyCode The ID of the pushed button.
00058             * @return May the dialog exit?
00059             */
00060         TBool OkToExitL( TInt aKeycode );
00061 
00062         // MAknQueryControlObserver
00063         TBool HandleQueryEditorStateEventL(CAknQueryControl* aQueryControl, TQueryControlEvent aEventType, TQueryValidationStatus aStatus);
00064 
00065     private:    // Data
00066 
00067         HBufC*& iRetBuf;
00068     };
00069 
00070 #endif // BRCTLSAMPLEAPPQUERYDIALOG_H
00071 
00072 // End of File
00073 

© Nokia 2006

Back to top