• Main Page
  • Classes
  • Files
  • File List

IArchString.h

00001 /*
00002  * synergy -- mouse and keyboard sharing utility
00003  * Copyright (C) 2012 Bolton Software Ltd.
00004  * Copyright (C) 2002 Chris Schoeneman
00005  * 
00006  * This package is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * found in the file COPYING that should have accompanied this file.
00009  * 
00010  * This package is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00017  */
00018 
00019 #ifndef IARCHSTRING_H
00020 #define IARCHSTRING_H
00021 
00022 #include "IInterface.h"
00023 #include "BasicTypes.h"
00024 #include <stdarg.h>
00025 
00027 
00031 class IArchString : public IInterface {
00032 public:
00033     virtual ~IArchString();
00034 
00036 
00039     enum EWideCharEncoding {
00040         kUCS2,      
00041         kUCS4,      
00042         kUTF16,     
00043         kUTF32      
00044     };
00045 
00047 
00048 
00050 
00056     virtual int         vsnprintf(char* str,
00057                             int size, const char* fmt, va_list ap);
00058 
00060     virtual int         convStringMBToWC(wchar_t*,
00061                             const char*, UInt32 n, bool* errors);
00062 
00064     virtual int         convStringWCToMB(char*,
00065                             const wchar_t*, UInt32 n, bool* errors);
00066 
00068     virtual EWideCharEncoding
00069                         getWideCharEncoding() = 0;
00070 
00072 };
00073 
00074 #endif

Generated on Tue May 21 2013 00:00:06 for Synergy by  doxygen 1.7.1