Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
78 lines (64 sloc) 1.41 KB
// cHTMLSystem.h: Schnittstelle für die Klasse cHTMLSystem.
//
//////////////////////////////////////////////////////////////////////
#ifndef __CHTMLSYSTEM_H__
#define __CHTMLSYSTEM_H__
#if defined(_MSC_VER)
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#endif
namespace UOX
{
enum ETemplateType
{
ETT_ALLTEMPLATES = -1,
ETT_GMSTATUS =0 ,
ETT_GUILD,
ETT_OFFLINE,
ETT_PLAYER,
ETT_ONLINE,
ETT_INVALIDTEMPLATE = 0xFF
};
class cHTMLTemplate
{
private:
UI32 UpdateTimer;
std::string InputFile;
bool Loaded;
ETemplateType Type;
std::string Content;
std::string OutputFile;
std::string Name;
UI32 ScheduledUpdate;
public:
cHTMLTemplate();
~cHTMLTemplate();
void Process( void );
void Poll( void );
void LoadTemplate( void );
void UnloadTemplate( void );
void Load( ScriptSection *found );
// Some Getters
std::string GetName( void ) const;
std::string GetOutput( void ) const;
std::string GetInput( void ) const;
ETemplateType GetTemplateType( void ) const;
UI32 GetScheduledUpdate( void ) const;
UI32 GetUpdateTimer( void ) const;
};
class cHTMLTemplates
{
private:
std::vector < cHTMLTemplate* > Templates;
public:
cHTMLTemplates();
~cHTMLTemplates();
void Load( void );
void Unload( void );
void Poll( ETemplateType nTemplateID = ETT_ALLTEMPLATES );
void TemplateInfoGump( CSocket *mySocket );
};
extern cHTMLTemplates *HTMLTemplates;
}
#endif