equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include <e32cons.h> |
|
21 |
|
22 |
|
23 class CMessenger : public CBase |
|
24 { |
|
25 public: |
|
26 // Construction |
|
27 IMPORT_C static CMessenger* NewLC(CConsoleBase& aConsole, const TDesC& aString); |
|
28 // Destructor - virtual and class not intended |
|
29 // for derivation, so not exported |
|
30 ~CMessenger(); |
|
31 // general functions - exported |
|
32 IMPORT_C void ShowMessage(); |
|
33 private: |
|
34 // C++ constructor - not exported; |
|
35 // implicitly called from NewLC() |
|
36 CMessenger(CConsoleBase& aConsole); |
|
37 // 2nd phase construction, called by NewLC() |
|
38 void ConstructL(const TDesC& aString); // second-phase constructor |
|
39 private: |
|
40 CConsoleBase& iConsole; // Use the console (but not owned) |
|
41 HBufC* iString; // Allocated container for string data (destructor destroys) |
|
42 }; |