📄 httpexampleuriquerydialog.cpp
字号:
/**
*
* @brief Definition of CHTTPExampleUriQueryDialog
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/
// INCLUDE FILES
// Class include
#include "HTTPExampleUriQueryDialog.h"
// System includes
#include <avkon.hrh> // EAknSoftkeyOk
// User includes
// CONSTANTS
// ================= MEMBER FUNCTIONS =======================
/**
* C++ constructor
*/
CHTTPExampleUriQueryDialog::CHTTPExampleUriQueryDialog(TDes& aDataText, const TTone& aTone)
: CAknTextQueryDialog(aDataText, aTone)
{
}
/**
* Override of base class method called when the dialog tries to close.
* @retval ETrue The user has entered a valid URI
* @retval EFalse The user has not entered a valid URI
*/
TBool CHTTPExampleUriQueryDialog::OkToExitL(TInt aButtonId)
{
if (!CAknTextQueryDialog::OkToExitL(aButtonId))
return EFalse;
if (aButtonId == EAknSoftkeyOk)
{
if (iUriParser.Parse(Text()) != KErrNone)
{
return EFalse;
}
}
return ETrue;
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -