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