?? testgnhttpdownappview.cpp
字號(hào):
/*
============================================================================
Name : TestGnHttpDownAppView.cpp
Author :
Copyright : Your copyright notice
Description : Application view implementation
============================================================================
*/
// INCLUDE FILES
#include <coemain.h>
#include "TestGnHttpDownAppView.h"
// ============================ MEMBER FUNCTIONS ===============================
// -----------------------------------------------------------------------------
// CTestGnHttpDownAppView::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CTestGnHttpDownAppView* CTestGnHttpDownAppView::NewL(const TRect& aRect)
{
CTestGnHttpDownAppView* self = CTestGnHttpDownAppView::NewLC(aRect);
CleanupStack::Pop(self);
return self;
}
// -----------------------------------------------------------------------------
// CTestGnHttpDownAppView::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CTestGnHttpDownAppView* CTestGnHttpDownAppView::NewLC(const TRect& aRect)
{
CTestGnHttpDownAppView* self = new (ELeave) CTestGnHttpDownAppView;
CleanupStack::PushL(self);
self->ConstructL(aRect);
return self;
}
// -----------------------------------------------------------------------------
// CTestGnHttpDownAppView::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CTestGnHttpDownAppView::ConstructL(const TRect& aRect)
{
// Create a window for this application view
CreateWindowL();
// Set the windows size
SetRect(aRect);
// Activate the window, which makes it ready to be drawn
ActivateL();
}
// -----------------------------------------------------------------------------
// CTestGnHttpDownAppView::CTestGnHttpDownAppView()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CTestGnHttpDownAppView::CTestGnHttpDownAppView()
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CTestGnHttpDownAppView::~CTestGnHttpDownAppView()
// Destructor.
// -----------------------------------------------------------------------------
//
CTestGnHttpDownAppView::~CTestGnHttpDownAppView()
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CTestGnHttpDownAppView::Draw()
// Draws the display.
// -----------------------------------------------------------------------------
//
void CTestGnHttpDownAppView::Draw(const TRect& /*aRect*/) const
{
// Get the standard graphics context
CWindowGc& gc = SystemGc();
// Gets the control's extent
TRect drawRect(Rect());
// Clears the screen
gc.Clear(drawRect);
}
// -----------------------------------------------------------------------------
// CTestGnHttpDownAppView::SizeChanged()
// Called by framework when the view size is changed.
// -----------------------------------------------------------------------------
//
void CTestGnHttpDownAppView::SizeChanged()
{
DrawNow();
}
// -----------------------------------------------------------------------------
// CTestGnHttpDownAppView::HandlePointerEventL()
// Called by framework to handle pointer touch events.
// Note: although this method is compatible with earlier SDKs,
// it will not be called in SDKs without Touch support.
// -----------------------------------------------------------------------------
//
void CTestGnHttpDownAppView::HandlePointerEventL(
const TPointerEvent& aPointerEvent)
{
// Call base class HandlePointerEventL()
CCoeControl::HandlePointerEventL(aPointerEvent);
}
// End of File
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -