connectionmonitoring/connmon/dataconnectionlogger/src/dclevent.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 16 Apr 2010 15:21:37 +0300
changeset 18 fcbbe021d614
parent 0 5a93021fdf25
permissions -rw-r--r--
Revision: 201011 Kit: 201015

/*
* Copyright (c) 2003-2004 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Data Connection Logger.
*
*/

#include "dclevent.h"

// --------------------------------------------------------------------------
// CEvent::CEvent
// Constructor
// --------------------------------------------------------------------------
//
CEvent::CEvent()
        :
        iConnectionId( 0 ),
        iPrevDownValue( 0 ),
        iPrevUpValue( 0 ),
        iPrevDuration( 0 )
    {
    }

// --------------------------------------------------------------------------
// CEvent::NewLC
// 1st phase constructor - for stack pointers to object
// --------------------------------------------------------------------------
//
CEvent* CEvent::NewLC()
    {
    CEvent* self = new( ELeave ) CEvent;
    CleanupStack::PushL( self );
    self->ConstructL();
    return self;
    }

// --------------------------------------------------------------------------
// CEvent::NewL
// 1st phase constructor - for heap pointers to object
// --------------------------------------------------------------------------
//
CEvent* CEvent::NewL()
    {
    CEvent* self = NewLC();
    CleanupStack::Pop();
    return self;
    }

// --------------------------------------------------------------------------
// CEvent::ConstructL
// 2nd phase constructor
// --------------------------------------------------------------------------
//
void CEvent::ConstructL()
    {
    iLogWrapEvent = CLogEvent::NewL();
    }

// --------------------------------------------------------------------------
// CEvent::~CEvent
// Destructor
// Frees reserved resources.
// --------------------------------------------------------------------------
//
CEvent::~CEvent()
    {
    delete iLogWrapEvent;
    iLogWrapEvent = NULL;
    }

// End of File