From a0607d45ca12c930b9fb8018243e62aed0e09dc9 Mon Sep 17 00:00:00 2001 From: Ima Mechanique Date: Mon, 21 Oct 2013 22:20:33 +0100 Subject: STORM-1831 Adding the llsyntaxid.* files let were left out of commit 7c74a59eeee4 OOPS --- indra/newview/llsyntaxid.h | 65 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 indra/newview/llsyntaxid.h (limited to 'indra/newview/llsyntaxid.h') diff --git a/indra/newview/llsyntaxid.h b/indra/newview/llsyntaxid.h new file mode 100644 index 0000000000..6e5a97fd31 --- /dev/null +++ b/indra/newview/llsyntaxid.h @@ -0,0 +1,65 @@ + +#ifndef LLSYSNTAXIDLSL_H +#define LLSYSNTAXIDLSL_H + +#endif // LLSYSNTAXIDLSL_H + +#include "llviewerprecompiledheaders.h" + +#include "llagent.h" +#include "llenvmanager.h" +#include "llhttpclient.h" +#include "llviewerregion.h" + + +//class LLKeywords; + + +/** + * @file llsyntaxid.h + * @brief The LLSyntaxIdLSL class + */ +class LLSyntaxIdLSL +{ +public: + /** + * @brief LLSyntaxIdLSL constructor + */ + LLSyntaxIdLSL(); + + LLUUID getSyntaxId() const { return mCurrentSyntaxId; } + + bool checkSyntaxIdChange(); + std::string filenameCurrent() { return mFilenameCurrent; } + ELLPath filenamePath() { return mFilenameLocation; } + void initialise(); + static void setKeywordsXml(LLSD& content) { LLSyntaxIdLSL::mKeywordsXml = content; } + +protected: + std::string buildFilename(LLUUID& SyntaxId); + bool fetchKeywordsFile(); + void openKeywordsFile(); + void setSyntaxId(LLUUID SyntaxId) { mCurrentSyntaxId = SyntaxId; } + void setFilenameCurrent(std::string& name) { mFilenameCurrent = name; } + void setFilenameDefault(std::string& name) { mFilenameDefault = name; } + void setSimulatorFeatureName(const std::string& name) { mSimulatorFeature = name; } + +public: + static LLHTTPClient::ResponderPtr mResponder; + + +protected: +// LLKeywords& mKeywords; + LLViewerRegion* mRegion; + +private: + std::string mCapabilityName; + LLUUID mCurrentSyntaxId; + std::string mFilenameCurrent; + std::string mFilenameDefault; + std::string mFilenameFull; + ELLPath mFilenameLocation; + std::string mFilenameSpec; + static LLSD mKeywordsXml; + std::string mSimulatorFeature; +}; -- cgit v1.2.3