summaryrefslogtreecommitdiff
path: root/skinengine/src/xml_cache.cpp
diff options
context:
space:
mode:
authormataes2007 <mataes2007@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2011-11-26 15:41:10 +0000
committermataes2007 <mataes2007@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2011-11-26 15:41:10 +0000
commitf04d64869f3b1de54fb343f28f955584780001b8 (patch)
tree5453dc10de3d980de79ffe019fa0b5fcb692a27d /skinengine/src/xml_cache.cpp
parent7aff1e4cb053394db57c2814d5fe1e6493e0cc75 (diff)
Project folders rename part 3
git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@215 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'skinengine/src/xml_cache.cpp')
-rw-r--r--skinengine/src/xml_cache.cpp71
1 files changed, 0 insertions, 71 deletions
diff --git a/skinengine/src/xml_cache.cpp b/skinengine/src/xml_cache.cpp
deleted file mode 100644
index 136d257..0000000
--- a/skinengine/src/xml_cache.cpp
+++ /dev/null
@@ -1,71 +0,0 @@
-#include "headers.h"
-
-CXmlCache g_XmlCache;
-
-CXmlCache::CachedFile::CachedFile(const TCHAR *path, bool load)
-{
- this->path = _tcsdup(path);
- if (load)
- {
- } else
- {
- hXmlRoot = NULL;
- }
-}
-
-CXmlCache::CachedFile::~CachedFile()
-{
- free(path);
- if (hXmlRoot) xi.destroyNode(hXmlRoot);
-}
-
-CXmlCache::CXmlCache(): m_files(5, CachedFile::cmp), m_classes(10, CachedClass::cmp)
-{
-}
-
-CXmlCache::~CXmlCache()
-{
-}
-
-void CXmlCache::LoadXmlFile(const TCHAR *path)
-{
- CachedFile *file = new CachedFile(path);
- if (!file->hXmlRoot)
- {
- delete file;
- return;
- }
-
- int count = xi.getChildCount(file->hXmlRoot);
- for (int i = 0; i < count; ++i)
- {
- HXML hXml = xi.getChild(file->hXmlRoot, i);
- if (!hXml) break;
-
- const TCHAR *tagName = xi.getName(hXml);
- if (!tagName || lstrcmp(tagName, _T("class"))) continue;
-
- const TCHAR *className = xi.getAttrValue(hXml, _T("name"));
- if (!className) continue;
-
- RegisterClass(className, file, hXml);
- }
-}
-
-void CXmlCache::UnloadXmlFile(const TCHAR *path)
-{
-}
-
-void CXmlCache::RegisterClass(const TCHAR *name, CachedFile *file, HXML hXmlClass)
-{
- CachedClass *cls = new CachedClass;
- cls->name = name;
- cls->file = file;
- cls->hXml = hXmlClass;
- m_classes.insert(cls);
-}
-
-ISkinElement *CXmlCache::CreateObject(const TCHAR *name)
-{
- return NULL;
-}