|
1 /* |
|
2 * Copyright (c) 2005-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 "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 |
|
21 |
|
22 #if ! defined (LOGMESSAGE_H_F2E497DD_F98B_43c1_826E_AF7D49D40161) |
|
23 #define LOGMESSAGE_H_F2E497DD_F98B_43c1_826E_AF7D49D40161 |
|
24 |
|
25 ///////////////////////////////////////////////////////////////////////////// |
|
26 // LogMessage |
|
27 // Passed from the logging object to a window through the use of a window |
|
28 // message. This will be the lParam data object. The message will be |
|
29 // passed asynchronously and the structure will be allocated on the heap |
|
30 // by the sender (probably the log file object). The receiving window must |
|
31 // delete this object when it processes the message. |
|
32 ///////////////////////////////////////////////////////////////////////////// |
|
33 |
|
34 class LogMessage |
|
35 { |
|
36 public: |
|
37 LogMessage( void ); |
|
38 ~LogMessage(); |
|
39 |
|
40 public: |
|
41 |
|
42 const LogMessage& operator = ( const LogMessage& logMessage ); |
|
43 |
|
44 bool iMessageBox; |
|
45 bool iScreenShot; |
|
46 |
|
47 CString iMessage; |
|
48 CString iText; |
|
49 }; |
|
50 |
|
51 inline LogMessage::LogMessage( void ) : |
|
52 iMessageBox( false ), |
|
53 iScreenShot( false ) |
|
54 { |
|
55 ; |
|
56 } |
|
57 |
|
58 inline LogMessage::~LogMessage() |
|
59 { |
|
60 iMessage.Empty( ); |
|
61 iText.Empty( ); |
|
62 } |
|
63 |
|
64 inline const LogMessage& LogMessage::operator = ( const LogMessage& logMessage ) |
|
65 { |
|
66 iMessage = logMessage.iMessage.operator LPCTSTR( ); |
|
67 iText = logMessage.iText.operator LPCTSTR( ); |
|
68 |
|
69 iMessageBox = logMessage.iMessageBox; |
|
70 iScreenShot = logMessage.iScreenShot; |
|
71 |
|
72 return (*this); |
|
73 } |
|
74 |
|
75 #endif // ! defined (LOGMESSAGE_H_F2E497DD_F98B_43c1_826E_AF7D49D40161) |