stopwatchmodel.h
来自「《基于Symbian OS的手机开发与应用实践》这本书的配套源码。」· C头文件 代码 · 共 58 行
H
58 行
/*
* ============================================================================
* Name : CStopwatchModel from StopwatchModel.h
* Part of : Stopwatch
* Created : 05.02.2006 by ToBeReplacedByAuthor
* Description:
* Declares the timer engine class.
* Version :
* Copyright: ToBeReplacedByCopyright
* ============================================================================
*/
#ifndef __STOPWATCH_MODEL_H__
#define __STOPWATCH_MODEL_H__
// INCLUDES
#include <e32base.h> // for CBase
// FORWARD DECLARATIONS
// CLASS DECLARATIONS
/**
* A simple timer with observer.
*/
class CStopwatchModel : public CBase
{
public: // standard construction sequence
/**
* Perform the first phase of two phase construction
* @param aObserver The timer event observer
*/
CStopwatchModel();
/**
* Destroy the object and release all memory objects
*/
~CStopwatchModel();
public: // new functions
/**
* Get the current time
*/
const TTime& Time() const;
/**
* Set the current time
*/
void SetTime(const TTime& aTime);
private: // member variables
/// The current time
TTime iTime;
};
#endif // __STOPWATCH_MODEL_H__
// End Of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?