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

LaunchUtil.h

00001 /*
00002  * synergy -- mouse and keyboard sharing utility
00003  * Copyright (C) 2002 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 LAUNCHUTIL_H
00016 #define LAUNCHUTIL_H
00017 
00018 #include "CString.h"
00019 
00020 #define WINDOWS_LEAN_AND_MEAN
00021 #include <windows.h>
00022 #include <sys/types.h>
00023 #include <sys/stat.h>
00024 
00025 #define CLIENT_APP "synergyc.exe"
00026 #define SERVER_APP "synergys.exe"
00027 #define CONFIG_NAME "synergy.sgc"
00028 
00029 class CConfig;
00030 
00031 // client must define this and set it before calling any function here
00032 extern HINSTANCE s_instance;
00033 
00034 CString                 getString(DWORD id);
00035 CString                 getErrorString(DWORD error);
00036 
00037 void                    showError(HWND hwnd, const CString& msg);
00038 void                    askOkay(HWND hwnd, const CString& title,
00039                             const CString& msg);
00040 bool                    askVerify(HWND hwnd, const CString& msg);
00041 bool                    isShowingDialog();
00042 
00043 void                    setWindowText(HWND hwnd, const CString& msg);
00044 CString                 getWindowText(HWND hwnd);
00045 
00046 HWND                    getItem(HWND hwnd, int id);
00047 void                    enableItem(HWND hwnd, int id, bool enabled);
00048 
00049 void                    setItemChecked(HWND, bool);
00050 bool                    isItemChecked(HWND);
00051 
00052 CString                 getAppPath(const CString& appName);
00053 
00054 bool                    isConfigNewer(time_t&, bool userConfig);
00055 bool                    loadConfig(CConfig& config, time_t&, bool& userConfig);
00056 bool                    saveConfig(const CConfig& config,
00057                             bool sysOnly, time_t&);
00058 
00059 const TCHAR* const*     getSettingsPath();
00060 
00061 #endif

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