⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 soundview.h

📁 该源码主要是示范了如何使用Symbian OS中的一些音频处理类
💻 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__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -