/*
 *  TnTrafficProtoBufData.h
 *
 *  Created by Thant on August 26, 2013.
 *  Copyright 2013 TeleNav. All rights reserved.
 *
 */

#ifndef TN_TRAFFIC_PROTOBUF_DATA_H
#define TN_TRAFFIC_PROTOBUF_DATA_H

#include <deque>
#include <foundation/Mutex.h>
#include <RenderEngine/TnMapResourceData.h>
#include <GenericProxy/ITnTrafficProtoBufData.h>


class TnTrafficProtoBufData : public TnMapResourceData
{
public:
    typedef ITnTrafficProtoBufData::ProtoBuf ProtoBuf;
    typedef ITnTrafficProtoBufData::ProtoBufPtr ProtoBufPtr;

    TnTrafficProtoBufData(std::string const & url,
                          ITnTrafficProtoBufData::ptr const & data);

    virtual ~TnTrafficProtoBufData();

    virtual void SetRequestResult(eTnMapRequestResult result);

private:

    ITnTrafficProtoBufData::ptr m_data;
};

#endif


