mtptransports/mtpcontroller/inc/cmtpcontrollertimer.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 27 Apr 2010 17:30:23 +0300
branchRCL_3
changeset 19 ef55b168cedb
child 47 63cf70d3ecd8
permissions -rw-r--r--
Revision: 201004 Kit: 201017

// Copyright (c) 2007-2009 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:
//



/**
 @file
 @internalComponent
*/

#ifndef CMTPCONTROLLERTIMER_H_
#define CMTPCONTROLLERTIMER_H_

#include <e32base.h>
#include <mtp/rmtpclient.h>
#include "mtpdebug.h"

class CMTPOperator;

class CMTPControllerTimer : public CTimer
    {
private:

    enum { ETimerMultiplier         = 1000000 };
    
public:
    static CMTPControllerTimer* NewLC( RMTPClient& aMTPClient, CMTPOperator& aMTPOperator );
    static CMTPControllerTimer* NewL( RMTPClient& aMTPClient , CMTPOperator& aMTPOperator );
    void Start( TInt aTimeOut );
    TBool GetStopTransportStatus();
    ~CMTPControllerTimer();
    
private:
    CMTPControllerTimer(RMTPClient& aMTPClient, CMTPOperator& aMTPOperator);
    void ConstructL();
    void RunL();

private:
    __FLOG_DECLARATION_MEMBER_MUTABLE;
    
    RMTPClient& iMTPClient;
    CMTPOperator * iMTPOperator;
    TBool iStopTransport;

    };


#endif /* CMTPCONTROLLERTIMER_H_ */