📄 filefetcherappview.h
字号:
/*
* ============================================================================
* Name : FileFetcherAppView.h
* Part of : File fetching Example
* Created : 12/9/2003 by Forum Nokia
* Implementation notes:
*
*
* Version : 1.0
* Copyright: Nokia Corporation
* ============================================================================
*/
#ifndef __FILEFETCHER_APPVIEW_H__
#define __FILEFETCHER_APPVIEW_H__
#include <coecntrl.h>
#include <eikrted.h>
/*
* Forward declarations
*/
class CEikLabel;
/*
*
* Application's view. Contains only one label in this application.
*
*/
class CFileFetcherAppView : public CCoeControl,
public MCoeControlObserver
{
public:
/*
* NewL()
*
* Create a CFileFetcherAppView object.
*
* Params:
* aRect: Extents of the view.
*
* Returns:
* A pointer to the created instance of CFileFetcherAppView
*
*/
static CFileFetcherAppView* NewL(const TRect& aRect);
/*
* NewLC()
*
* Create a CFileFetcherAppView object.
*
* Params:
* aRect: Extents of the view.
*
* Returns:
* A pointer to the created instance of CFileFetcherAppView
*
*/
static CFileFetcherAppView* NewLC(const TRect& aRect);
/*
* ~CFileFetcherAppView()
*
* Destructor of CFileFetcherAppView.
*
* Params:
* -
*
* Returns:
* -
*
*/
~CFileFetcherAppView();
/*
* From CCoeControl
*/
public:
/*
* Draw()
*
* Draws the view.
*
* Params:
* aRect:
*
* Returns:
* -
*
*/
void Draw(const TRect& aRect) const;
/*
* SizeChanged()
*
* Called when the size of this control has changed.
*
* Params:
* -
*
* Returns:
* -
*
*/
void SizeChanged();
/*
* From MCoeControlObserver
*/
private:
/*
* CountComponentControls()
*
* Gets the number of controls contained in this compound control.
*
* Params:
* -
*
* Returns:
* Number of controls.
*
*/
TInt CountComponentControls() const;
/*
* ComponentControl()
*
* Gets the specified component of a compound control.
*
* Params:
* aIndex:
*
* Returns:
* Pointer to control with index aIndex.
*
*/
CCoeControl* ComponentControl(TInt aIndex) const;
/*
* OfferKeyEventL()
*
* Handles key events passed to this control (view).
*
* Params:
* aKeyEvent: The key event.
* aType: The type of key event: EEventKey, EEventKeyUp or
* EEventKeyDown.
*
* Returns:
* -
*
*/
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
/*
* HandleControlEventL()
*
* Handles control events.
*
* Params:
* aControl: Control
* aEventType: Event type
*
* Returns:
* -
*
*/
void HandleControlEventL( CCoeControl* /* aControl */,
TCoeEvent /* aEventType */ );
private:
/*
* ConstructL()
*
* Perform the second phase construction of a CFileFetcherAppView object.
*
* Params:
* aRect: Extents of the view.
*
* Returns:
* -
*
*/
void ConstructL(const TRect& aRect);
/*
* CFileFetcherAppView()
*
* Perform the first phase of two phase construction.
*
* Params:
* -
*
* Returns:
* -
*
*/
CFileFetcherAppView();
private:
CEikLabel* iLabel;
};
#endif // __FILEFETCHER_APPVIEW_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -