summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/dropbox_dialogs.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dropbox/src/dropbox_dialogs.h')
-rw-r--r--plugins/Dropbox/src/dropbox_dialogs.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/plugins/Dropbox/src/dropbox_dialogs.h b/plugins/Dropbox/src/dropbox_dialogs.h
new file mode 100644
index 0000000000..c39e3e342a
--- /dev/null
+++ b/plugins/Dropbox/src/dropbox_dialogs.h
@@ -0,0 +1,24 @@
+#ifndef _DROPBOX_DIALOGS_H_
+#define _DROPBOX_DIALOGS_H_
+
+class CDropboxDlgBase : public CDlgBase
+{
+protected:
+ CDropbox *m_instance;
+
+public:
+ CDropboxDlgBase(CDropbox *instance, int idDialog);
+
+ void CreateLink(CCtrlData& ctrl, const char *szSetting, BYTE type, DWORD iValue);
+ void CreateLink(CCtrlData& ctrl, const char *szSetting, TCHAR *szValue);
+
+ template<class T>
+ __inline void CreateLink(CCtrlData& ctrl, CMOption<T> &option)
+ {
+ ctrl.CreateDbLink(new CMOptionLink<T>(option));
+ }
+
+ __inline CDropbox *GetInstance() { return m_instance; }
+};
+
+#endif //_DROPBOX_DIALOGS_H_ \ No newline at end of file