Skip to content
Snippets Groups Projects
Commit f3764555 authored by AlexanderP ProductEngine's avatar AlexanderP ProductEngine
Browse files

CHUI-528, CHUI-536, CHUI-538, CHUI-540 ADD. FIX (Built single processor of...

CHUI-528, CHUI-536, CHUI-538, CHUI-540 ADD. FIX (Built single processor of different types of notifications): repaired LLFlashTimer
parent a83676e1
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,7 @@ LLFlashTimer::LLFlashTimer(callback_t cb, S32 count, F32 period) ...@@ -34,6 +34,7 @@ LLFlashTimer::LLFlashTimer(callback_t cb, S32 count, F32 period)
, mCallback(cb) , mCallback(cb)
, mCurrentTickCount(0) , mCurrentTickCount(0)
, mIsFlashingInProgress(false) , mIsFlashingInProgress(false)
, mIsCurrentlyHighlighted(false)
{ {
mEventTimer.stop(); mEventTimer.stop();
...@@ -58,9 +59,7 @@ BOOL LLFlashTimer::tick() ...@@ -58,9 +59,7 @@ BOOL LLFlashTimer::tick()
if (++mCurrentTickCount >= mFlashCount) if (++mCurrentTickCount >= mFlashCount)
{ {
mEventTimer.stop(); stopFlashing();
mCurrentTickCount = 0;
mIsFlashingInProgress = false;
} }
return FALSE; return FALSE;
...@@ -69,14 +68,26 @@ BOOL LLFlashTimer::tick() ...@@ -69,14 +68,26 @@ BOOL LLFlashTimer::tick()
void LLFlashTimer::startFlashing() void LLFlashTimer::startFlashing()
{ {
mIsFlashingInProgress = true; mIsFlashingInProgress = true;
mIsCurrentlyHighlighted = true;
mEventTimer.start(); mEventTimer.start();
} }
void LLFlashTimer::stopFlashing() void LLFlashTimer::stopFlashing()
{ {
mEventTimer.stop();
mIsFlashingInProgress = false; mIsFlashingInProgress = false;
mIsCurrentlyHighlighted = false; mIsCurrentlyHighlighted = false;
mEventTimer.stop(); mCurrentTickCount = 0;
}
bool LLFlashTimer::isFlashingInProgress()
{
return mIsFlashingInProgress;
}
bool LLFlashTimer::isCurrentlyHighlighted()
{
return mIsCurrentlyHighlighted;
} }
...@@ -50,8 +50,8 @@ class LLFlashTimer : public LLEventTimer ...@@ -50,8 +50,8 @@ class LLFlashTimer : public LLEventTimer
void startFlashing(); void startFlashing();
void stopFlashing(); void stopFlashing();
bool isFlashingInProgress() {return mIsFlashingInProgress;} bool isFlashingInProgress();
bool isCurrentlyHighlighted() {return mIsCurrentlyHighlighted;} bool isCurrentlyHighlighted();
private: private:
callback_t mCallback; callback_t mCallback;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment