classicui_pub/notes_api/inc/aknprogresstimer.h
author Stefan Karlsson <stefan.karlsson@nokia.com>
Sat, 10 Apr 2010 13:41:05 +0100
branchCompilerCompatibility
changeset 13 e68b6005d280
parent 0 2f259fa3e83a
permissions -rw-r--r--
Got rid of some trivial warnings (nested comments and tokens after #endif).

/*
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*
*/

// AknProgressTimer.h: interface for the CAknProgressTimer class.
//
//////////////////////////////////////////////////////////////////////

#ifndef __AKNPROGRESSTIMER__
#define __AKNPROGRESSTIMER__

#include <e32base.h>

struct TTimerModel
  {
  TInt iFinalValue;
  TInt iHundreths;
  TInt iIncrement;
  TBool iRunning;
  };
class CAknNoteControl;

NONSHARABLE_CLASS(CAknProgressTimer) : public CTimer  
  {
 public:
	CAknProgressTimer();
	virtual ~CAknProgressTimer();
  void ConstructL(TTimerModel* aModel,CAknNoteControl* aContainer,TCallBack aCallBack);
  void AdjustRunningState();
private:
  void Queue();
  void RunL();
private:
  TTimerModel* iModel;
  CAknNoteControl* iContainer;
  TCallBack iCallBack;
  };

#endif