httpclientquery.cpp
来自「《基于Symbian OS的手机开发与应用实践》这本书的配套源码。」· C++ 代码 · 共 48 行
CPP
48 行
/*
* ============================================================================
* Name : CHttpClientQuery from HttpClientQuery.cpp
* Part of : HttpClient
* Created : 07.03.2006 by ToBeReplacedByAuthor
* Implementation notes:
*
* Version :
* Copyright: ToBeReplacedByCopyright
* ============================================================================
*/
// INCLUDE FILES
#include "HttpClientQuery.h"
// CONSTANTS
// HTTP header values
_LIT8(KUserAgent, "HTTPExample (1.0)"); // Name of this client app
_LIT8(KAccept, "text/*"); // Accept any (but only) text content
// ================= MEMBER FUNCTIONS =======================
// Two-phased constructor.
CHttpClientQuery::CHttpClientQuery(TDes& aDataText, const TTone& aTone)
: CAknTextQueryDialog(aDataText, aTone)
{
}
// called when user try to close the dialog
TBool CHttpClientQuery::OkToExitL(TInt aButtonId)
{
if (!CAknTextQueryDialog::OkToExitL(aButtonId))
{
return EFalse;
}
if (aButtonId == EAknSoftkeyOk)
{
if (iParser.Parse(Text()) != KErrNone)
{
return EFalse;
}
}
return ETrue;
}
// End of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?