sbsv2/raptor/test/smoke_suite/test_resources/tracecompiler/TC_winscw/tcwinsfiletwo.h
author Iain Williamson <iain.williamson@nokia.com>
Tue, 02 Feb 2010 16:08:55 +0000
branchfix
changeset 184 860699b2b944
permissions -rw-r--r--
Adding extra source file to TC winscw test code, and fixing it so it works
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
184
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
     1
/*
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
     2
* Copyright (c) 2000-2010 Nokia Corporation and/or its subsidiary(-ies).
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
     3
* All rights reserved.
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
     4
* This component and the accompanying materials are made available
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
     5
* under the terms of the License "Eclipse Public License v1.0"
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
     6
* which accompanies this distribution, and is available
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
     8
*
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
     9
* Initial Contributors:
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    11
*
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    12
* Contributors:
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    13
*
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    14
* Description: 
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    15
*
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    16
*/
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    17
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    18
 
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    19
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    20
#include <e32cons.h>
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    21
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    22
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    23
class CMessenger2 : public CBase
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    24
  	{
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    25
public:
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    26
		// Construction
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    27
	IMPORT_C static CMessenger2* NewLC(CConsoleBase& aConsole, const TDesC& aString);
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    28
		// Destructor - virtual and class not intended
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    29
		// for derivation, so not exported
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    30
	~CMessenger2();
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    31
		// general functions - exported
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    32
	IMPORT_C void ShowMessage();
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    33
private:
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    34
		// C++ constructor - not exported;
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    35
		// implicitly called from NewLC()
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    36
	CMessenger2(CConsoleBase& aConsole);
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    37
		// 2nd phase construction, called by NewLC()
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    38
	void ConstructL(const TDesC& aString); // second-phase constructor
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    39
private:
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    40
	CConsoleBase& iConsole; // Use the console (but not owned)
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    41
	HBufC*        iString;  // Allocated container for string data (destructor destroys)
860699b2b944 Adding extra source file to TC winscw test code, and fixing it so it works
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    42
	};