diff options
author | Ima Mechanique <ima.mechanique@secondlife.com> | 2013-10-21 22:20:33 +0100 |
---|---|---|
committer | Ima Mechanique <ima.mechanique@secondlife.com> | 2013-10-21 22:20:33 +0100 |
commit | a0607d45ca12c930b9fb8018243e62aed0e09dc9 (patch) | |
tree | 7e1bf6660b48b4dfef75d709b9da1f05c583c011 /indra/newview/llsyntaxid.h | |
parent | 389e302f85bc21526a577ca4d3259b378a6402cc (diff) |
STORM-1831 Adding the llsyntaxid.* files let were left out of commit 7c74a59eeee4 OOPS
Diffstat (limited to 'indra/newview/llsyntaxid.h')
-rw-r--r-- | indra/newview/llsyntaxid.h | 65 |
1 files changed, 65 insertions, 0 deletions
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; +}; |