connectionmonitoring/connmon/dataconnectionlogger/inc/dclevent.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:35:44 +0300
branchRCL_3
changeset 57 05bc53fe583b
parent 0 5a93021fdf25
child 58 83ca720e2b9a
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* Copyright (c) 2003-2010 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.
*/

#ifndef DCLEVENT_H
#define DCLEVENT_H

#include <logwrap.h>
#include <logcli.h>

/**
* CEvent
* Data structure that contains unique connection id provided by
* connection monitor server and the log event that LogWrap-library
* stores in log file.
*/
class CEvent : public CBase
    {
    public:
        // Constructor
        static CEvent* NewL();
        static CEvent* NewLC();

        // Destructor
        virtual ~CEvent();

    private: // New methods
        CEvent();
        void ConstructL();

    private: // Data
        TLogId      iConnectionId;
        TInt64      iPrevDownValue;
        TInt64      iPrevUpValue;
        TInt        iPrevDuration;
        CLogEvent*  iLogWrapEvent;

    private: // Friend classes
        friend class CEngine;
    };

#endif // DCLEVENT_H

// End of File