CGlobalOptions.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 CGLOBALOPTIONS_H
00016 #define CGLOBALOPTIONS_H
00017 
00018 #include "CString.h"
00019 
00020 #define WINDOWS_LEAN_AND_MEAN
00021 #include <windows.h>
00022 
00023 class CConfig;
00024 
00026 class CGlobalOptions {
00027 public:
00028     CGlobalOptions(HWND parent, CConfig*);
00029     ~CGlobalOptions();
00030 
00032 
00033 
00035 
00038     void                doModal();
00039 
00041 
00042 
00043 
00044 
00046 
00047 private:
00048     void                init(HWND hwnd);
00049     bool                save(HWND hwnd);
00050 
00051     int                 getTime(HWND hwnd, HWND child, bool reportError);
00052 
00053     // message handling
00054     BOOL                doDlgProc(HWND, UINT, WPARAM, LPARAM);
00055     static BOOL CALLBACK dlgProc(HWND, UINT, WPARAM, LPARAM);
00056 
00057 private:
00058     static CGlobalOptions*  s_singleton;
00059 
00060     HWND                m_parent;
00061     CConfig*            m_config;
00062     int                 m_delayTime;
00063     int                 m_twoTapTime;
00064     int                 m_heartbeatTime;
00065 };
00066 
00067 #endif

Generated on Fri Nov 6 00:18:44 2009 for synergy-plus by  doxygen 1.4.7