summaryrefslogtreecommitdiff
path: root/SkinEngine/src/data_source.h
diff options
context:
space:
mode:
Diffstat (limited to 'SkinEngine/src/data_source.h')
-rw-r--r--SkinEngine/src/data_source.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/SkinEngine/src/data_source.h b/SkinEngine/src/data_source.h
new file mode 100644
index 0000000..b6aba18
--- /dev/null
+++ b/SkinEngine/src/data_source.h
@@ -0,0 +1,41 @@
+#ifndef data_source_h__
+#define data_source_h__
+/*
+class CSkinDataItem
+{
+private:
+ TCHAR *m_name;
+ HICON m_icon;
+ HBITMAP m_bitmap;
+ const TCHAR *m_text;
+
+public:
+ CSkinDataItem(const TCHAR *name, HICON icon);
+ CSkinDataItem(const TCHAR *name, HBITMAP bitmap);
+ CSkinDataItem(const TCHAR *name, const TCHAR *text);
+ ~CSkinDataItem();
+
+ const TCHAR *GetName() { return m_text; }
+ HICON GetIcon() { return m_icon; }
+ HBITMAP GetBitmap() { return m_bitmap; }
+ const TCHAR *GetText() { return m_text; }
+};
+*/
+
+class CSkinDataSource: public ISkinDataSource
+{
+private:
+ TCHAR *m_basePath;
+ ISkinBackend *m_backend;
+
+public:
+ CSkinDataSource();
+ ~CSkinDataSource();
+
+ virtual LPCTSTR GetText(const TCHAR *key);
+ virtual HICON GetIcon(const TCHAR *key);
+ virtual HBITMAP GetBitmap(const TCHAR *key);
+ virtual ISkinBackend *GetObject(const TCHAR *key);
+};
+
+#endif // data_source_h__