📄 splashcontainer.h
字号:
/*
* ============================================================================
* Name : CSplashContainer from SplashContainer.h
* Part of : Splash
* Created : 17/02/2003 by Eric@NewLC
* Description:
* Declares container control for application.
* Version :
* Copyright:
* ============================================================================
*/
#ifndef SPLASHCONTAINER_H
#define SPLASHCONTAINER_H
// INCLUDES
#include <coecntrl.h>
// FORWARD DECLARATIONS
// CLASS DECLARATION
/**
* CSplashContainer container control class.
*
*/
class CSplashContainer : public CCoeControl, public MCoeControlObserver
{
public: // Constructors and destructor
/**
* EPOC default constructor.
* @param aRect Frame rectangle for container.
*/
IMPORT_C void ConstructL(const TRect& aRect);
/**
* Destructor.
*/
IMPORT_C ~CSplashContainer();
public: // New functions
/**
* Draw Function
*/
IMPORT_C virtual void DrawSplash(const TRect& aRect) const;
IMPORT_C virtual void DrawMain(const TRect& aRect) const;
IMPORT_C virtual void DrawExiting(const TRect& aRect) const;
/**
* Timer management function
*/
IMPORT_C virtual TBool Tick();
IMPORT_C static TInt Period(TAny* aPtr);
IMPORT_C void DoPeriod();
IMPORT_C void StartTimer();
IMPORT_C void StopTimer();
IMPORT_C void SetTimerTick(TTimeIntervalMicroSeconds32 aTick);
enum TState
{
ESplash,
EMain,
EExiting,
};
IMPORT_C void SetState(CSplashContainer::TState aState);
IMPORT_C CSplashContainer::TState State();
public: // Functions from base classes
private: // New Functions
private: // Functions from base classes
/**
* From CoeControl,SizeChanged.
*/
IMPORT_C void SizeChanged();
/**
* From CoeControl,CountComponentControls.
*/
IMPORT_C TInt CountComponentControls() const;
/**
* From CCoeControl,ComponentControl.
*/
IMPORT_C CCoeControl* ComponentControl(TInt aIndex) const;
/**
* From CCoeControl,Draw.
*/
IMPORT_C void Draw(const TRect& aRect) const;
private: //data
TState iState;
CPeriodic* iPeriodicTimer;
TTimeIntervalMicroSeconds32 iTick;
};
#endif
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -