00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef CADVANCEDOPTIONS_H
00016 #define CADVANCEDOPTIONS_H
00017
00018 #include "CString.h"
00019
00020 #define WINDOWS_LEAN_AND_MEAN
00021 #include <windows.h>
00022
00023 class CConfig;
00024
00026 class CAdvancedOptions {
00027 public:
00028 CAdvancedOptions(HWND parent, CConfig*);
00029 ~CAdvancedOptions();
00030
00032
00033
00035
00038 void doModal(bool isClient);
00039
00041
00042
00043
00045 CString getScreenName() const;
00046
00048 int getPort() const;
00049
00051 CString getInterface() const;
00052
00054 CString getCommandLine(bool isClient,
00055 const CString& serverName) const;
00056
00058
00059 private:
00060 void init();
00061 void doInit(HWND hwnd);
00062 bool save(HWND hwnd);
00063 void setDefaults(HWND hwnd);
00064
00065
00066 BOOL doDlgProc(HWND, UINT, WPARAM, LPARAM);
00067 static BOOL CALLBACK dlgProc(HWND, UINT, WPARAM, LPARAM);
00068
00069 private:
00070 static CAdvancedOptions* s_singleton;
00071
00072 HWND m_parent;
00073 CConfig* m_config;
00074 bool m_isClient;
00075 CString m_screenName;
00076 int m_port;
00077 CString m_interface;
00078 };
00079
00080 #endif