?? soundview.h
字號:
// Copyright (c) 2003, Nokia Mobile Phones. All rights reserved.
#ifndef __SOUNDVIEW_H__
#define __SOUNDVIEW_H__
#include <coecntrl.h>
#include <coeccntx.h>
class CEikLabel;
class CSoundDocument;
/*!
@class CSoundView
@discussion An instance of the Application View object for the Sound
example application
*/
class CSoundView : public CCoeControl
{
public:
/*!
@function NewL
@discussion Create a CSoundView object, which will draw itself to aRect
@param aRect the rectangle this view will be drawn to
@param aMessage the text to use for the label
@result a pointer to the created instance of CSoundView
*/
static CSoundView* NewL(const TRect& aRect, const TDesC& aMessage);
/*!
@function NewLC
@discussion Create a CSoundView object, which will draw itself to aRect
@param aRect the rectangle this view will be drawn to
@param aMessage the text to use for the label
@result a pointer to the created instance of CSoundView
*/
static CSoundView* NewLC(const TRect& aRect, const TDesC& aMessage);
/*!
@function ~CSoundView
@discussion Destroy the object
*/
~CSoundView();
/*!
@function NotifyStatusL
@discussion Display a string identifying the current audio utility
@param aMessage the string to be displayed
*/
void NotifyStatusL(const TDesC& aMessage);
public: // from CCoeControl
/*!
@function Draw
@discussion Draw this CSoundView to the screen
@param aRect the rectangle of this view that needs updating
*/
void Draw(const TRect& aRect) const;
protected: // From CCoeControl
/*!
@function CountComponentControls
@discussion Count the number of component controls that the application view owns
@result the number of controls
*/
TInt CountComponentControls() const;
/*!
@function ComponentControl
@discussion Return a pointer to the 'aIndex'th component control.
@param aIndex the index of the control to return
@result a pointer to the 'aIndex'th component control
*/
CCoeControl* ComponentControl(TInt aIndex) const;
/*!
@function SizeChanged
@discussion Respond to size changed.
*/
void SizeChanged();
private:
/*!
@function CSoundView
@discussion Perform the first phase of two phase construction
*/
CSoundView();
/*!
@function ConstructL
@discussion Perform the second phase construction of a CSoundView object
@param aRect the rectangle this view will be drawn to
@param aMessage the text to use for the label
*/
void ConstructL(const TRect& aRect, const TDesC& aMessage);
private:
/*! @var iLabel the label for displaying the current sound utility identifier */
CEikLabel* iLabel;
/*! @var iBrushStyle the brush style */
CWindowGc::TBrushStyle iBrushStyle;
/*! @var iBrushColor the brush color */
TRgb iBrushColor;
};
#endif // __SOUNDVIEW_H__
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -