sbsv1/buildsystem/test/binaryvariation/VariantStaticDLL.h
author marvin shi <marvin.shi@nokia.com>
Wed, 17 Nov 2010 16:47:55 +0800
changeset 696 30aa553e9465
parent 599 fa7a3cc6effd
permissions -rw-r--r--
features: bsym for rofsbuild and log input support for rombuild
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
599
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     1
// Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     2
// All rights reserved.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     3
// This component and the accompanying materials are made available
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     4
// under the terms of "Eclipse Public License v1.0"
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     5
// which accompanies this distribution, and is available
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     7
//
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     8
// Initial Contributors:
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     9
// Nokia Corporation - initial contribution.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    10
//
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    11
// Contributors:
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    12
//
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    13
// Description:
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    14
// Statically linked dll example
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    15
// 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    16
//
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    17
 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    18
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    19
#include <e32cons.h>
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    20
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    21
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    22
class CVarMessenger : public CBase
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    23
  	{
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    24
public:
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    25
		// Construction
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    26
	IMPORT_C static CVarMessenger* NewLC(CConsoleBase& aConsole, const TDesC& aString);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    27
		// Destructor - virtual and class not intended
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    28
		// for derivation, so not exported
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    29
	~CVarMessenger();
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    30
		// general functions - exported
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    31
	IMPORT_C void ShowMessage();
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    32
private:
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    33
		// C++ constructor - not exported;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    34
		// implicitly called from NewLC()
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    35
	CVarMessenger(CConsoleBase& aConsole);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    36
		// 2nd phase construction, called by NewLC()
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    37
	void ConstructL(const TDesC& aString); // second-phase constructor
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    38
private:
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    39
	CConsoleBase& iConsole; // Use the console (but not owned)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    40
	HBufC*        iString;  // Allocated container for string data (destructor destroys)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    41
	};