📄 newapp11container2.h
字号:
/*
============================================================================
Name : CNewApp11Container2 from NewApp11Container2.h
Author :
Version :
Copyright : Your copyright notice
Description : Declares container control for application.
============================================================================
*/
#ifndef NEWAPP11CONTAINER2_H
#define NEWAPP11CONTAINER2_H
// INCLUDES
#include <coecntrl.h>
#include <eikedwin.h>
#include <eikenv.h>
#include <aknenv.h>
#include <aknindicatorcontainer.h> //for CAknIndicatorContainer
#include <avkon.hrh>
#include <eikrted.h>
#include "UINotifier.h"
// FORWARD DECLARATIONS
class CEikLabel; // for example labels
class CSocketsEngine;
// CLASS DECLARATION
struct S_uid: public TUid
{
S_uid(int i)
{
iUid = i;
}
};
class MAknEditingStateIndicator
{
public:
virtual void SetState(TInt aState) = 0;
virtual CAknIndicatorContainer *IndicatorContainer() = 0;
};
/**
* CNewApp11Container2 container control class.
*
*/
class CNewApp11Container2 : public CCoeControl, MCoeControlObserver, public MUINotifier
{
public: // Constructors and destructor
/**
* EPOC default constructor.
* @param aRect Frame rectangle for container.
*/
void ConstructL(const TRect& aRect);
/**
* Destructor.
*/
~CNewApp11Container2();
public: // New functions
public: // Functions from base classes
TText8 * TestInputMethod();
/**
* From MUINotifier, PrintNotify.
* Displays text on console.
* @param aDes Text to display.
* @param aFontStyle Style ( italic/bold/etc ) for this text.
*/
void PrintNotify( const TDesC& aDes, TUint aFontStyle = 0 );
/**
* From MUINotifier, PrintNotify.
* Displays text on console.
* @param aDes Text to display.
* @param aFontStyle Style ( italic/bold/etc ) for this text.
*/
void PrintNotify( const TDesC8& aDes, TUint aFontStyle = 0 );
/**
* From MUINotifier, ErrorNotify.
* Notifies user of an error.
* @param aErrMessage Message associated with error.
* @param aErrCode Error code.
*/
void ErrorNotify( const TDesC& aErrMessage, TInt aErrCode );
/**
* From MUINotifier, SetStatus.
* Changes 'status' display.
* @param aStatus New status text to display.
*/
void SetStatus( const TDesC& aStatus );
void SetFontStyle( TUint aFontStyle );
/**
* UpdateFontAttribute.
* Set or clear an individual font attribute if necessary,
* so that it matches the required style.
* @param aFontStyle Required font style.
* @param aAttribute The individual attribute to correct.
*/
void UpdateFontAttribute( TUint aFontStyle, TInt aAttribute );
private: // Functions from base classes
/**
* From CoeControl,SizeChanged.
*/
void SizeChanged();
/**
* From CoeControl,CountComponentControls.
*/
TInt CountComponentControls() const;
/**
* From CCoeControl,ComponentControl.
*/
CCoeControl* ComponentControl(TInt aIndex) const;
/**
* From CCoeControl,Draw.
*/
void Draw(const TRect& aRect) const;
/**
* From MCoeControlObserver
* Acts upon changes in the hosted control's state.
*
* @param aControl The control changing its state
* @param aEventType The type of control event
*/
void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
public: // Functions from base classes
CFbsBitmap* iGroundImage;
CFbsBitmap* iIconImage;
TInt iCursorIndex;
TInt iBeginYPoint;
TInt iWriteMode;
TBuf<40> iEditContent;
TBuf<30> iWriteInfo;
TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
CEikEdwin * iEdwin; // example label
/* add by luxm */
/**
* iOutputWindow, object for use as our output window.
* Owned by CCSAsyncAppView object.
*/
CEikRichTextEditor* iOutputWindow;
/**
* iStatusWindow, single line of text to display connection status.
* Owned by CCSAsyncAppView object.
*/
CEikLabel* iStatusWindow;
/**
* iFontStyle, current style in use by output window.
*/
TUint iFontStyle;
void KeyEventL( TInt aCode );
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -