📄 sysinfo60view4.h
字号:
/*
* ============================================================================
* Name : CSYSINFO60View4 from SYSINFO60View4.h
* Part of : SYSINFO60
* Created : 13.01.2004 by Petri-Veikko Alaj鋜vi OH1GIU
* Description:
* Declares view for application.
* Version :
* Copyright: (c) 2004, Petri-Veikko Alaj鋜vi OH1GIU
* ============================================================================
*/
#ifndef SYSINFO60VIEW4_H
#define SYSINFO60VIEW4_H
// INCLUDES
#include <aknview.h>
#include <aknwaitdialog.h>
#include <etelbgsm.h>
#include <etel.h>
// CONSTANTS
// UID of view
const TUid KView4Id = {4};
const TInt KDelayMin = 1;
const TInt KIntervalMin = 3;
const TInt KTimerMax = 12;
_LIT(KCellID, "CELL ID ");
_LIT(KLac, "LAC ");
_LIT(KTsyName, "phonetsy.tsy");
_LIT(KDelayPrompt, "Monitor start delay\n(1 - 12 seconds)");
_LIT(KIntervalPrompt, "Monitor interval\n(3 - 12 seconds)");
// FORWARD DECLARATIONS
class CSYSINFO60Container4;
// CLASS DECLARATION
/**
* CSYSINFO60View4 view class.
*
*/
class CSYSINFO60View4 : public CAknView
{
public: // Constructors and destructor
/**
* EPOC default constructor.
*/
void ConstructL();
/**
* Destructor.
*/
~CSYSINFO60View4();
public: // Functions from base classes
/**
* From ?base_class ?member_description
*/
TUid Id() const;
/**
* From ?base_class ?member_description
*/
void HandleCommandL(TInt aCommand);
/**
* From ?base_class ?member_description
*/
void HandleClientRectChange();
private:
/**
* From AknView, ?member_description
*/
void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,
const TDesC8& aCustomMessage);
/**
* From AknView, ?member_description
*/
void DoDeactivate();
// From MEikMenuObserver
void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
public: // New functions
void UpdateMenuL(CEikMenuPane* aMenuPane);
private: // New functions
void ShowPhoneInfoL(void);
void ShowNetInfoL(void);
void ShowNetsL(void);
void ShowBattInfoL(void);
void CalcTimerValues(const TInt aDelay = 1, const TInt aInterval = 5);
void StartTimer(const TInt aMode = 0);
void StopTimer(void);
static TInt Period(TAny* aPtr);
static TInt CallbackWD(TAny* aPtr);
void DoPeriodTask();
void DoWaitDialog();
void OpenTeL(void);
void CloseTeL(void);
void SetTimerValue(const TInt aMode, const TInt aValue);
void NetRegStatus(void);
void PhoneUtils(const TInt aUtil);
TInt GetSLevel(const TInt aN);
private: // Data
TInt iTelOpen;
TInt iMonitorDelay;
TInt iMonitorInterval;
TUint iSignalSum;
TUint iSignalCnt;
CPeriodic* iPeriodicTimer;
TTimeIntervalMicroSeconds32 iDelay;
TTimeIntervalMicroSeconds32 iInterval;
RTelServer iTelServer;
RBasicGsmPhone iPhone;
TBuf<64> iInfoText;
CSYSINFO60Container4* iContainer;
CAknWaitDialog* iWaitDialog;
TRawEvent iRedraw;
TBool iLedsOn;
};
#endif
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -