0
|
1 |
/*
|
|
2 |
* Copyright (c) 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 |
#include "logging.h"
|
|
20 |
#include "dbgtrccomm.h"
|
|
21 |
#include "ostmessage.h"
|
|
22 |
|
|
23 |
|
|
24 |
COstWriteMsgEntry* COstWriteMsgEntry::NewL(TDesC8& aMsg, CDbgTrcSrvSession* aMsgListener)
|
|
25 |
{
|
|
26 |
LOG_MSG("COstWriteMsgEntry::NewL");
|
|
27 |
|
|
28 |
COstWriteMsgEntry* self = new(ELeave) COstWriteMsgEntry();
|
|
29 |
CleanupStack::PushL(self);
|
|
30 |
self->ConstructL(aMsg);
|
|
31 |
CleanupStack::Pop(self);
|
|
32 |
return self;
|
|
33 |
}
|
|
34 |
|
|
35 |
COstWriteMsgEntry::COstWriteMsgEntry(CDbgTrcSrvSession* aMsgListener)
|
|
36 |
: iMessage(NULL),
|
|
37 |
iWriteMsgListener(aMsgListener)
|
|
38 |
{
|
|
39 |
LOG_MSG("COstWriteMsgEntry::COstWriteMsgEntry");
|
|
40 |
|
|
41 |
|
|
42 |
}
|
|
43 |
|
|
44 |
COstWriteMsgEntry::~COstWriteMsgEntry()
|
|
45 |
{
|
|
46 |
LOG_MSG("COstWriteMsgEntry::~COstWriteMsgEntry");
|
|
47 |
|
|
48 |
SafeDelete(iMessage);
|
|
49 |
}
|
|
50 |
|
|
51 |
void COstWriteMsgEntry::ConstructL(TDesC8& aMsg)
|
|
52 |
{
|
|
53 |
LOG_MSG("COstWriteMsgEntry::ConstructL");
|
|
54 |
|
|
55 |
iMessage = new COstMessage(aMsg);
|
|
56 |
}
|