//
//  TnCoreTextGlyphProxy.h
//  TelenavNavigator
//
//  Created by Ryan Drake on 5/25/11.
//  Copyright 2011 Telenav. All rights reserved.
//

#ifndef __TN_CORE_TEXT_GLYPH_PROXY_H__
#define __TN_CORE_TEXT_GLYPH_PROXY_H__

#include <RenderEngine/ITnMapGlyphProxy.h>

typedef std::string const (*TnFileNameTranslatorFunc)(std::string const &);

class TnCoreTextGlyphProxy : public ITnMapGlyphProxy
{
public:
    TnCoreTextGlyphProxy(TnFileNameTranslatorFunc func = 0);
    virtual void RequestGlyph(TnMapGlyphData::ptr const & data);
    virtual void CancelRequest(TnMapGlyphData::ptr const & data);
    
private:
    TnFileNameTranslatorFunc const m_fileNameTranslator;
};

#endif // __TN_CORE_TEXT_GLYPH_PROXY_H__

