📄 simpleclock.h__.htm
字号:
<html><head><title>Exercise_GUIClock.rar SimpleClock.h</title>
<LINK href="/inc/read_style.css" type=text/css rel=stylesheet></head>
<body>
<p><a href=http://www.pudn.com>www.pudn.com</a> > <a href="http://www.pudn.com/downloads91/sourcecode/comm/symbian/detail348522.html">Exercise_GUIClock.rar</a> > SimpleClock.h</p><!-- saved from http://www.pudn.com -->
<script src="/inc/gg_read1.js"></script><BR>
<pre name="code" class="h">
#include <e32base.h>
#ifndef _SIMPLE_CLOCK_
#define _SIMPLE_CLOCK_
class MClockObserver
{
public:
virtual void UpdateClock(TTime aTime) = 0;
};
//////////////////////////////////////////////////////////////////////////////
//
// -----> CSimpleClock (definition)
//
//////////////////////////////////////////////////////////////////////////////
class CSimpleClock : public CTimer
{
public:
// Construction
CSimpleClock();
// Destruction
~CSimpleClock();
public:
// Static construction
static CSimpleClock* NewL();
static CSimpleClock* NewLC(const TTime & aTime);
static CSimpleClock* NewL(const TTime & aTime);
public:
// Second phase construction
void ConstructL(const TTime & aTime);
// Cancel request
// Defined as pure virtual by CActive;
// implementation provided by this class.
void DoCancel();
// service completed request.
// Defined as pure virtual by CActive;
// implementation provided by this class.
void RunL();
void Start() ;
void Stop(){iStop = TRUE;}
//void SetObserver(MClockObserver * aObserver){iObserver = aObserver;}
void AddObserver(MClockObserver * aObserver);
void RemoveObserver(MClockObserver *aObserver);
void SetCurTime(TTime aTime) {iTime = aTime;}
TTime CurTime(){return iTime;}
protected:
// issue request
void IssueRequest();
private:
TTime iTime;
TBool iStop;
CArrayFixFlat<MClockObserver *> * iObservers;
};
#endif</pre>
<script src="/inc/gg_read2.js"></script><BR>
<script src="http://s117.cnzz.com/stat.php?id=1236358&web_id=1236358&show=pic" language="JavaScript" charset="gb2312"></script>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -