Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

CAdvancedOptions.h

00001 /*
00002  * synergy -- mouse and keyboard sharing utility
00003  * Copyright (C) 2003 Chris Schoeneman
00004  * 
00005  * This package is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * found in the file COPYING that should have accompanied this file.
00008  * 
00009  * This package is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
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     // message handling
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

Generated on Fri Nov 6 00:21:13 2009 for synergy-plus by  doxygen 1.3.9.1