dbgagents/trkagent/dbgtrccomm/server/ostmessage.cpp
changeset 0 c6b0df440bee
equal deleted inserted replaced
-1:000000000000 0:c6b0df440bee
       
     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 
       
    25 COstMessage* COstMessage::NewL(TDesC8& aMsg)
       
    26 {
       
    27 	LOG_MSG("COstMessage::NewL");
       
    28 
       
    29 	COstMessage* self = new(ELeave) COstMessage();
       
    30 	CleanupStack::PushL(self);
       
    31 	self->ConstructL(aMsg);
       
    32 	CleanupStack::Pop(self);
       
    33 	return self;
       
    34 }
       
    35 
       
    36 COstMessage::COstMessage()
       
    37 : iMsgBuffer(NULL)
       
    38 {
       
    39 	LOG_MSG("COstMessage::COstMessage");
       
    40 
       
    41 
       
    42 }
       
    43 
       
    44 COstMessage::~COstMessage()
       
    45 {
       
    46 	LOG_MSG("COstMessage::~COstMessage");
       
    47 
       
    48 	SafeDelete(iMsgBuffer);
       
    49 }
       
    50 
       
    51 void COstMessage::ConstructL(TDesC8& aMsg)
       
    52 {
       
    53 	LOG_MSG("COstMessage::ConstructL");
       
    54 
       
    55 	iMsgBuffer = aMsg.AllocL();		
       
    56 }