Update contrib.
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 the License "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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
15 // Statically linked dll example
22 extern int IMPORT_C myfoo();
26 class CMessenger : public CBase
30 IMPORT_C static CMessenger* NewLC(CConsoleBase& aConsole, const TDesC& aString);
31 // Destructor - virtual and class not intended
32 // for derivation, so not exported
34 // general functions - exported
35 IMPORT_C void ShowMessage();
37 // C++ constructor - not exported;
38 // implicitly called from NewLC()
39 CMessenger(CConsoleBase& aConsole);
40 // 2nd phase construction, called by NewLC()
41 void ConstructL(const TDesC& aString); // second-phase constructor
43 CConsoleBase& iConsole; // Use the console (but not owned)
44 HBufC* iString; // Allocated container for string data (destructor destroys)