42 #ifndef QFUNCTIONS_WCE_H 43 #define QFUNCTIONS_WCE_H 62 #ifdef QT_BUILD_CORE_LIB 63 #ifdef __cplusplus // zlib is written in C, and does not like about the implementation of QT_MODULE macro 66 #endif // QT_BUILD_CORE_LIB 73 #define _control87 _controlfp 75 #if !defined __cplusplus 86 #ifdef __cplusplus // have this as tiff plugin is written in C 88 template <
class T>
inline T
floor(
const T&
a) {return ::floor(a);}
94 #if !defined(NO_ERRNO_H) 116 #endif // _TM_DEFINED 121 #define _O_RDONLY 0x0001 122 #define _O_RDWR 0x0002 123 #define _O_WRONLY 0x0004 124 #define _O_CREAT 0x0008 125 #define _O_TRUNC 0x0010 126 #define _O_APPEND 0x0020 127 #define _O_EXCL 0x0040 129 #define O_RDONLY _O_RDONLY 130 #define O_RDWR _O_RDWR 131 #define O_WRONLY _O_WRONLY 132 #define O_CREAT _O_CREAT 133 #define O_TRUNC _O_TRUNC 134 #define O_APPEND _O_APPEND 135 #define O_EXCL _O_EXCL 137 #define _S_IFMT 0x0600 138 #define _S_IFDIR 0x0200 139 #define _S_IFCHR 0x0100 140 #define _S_IFREG 0x0400 141 #define _S_IREAD 0x0010 142 #define _S_IWRITE 0x0008 144 #define S_IFMT _S_IFMT 145 #define S_IFDIR _S_IFDIR 146 #define S_IFCHR _S_IFCHR 147 #define S_IFREG _S_IFREG 148 #define S_IREAD _S_IREAD 149 #define S_IWRITE _S_IWRITE 152 #define _IOFBF 0x0000 156 #define _IOLBF 0x0040 160 #define _IONBF 0x0004 164 #ifndef _STAT_DEFINED 165 #define _STAT_DEFINED 184 int qt_wince__read(
int handle,
void *buffer,
unsigned int count );
185 int qt_wince__write(
int handle,
const void *buffer,
unsigned int count );
196 #define open qt_wince_open 197 #define close qt_wince__close 198 #define lseek qt_wince__lseek 199 #define read qt_wince__read 200 #define write qt_wince__write 209 int qt_wince_open(
const char *filename,
int oflag,
int pmode = 0 );
211 int qt_wince_open(
const char *filename,
int oflag,
int pmode );
216 #define SEM_FAILCRITICALERRORS 0x0001 217 #define SEM_NOOPENFILEERRORBOX 0x0002 220 #define CoInitialize(x) CoInitializeEx(x, COINIT_MULTITHREADED) 226 #pragma warning(disable: 4273) 230 #define ETO_GLYPH_INDEX 0x0010 234 # define SM_CXCURSOR 13 237 # define SM_CYCURSOR 14 242 #define MWMO_ALERTABLE 0x0002 244 #define CREATE_NO_WINDOW 2 248 #if !defined(TLS_OUT_OF_INDEXES) 249 # define TLS_OUT_OF_INDEXES 0xffffffff 257 unsigned (__stdcall *start_address)(
void *),
260 unsigned *thrdaddr );
270 int (__cdecl *
compare)(
const void *,
const void *));
273 #ifndef _TIME_T_DEFINED 275 #define _TIME_T_DEFINED 279 #ifndef WS_THICKFRAME 280 #define WS_THICKFRAME WS_DLGFRAME 287 #define WS_MAXIMIZE 0 288 #define WS_MINIMIZE 0 289 #ifndef WS_EX_TOOLWINDOW 290 #define WS_EX_TOOLWINDOW 0 292 #define WS_EX_NOPARENTNOTIFY 0 293 #define WM_ENTERIDLE 0x0121 294 #define WM_PRINT WM_PAINT 295 #define WM_NCCREATE (0x0081) 296 #define WM_PARENTNOTIFY 0 297 #define WM_NCDESTROY (WM_APP-1) 299 #define SW_RESTORE (SW_SHOWNORMAL) 301 #define SW_NORMAL (SW_SHOWNORMAL) 302 #define WAIT_OBJECT_0 0x00000000L 303 #define DEFAULT_GUI_FONT SYSTEM_FONT 305 #define SWP_NOREDRAW 0 307 #define WSAGETSELECTEVENT(lParam) LOWORD(lParam) 308 #define HWND_TOPMOST ((HWND)-1) 309 #define HWND_NOTOPMOST ((HWND)-2) 311 #define PD_ALLPAGES 0 312 #define PD_USEDEVMODECOPIES 0 313 #define PD_NOSELECTION 0 314 #define PD_HIDEPRINTTOFILE 0 315 #define PD_NOPAGENUMS 0 316 #define CF_METAFILEPICT 3 317 #define MM_ANISOTROPIC 8 318 #define KF_ALTDOWN 0x2000 319 #define SPI_GETWORKAREA 48 322 #define WM_SETCURSOR 0x0020 323 #define IDC_ARROW MAKEINTRESOURCE(32512) 324 #define IDC_IBEAM MAKEINTRESOURCE(32513) 325 #define IDC_WAIT MAKEINTRESOURCE(32514) 326 #define IDC_CROSS MAKEINTRESOURCE(32515) 327 #define IDC_UPARROW MAKEINTRESOURCE(32516) 328 #define IDC_SIZE MAKEINTRESOURCE(32646) 329 #define IDC_ICON MAKEINTRESOURCE(32512) 330 #define IDC_SIZENWSE MAKEINTRESOURCE(32642) 331 #define IDC_SIZENESW MAKEINTRESOURCE(32643) 332 #define IDC_SIZEWE MAKEINTRESOURCE(32644) 333 #define IDC_SIZENS MAKEINTRESOURCE(32645) 334 #define IDC_SIZEALL MAKEINTRESOURCE(32646) 335 #define IDC_NO MAKEINTRESOURCE(32648) 336 #define IDC_APPSTARTING MAKEINTRESOURCE(32650) 337 #define IDC_HELP MAKEINTRESOURCE(32651) 338 #define IDC_HAND MAKEINTRESOURCE(32649) 341 #define GMEM_MOVEABLE LMEM_MOVEABLE 346 #undef FTP_TRANSFER_TYPE_ASCII 347 #define FTP_TRANSFER_TYPE_ASCII 0x00000001 348 #undef FTP_TRANSFER_TYPE_BINARY 349 #define FTP_TRANSFER_TYPE_BINARY 0x00000002 354 #ifndef WS_POPUPWINDOW 355 #define WS_POPUPWINDOW WS_POPUP|WS_BORDER|WS_SYSMENU|WS_CAPTION 358 #ifndef WS_OVERLAPPEDWINDOW 359 #define WS_OVERLAPPEDWINDOW WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_THICKFRAME|WS_MINIMIZEBOX|WS_MAXIMIZEBOX 363 #define WS_TILED WS_OVERLAPPED 366 #ifndef WS_TILEDWINDOW 367 #define WS_TILEDWINDOW WS_OVERLAPPEDWINDOW 370 #ifndef WS_EX_CAPTIONOKBTN 371 #define WS_EX_CAPTIONOKBTN 0x80000000L 375 #define WS_EX_NODRAG 0x40000000L 384 #define getenv_s(a,b,c,d) qt_wince_getenv_s(a,b,c,d) 385 #define _putenv_s(a,b) qt_wince__putenv_s(a,b) 386 #define _getpid() qt_wince__getpid() 387 #define time_tToFt(a) qt_wince_time_tToFt(a) 388 #define _getdrive() qt_wince__getdrive() 389 #define _waccess(a,b) qt_wince__waccess(a,b) 390 #define _wopen(a,b,c) qt_wince__wopen(a,b,c) 391 #define _fdopen(a,b) qt_wince__fdopen(a,b) 392 #define fdopen(a,b) qt_wince_fdopen(a,b) 393 #define rewind(a) qt_wince_rewind(a) 394 #define tmpfile() qt_wince_tmpfile() 395 #define _rename(a,b) qt_wince__rename(a,b) 396 #define _remove(a) qt_wince__remove(a) 397 #define SetErrorMode(a) qt_wince_SetErrorMode(a) 398 #define _chmod(a,b) qt_wince__chmod(a,b) 399 #define _wchmod(a,b) qt_wince__wchmod(a,b) 400 #define CreateFileA(a,b,c,d,e,f,g) qt_wince_CreateFileA(a,b,c,d,e,f,g) 401 #define SetWindowOrgEx(a,b,c,d) qt_wince_SetWindowOrgEx(a,b,c,d) 402 #define calloc(a,b) qt_wince_calloc(a,b) 403 #define GetThreadLocale() qt_wince_GetThreadLocale() 404 #define _beginthread(a,b,c) qt_wince__beginthread(a,b,c) 405 #define _beginthreadex(a,b,c,d,e,f) qt_wince__beginthreadex(a,b,c,d,e,f) 406 #define _endthreadex(a) qt_wince__endthreadex(a) 407 #define bsearch(a,b,c,d,e) qt_wince_bsearch(a,b,c,d,e) 414 #endif // QFUNCTIONS_WCE_H
long qt_wince__lseek(int handle, long offset, int origin)
void * qt_wince_bsearch(const void *key, const void *base, size_t num, size_t size, int(__cdecl *compare)(const void *, const void *))
DWORD qt_wince_GetThreadLocale(void)
void qt_wince_rewind(FILE *stream)
int qt_wince__rmdir(const char *dirname)
#define QT_END_NAMESPACE
This macro expands to.
errno_t qt_wince_getenv_s(size_t *, char *, size_t, const char *)
FILETIME qt_wince_time_tToFt(time_t tt)
HANDLE qt_wince__beginthread(void(*start_address)(void *), unsigned stack_size, void *arglist)
bool qt_wince__wchmod(const wchar_t *file, int mode)
int qt_wince___fileno(FILE *)
long ASN1_INTEGER_get ASN1_INTEGER * a
int qt_wince__remove(const char *name)
int qt_wince__fstat(int handle, struct stat *buffer)
int qt_wince__getdrive(void)
int qt_wince_SetErrorMode(int)
void qt_wince__endthreadex(unsigned nExitCode)
FILE * qt_wince__fdopen(int handle, const char *mode)
#define QT_BEGIN_NAMESPACE
This macro expands to.
static bool compare(const QVariant::Private *a, const QVariant::Private *b)
Compares a to b.
FILE * qt_wince_tmpfile(void)
int qt_wince__waccess(const wchar_t *path, int pmode)
int qt_wince__close(int handle)
BOOL qt_wince_SetWindowOrgEx(HDC hdc, int X, int Y, LPPOINT lpPoint)
HANDLE qt_wince_CreateFileA(LPCSTR, DWORD, DWORD, LPSECURITY_ATTRIBUTES, DWORD, DWORD, HANDLE)
FILE * qt_wince_fdopen(int handle, const char *mode)
int qt_wince__mkdir(const char *dirname)
int qt_wince__access(const char *path, int pmode)
bool qt_wince__chmod(const char *file, int mode)
int qt_wince__wopen(const wchar_t *filename, int oflag, int pmode)
int qt_wince_open(const char *filename, int oflag, int pmode=0)
errno_t qt_wince__putenv_s(const char *, const char *)
int qt_wince__write(int handle, const void *buffer, unsigned int count)
unsigned long qt_wince__beginthreadex(void *security, unsigned stack_size, unsigned(__stdcall *start_address)(void *), void *arglist, unsigned initflag, unsigned *thrdaddr)
int qt_wince_stat(const char *path, struct stat *buffer)
void * qt_wince_calloc(size_t num, size_t size)
int qt_wince__getpid(void)
int qt_wince__rename(const char *oldname, const char *newname)
int qt_wince__read(int handle, void *buffer, unsigned int count)