aboutsummaryrefslogtreecommitdiff
path: root/Src/Winamp/setup/spage_connect.h
diff options
context:
space:
mode:
authorJean-Francois Mauguit <jfmauguit@mac.com>2024-09-24 09:03:25 -0400
committerGitHub <noreply@github.com>2024-09-24 09:03:25 -0400
commitbab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Winamp/setup/spage_connect.h
parent4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff)
parent20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff)
downloadwinamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/Winamp/setup/spage_connect.h')
-rw-r--r--Src/Winamp/setup/spage_connect.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/Src/Winamp/setup/spage_connect.h b/Src/Winamp/setup/spage_connect.h
new file mode 100644
index 00000000..c4af10d7
--- /dev/null
+++ b/Src/Winamp/setup/spage_connect.h
@@ -0,0 +1,45 @@
+#ifndef WINAMP_CONNECTIOVITY_SETUP_PAGE_HEADER
+#define WINAMP_CONNECTIOVITY_SETUP_PAGE_HEADER
+
+#include "./ifc_setuppage.h"
+
+class setup_page_connect : public ifc_setuppage
+{
+
+public:
+ setup_page_connect();
+ virtual ~setup_page_connect();
+
+public:
+ size_t AddRef();
+ size_t Release();
+ HRESULT GetName(bool bShort, const wchar_t **pszName);
+ HRESULT Save(HWND hwndText);
+ HRESULT CreateView(HWND hwndParent, HWND *phwnd);
+ HRESULT Revert(void);
+ HRESULT IsDirty(void);
+ HRESULT Validate(void);
+protected:
+ INT_PTR PageDlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
+ INT_PTR OnInitDialog(HWND hwndFocus, LPARAM lParam);
+ void OnSize(UINT nType, INT cx, INT cy);
+ void OnCommand(INT nCtrlID, INT nEvntID, HWND hwndCtrl);
+
+ void ComboBox_OnSelChange(HWND hwndCtrl);
+
+ void UpdateUI(void);
+
+private:
+ size_t ref;
+ HWND hwnd;
+ INT inetMode;
+ BOOL bPort80;
+ WCHAR szProxy[MAX_PATH];
+
+protected:
+ friend static INT_PTR WINAPI DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
+ RECVS_DISPATCH;
+};
+
+
+#endif //WINAMP_CONNECTIOVITY_SETUP_PAGE_HEADER \ No newline at end of file