sbsv1/buildsystem/test/binaryvariation/VariantStaticDLL.h
changeset 607 378360dbbdba
parent 599 fa7a3cc6effd
equal deleted inserted replaced
591:22486c9c7b15 607:378360dbbdba
       
     1 // Copyright (c) 2000-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 // Statically linked dll example
       
    15 // 
       
    16 //
       
    17  
       
    18 
       
    19 #include <e32cons.h>
       
    20 
       
    21 
       
    22 class CVarMessenger : public CBase
       
    23   	{
       
    24 public:
       
    25 		// Construction
       
    26 	IMPORT_C static CVarMessenger* NewLC(CConsoleBase& aConsole, const TDesC& aString);
       
    27 		// Destructor - virtual and class not intended
       
    28 		// for derivation, so not exported
       
    29 	~CVarMessenger();
       
    30 		// general functions - exported
       
    31 	IMPORT_C void ShowMessage();
       
    32 private:
       
    33 		// C++ constructor - not exported;
       
    34 		// implicitly called from NewLC()
       
    35 	CVarMessenger(CConsoleBase& aConsole);
       
    36 		// 2nd phase construction, called by NewLC()
       
    37 	void ConstructL(const TDesC& aString); // second-phase constructor
       
    38 private:
       
    39 	CConsoleBase& iConsole; // Use the console (but not owned)
       
    40 	HBufC*        iString;  // Allocated container for string data (destructor destroys)
       
    41 	};