📄 httpclientquery.cpp
字号:
/*
* ============================================================================
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -