www.pudn.com > Full-Duplex_Audio_Example.rar > fullduplexexcontainer.h
/*
* =============================================================================
* Name : FullDuplexExContainer.h
* Part of : FullDuplexEx
* Description : Container (CCoeControl) for displaying simple messages about
the engine state
* Version :
*
* Copyright © 2007 Nokia. All rights reserved.
* This material, including documentation and any related
* computer programs, is protected by copyright controlled by
* Nokia. All rights are reserved. Copying, including
* reproducing, storing, adapting or translating, any
* or all of this material requires the prior written consent of
* Nokia. This material also contains confidential
* information which may not be disclosed to others without the
* prior written consent of Nokia.
* =============================================================================
*/
#ifndef FULLDUPLEXEXCONTAINER_H
#define FULLDUPLEXEXCONTAINER_H
#include
#include "fullduplexengine.h"
// FORWARD DECLARATIONS
class CEikLabel;
/**
@class CFullDuplexExContainer
* An instance of the Application View object for the FocusEvent
example application
*/
class CFullDuplexExContainer : public CCoeControl, public MNotifierCallback
{
public:
/**
* NewL
* Create a CFullDuplexExContainer object, which will draw itself to aRect
* @param aRect the rectangle this view will be drawn to
@result a pointer to the created instance of CFullDuplexExContainer
*/
static CFullDuplexExContainer* NewL(const TRect& aRect);
/**
* ~CFullDuplexExContainer
* Destroy the object and release all memory objects
*/
~CFullDuplexExContainer();
public: // from CCoeControl
/**
* From CCoeControl, ComponentControl
*/
CCoeControl* ComponentControl(TInt aIndex) const;
/**
* From CCoeControl, CountComponentControls
*/
TInt CountComponentControls() const;
/**
* From CCoeControl, SizeChanged
*/
void SizeChanged();
/**
* Draw
* Draw this CFullDuplexExContainer to the screen
* @param aRect the rectangle of this view that needs updating
*/
void Draw(const TRect& aRect) const;
// from MNotifierCallback
/**
* Print
* Display/Write text line on the screen
* @param aText the text to display
*/
void CFullDuplexExContainer::Print(const TDesC& aText);
/**
* UpdateProgress
* Display a rolling progress indicator + buffer size
*/
void CFullDuplexExContainer::UpdateProgress(TInt aBufLen);
/**
* SetCodec
* Sets the current codec (fourCC code) for display purposes
*/
void SetCodec(const TFourCC& aCodec);
private:
/**
* ConstructL
* Performs the 2nd phase construction
* @param aRect the rectangle this view will be drawn to
*/
void ConstructL(const TRect& aRect);
/**
* CFullDuplexExContainer
* Private constructor
*/
CFullDuplexExContainer();
private:
CEikLabel* iText;
TInt iC;
HBufC* iCodec;
};
#endif // FULLDUPLEXEXCONTAINER_H
// End of File