| 1 | /* | 
|---|
| 2 | * synergy -- mouse and keyboard sharing utility | 
|---|
| 3 | * Copyright (C) 2002 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 CARCHSTRINGWINDOWS_H | 
|---|
| 16 | #define CARCHSTRINGWINDOWS_H | 
|---|
| 17 |  | 
|---|
| 18 | #include "IArchString.h" | 
|---|
| 19 |  | 
|---|
| 20 | #define ARCH_STRING CArchStringWindows | 
|---|
| 21 |  | 
|---|
| 22 | //! Win32 implementation of IArchString | 
|---|
| 23 | class CArchStringWindows : public IArchString { | 
|---|
| 24 | public: | 
|---|
| 25 | CArchStringWindows(); | 
|---|
| 26 | virtual ~CArchStringWindows(); | 
|---|
| 27 |  | 
|---|
| 28 | // IArchString overrides | 
|---|
| 29 | virtual int                     vsnprintf(char* str, | 
|---|
| 30 | int size, const char* fmt, va_list ap); | 
|---|
| 31 | virtual int                     convStringMBToWC(wchar_t*, | 
|---|
| 32 | const char*, UInt32 n, bool* errors); | 
|---|
| 33 | virtual int                     convStringWCToMB(char*, | 
|---|
| 34 | const wchar_t*, UInt32 n, bool* errors); | 
|---|
| 35 | virtual EWideCharEncoding | 
|---|
| 36 | getWideCharEncoding(); | 
|---|
| 37 | }; | 
|---|
| 38 |  | 
|---|
| 39 | #endif | 
|---|