📄 sysinfo60container.h
字号:
/*
* ============================================================================
* Name : CSYSINFO60Container from SYSINFO60Container.h
* Part of : SYSINFO60
* Created : 10.05.2003 by Petri-Veikko Alaj鋜vi OH1GIU
* Description:
* Declares container control for application.
* Version :
* Copyright: (c) 2003, Petri-Veikko Alaj鋜vi OH1GIU
* ============================================================================
*/
#ifndef SYSINFO60CONTAINER_H
#define SYSINFO60CONTAINER_H
// INCLUDES
#include <coecntrl.h>
#include <sysinfo60.rsg>
#include <hal.h>
#include "SYSINFO60Inc.h"
// CONSTANTS
const TInt KAppList = 0;
const TInt KApps = 1;
const TInt KAppUid = 2;
const TInt KNumOfBitmaps = 1;
const TInt KImageTop = 1;
const TInt KImageLeft = 1;
const TInt KImageHeight = 143;
const TInt KImageWidth = 172;
const TInt KGTextHeight = 145;
const TInt KGTextWidth = 176;
_LIT(KYes, "YES");
_LIT(KNo, "NO");
_LIT(KDateString, "%D%M%Y%/0%1%/1%2%/2%3%/3 %-B%:0%J%:1%T%:2%S%:3%");
#ifdef __WINS__
_LIT(KPic_path, "z:\\system\\apps\\sysinfo60\\pic2.mbm");
#else
_LIT(KPic_path, "c:\\system\\apps\\sysinfo60\\pic2.mbm");
#endif
// FORWARD DECLARATIONS
class CEikGlobalTextEditor;
// CLASS DECLARATION
/**
* CSYSINFO60Container container control class.
*
*/
class CSYSINFO60Container : public CCoeControl, MCoeControlObserver
{
public: // Constructors and destructor
/**
* EPOC default constructor.
* @param aRect Frame rectangle for container.
*/
void ConstructL(const TRect& aRect);
/**
* Destructor.
*/
~CSYSINFO60Container();
public: // New functions
void GetGenVer(void);
void GetCFVer(void);
void GetDrivesL(void);
void ShowAppListLC(const TInt aMode);
void DisplayInfo(void);
void ROMinfo(void);
void CPUinfo(void);
void MachineInfo(void);
void LCDinfoL(void);
void GetFileListLC(const TDesC& aPath);
void MiscInfo(void);
void UserStringLC(void);
void RegInfo(void);
public: // Functions from base classes
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 ?base_class ?member_description
*/
// event handling section
// e.g Listbox events
void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
private: //new functions
void SetFontL(const TInt aResourceId);
TFontSpec* CreateFontSpecFromResourceL(const TInt aResourceId);
void FmtVerString(const TVersion aVersion, TDes& aVersionTxt);
void ClrScreen(void);
void SetImageDefs(const TInt aIndex);
void LoadImageL(const TDesC& aImageFile);
private: //data
CEikGlobalTextEditor* iSysText;
TBuf<256> iGText;
TBuf<64> iKdata;
TBuf<64> iItemData;
RFs iRfs;
TInt iError;
TInt iHalValue;
CArrayPtrFlat<CFbsBitmap>* iBitmaps;
TInt iBitmapIndex;
TSize iRfu60imgSize;
};
#endif
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -