source: trunk/synergy/cmd/launcher/CAdvancedOptions.h@ 3232

Last change on this file since 3232 was 2749, checked in by bird, 19 years ago

synergy v1.3.1 sources (zip).

File size: 1.7 KB
Line 
1/*
2 * synergy -- mouse and keyboard sharing utility
3 * Copyright (C) 2003 Chris Schoeneman
4 *
5 * This package is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * found in the file COPYING that should have accompanied this file.
8 *
9 * This package is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14
15#ifndef CADVANCEDOPTIONS_H
16#define CADVANCEDOPTIONS_H
17
18#include "CString.h"
19
20#define WINDOWS_LEAN_AND_MEAN
21#include <windows.h>
22
23class CConfig;
24
25//! Advanced options dialog for Microsoft Windows launcher
26class CAdvancedOptions {
27public:
28 CAdvancedOptions(HWND parent, CConfig*);
29 ~CAdvancedOptions();
30
31 //! @name manipulators
32 //@{
33
34 //! Run dialog
35 /*!
36 Display and handle the dialog until closed by the user.
37 */
38 void doModal(bool isClient);
39
40 //@}
41 //! @name accessors
42 //@{
43
44 //! Get the screen name
45 CString getScreenName() const;
46
47 //! Get the port
48 int getPort() const;
49
50 //! Get the interface
51 CString getInterface() const;
52
53 //! Convert options to command line string
54 CString getCommandLine(bool isClient,
55 const CString& serverName) const;
56
57 //@}
58
59private:
60 void init();
61 void doInit(HWND hwnd);
62 bool save(HWND hwnd);
63 void setDefaults(HWND hwnd);
64
65 // message handling
66 BOOL doDlgProc(HWND, UINT, WPARAM, LPARAM);
67 static BOOL CALLBACK dlgProc(HWND, UINT, WPARAM, LPARAM);
68
69private:
70 static CAdvancedOptions* s_singleton;
71
72 HWND m_parent;
73 CConfig* m_config;
74 bool m_isClient;
75 CString m_screenName;
76 int m_port;
77 CString m_interface;
78};
79
80#endif
Note: See TracBrowser for help on using the repository browser.