httpexampleuriquerydialog.cpp

来自「series60 应用程序开发的源代码 series60 应用程序开发的源代码」· C++ 代码 · 共 56 行

CPP
56
字号
/**
*
* @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 + =
减小字号Ctrl + -
显示快捷键?