commonuisupport/uikon/test/tmessageserv/messageactive.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Support for communication between processes during uikon tests.
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent - Internal Symbian test code
       
    21 */
       
    22 
       
    23 #ifndef	__MESSAGEACTIVE_H
       
    24 #define	__MESSAGEACTIVE_H
       
    25 
       
    26 #include <e32base.h>
       
    27 #include <test/testexecutestepbase.h>
       
    28 
       
    29 //! CMessageActive
       
    30 /**
       
    31 Class is used to log message from client.
       
    32 */
       
    33 class CMessageActive : public CActive
       
    34 {
       
    35 public:
       
    36 	IMPORT_C static CMessageActive* NewL(); 
       
    37 	IMPORT_C ~CMessageActive();
       
    38 	void RequestForTheMessageOutput(TInt aCode = KErrNone);
       
    39 	
       
    40 private:
       
    41 	CMessageActive();
       
    42  
       
    43 	void RunL();
       
    44 	void DoCancel();
       
    45 	void Init();
       
    46 	
       
    47 private:
       
    48 	TThreadId iID;
       
    49 	
       
    50 public:
       
    51 	CTestStep* iStep;
       
    52 	TInt iLineNumber;
       
    53 	TInt iError;
       
    54 	TBuf<512> iMsg;
       
    55 	TBuf8<256> iFileName;
       
    56 };
       
    57 
       
    58 #endif