summaryrefslogtreecommitdiff
path: root/plugins/Quotes/ModuleInfo.h
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-05-19 14:24:27 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-05-19 14:24:27 +0000
commit162e60d66c78bd51aa44c691fe4f4e2f1deb990f (patch)
tree789cf10a148bf3912579e18393604e268ff9934c /plugins/Quotes/ModuleInfo.h
parent6a22ccd156510e65fb91f45a81a9e87d5ad07568 (diff)
added Quotes
git-svn-id: http://svn.miranda-ng.org/main/trunk@76 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Quotes/ModuleInfo.h')
-rw-r--r--plugins/Quotes/ModuleInfo.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/plugins/Quotes/ModuleInfo.h b/plugins/Quotes/ModuleInfo.h
new file mode 100644
index 0000000000..5dcf7e5de6
--- /dev/null
+++ b/plugins/Quotes/ModuleInfo.h
@@ -0,0 +1,46 @@
+#ifndef __d0f22b66_3135_4bbe_bee5_a31ea631ce58_ModuleInfo__
+#define __d0f22b66_3135_4bbe_bee5_a31ea631ce58_ModuleInfo__
+
+class CQuotesProviders;
+class IXMLEngine;
+class IHTMLEngine;
+// class IHTMLParser;
+
+class CModuleInfo
+{
+public:
+ typedef boost::shared_ptr<CQuotesProviders> TQuotesProvidersPtr;
+ typedef boost::shared_ptr<IXMLEngine> TXMLEnginePtr;
+ typedef boost::shared_ptr<IHTMLEngine> THTMLEnginePtr;
+
+private:
+ CModuleInfo();
+ ~CModuleInfo(void);
+
+public:
+ static CModuleInfo& GetInstance();
+
+ void OnMirandaShutdown();
+ HANDLE GetWindowList(const std::string& rsKey,bool bAllocateIfNonExist = true);
+ bool GetExtendedStatusFlag()const;
+
+ static void SetModuleHandle(HINSTANCE hInstance);
+ static HINSTANCE GetModuleHandle();
+
+ static bool Verify();
+
+ static TQuotesProvidersPtr GetQuoteProvidersPtr();
+
+ static TXMLEnginePtr GetXMLEnginePtr();
+// static void SetXMLEnginePtr(TXMLEnginePtr pEngine);
+
+ static THTMLEnginePtr GetHTMLEngine();
+ static void SetHTMLEngine(THTMLEnginePtr pEngine);
+
+private:
+ typedef std::map<std::string,HANDLE> THandles;
+ THandles m_ahWindowLists;
+ bool m_bExtendedStatusInfo;
+};
+
+#endif //__d0f22b66_3135_4bbe_bee5_a31ea631ce58_ModuleInfo__