testexecfw/statsrv/device/source/statapi/inc/activeconsole.h
changeset 0 3e07fef1e154
equal deleted inserted replaced
-1:000000000000 0:3e07fef1e154
       
     1 /*
       
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include <e32base.h> 
       
    21 #include "stat_controller.h"
       
    22 #include "stat_console.h"
       
    23 
       
    24 #ifndef LIGHT_MODE
       
    25     #include "apgtask.h"
       
    26 #endif
       
    27 _LIT( KTxtExampleCode, "STATMAIN" );
       
    28 
       
    29 class CActiveConsole : public CActive
       
    30 	{
       
    31 public:
       
    32 	 // Construction
       
    33 	static CActiveConsole* NewL(CConsoleBase*,CStatController*,CStatConsole*,TInt, MNotifyLogMessage *const aMsg);
       
    34 	 // Destruction
       
    35 	~CActiveConsole();
       
    36 	void Start();
       
    37 	void DoCancel();
       
    38 
       
    39 private:
       
    40 	CActiveConsole(CConsoleBase*,CStatController*,CStatConsole*,TInt, MNotifyLogMessage *const aMsg);
       
    41 	void ConstructL();
       
    42 	void RunL();
       
    43 	void PushToBack();
       
    44 
       
    45 protected:
       
    46 	CConsoleBase* iConsole;			//A console for reading from
       
    47 	CStatController *iController;	//Pointer to CStatController object
       
    48 	CStatConsole *iStatConsole;		//statconsole
       
    49 	TInt iSessionID;				//CStatController session id, used to close session
       
    50 	MNotifyLogMessage *iMsg;
       
    51 	};
       
    52