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

📄 sysinfo60container4.h

📁 基于SYMBIAN OS 的Moblile硬件管理器. 支持series 70平台
💻 H
字号:
/*
* ============================================================================
*  Name     : CSYSINFO60Container4 from SYSINFO60Container4.h
*  Part of  : SYSINFO60
*  Created  : 13.01.2004 by Petri-Veikko Alaj鋜vi OH1GIU
*  Description:
*     Declares container control for application.
*  Version  :
*  Copyright: (c) 2004, Petri-Veikko Alaj鋜vi OH1GIU
* ============================================================================
*/

#ifndef SYSINFO60CONTAINER4_H
#define SYSINFO60CONTAINER4_H

// INCLUDES
#include <aknlists.h>
#include <coecntrl.h>
#include <hal.h>

// CONSTANTS
const TInt KMaxLineLength = 24;
const TInt KGranularityOfArray = 24;

// FORWARD DECLARATIONS

// CLASS DECLARATION

/**
*  CSYSINFO60Container4  container control class.
*
*/
class CSYSINFO60Container4 : public CCoeControl, MCoeControlObserver
    {
    public: // Constructors and destructor

        /**
        * EPOC default constructor.
        * @param aRect Frame rectangle for container.
        */
        void ConstructL(const TRect& aRect);

        /**
        * Destructor.
        */
        ~CSYSINFO60Container4();

    public:

		void ClearL();

    private: // Functions from base classes

       /**
        * From CoeControl,SizeChanged.
        */
        void SizeChanged();

       /**
        * From CoeControl,CountComponentControls.
        */
        TInt CountComponentControls() const;

       /**
        * From CCoeControl,ComponentControl.
        */
        CCoeControl* ComponentControl(TInt aIndex) const;

		/*!
		@function OfferKeyEventL

		@discussion Handle key events
		@param aKeyEvent the key event
		@param aType the type of key event: EEventKey, EEventKeyUp or EEventKeyDown
		@result indicates whether or not the key event was used by this control
		*/
		TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);

       /**
        * From CCoeControl,Draw.
        */
        void Draw(const TRect& aRect) const;

       /**
        * From ?base_class ?member_description
        */
        // event handling section
        // e.g Listbox events
        void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);

	public: // new functions

		/*!
		@function Print
		@discussion Print text, does not print to the screen until PrintNewLine or PrintLine is invoked
		@param text the log text
		*/
	    void Print(const TDesC& text);

		/*!
		@function PrintLine
		@discussion Print text and appends new line
		@param text the log text
		*/
		void PrintLine(const TDesC& text);

		/*!
		@function PrintNewLine
		@discussion Print a new line
		*/
		void PrintNewLine();

    private: // New functions

    private: //data

		CAknSingleStyleListBox* iListBox;
		CDesCArrayFlat*			iMessageList;
		TInt					iMsgIndex;
		HBufC*					iOutputText;

	public: // Data

		TInt					iMonitor;

    };

#endif

// End of File

⌨️ 快捷键说明

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