Added fail safe delay as some camera drivers ignore the frame rate
[pwlib.git] / samples / xmlrpcsrvr / custom.cxx
blobdff5d64a2eb4ea1b68a74ae85e7b8522246cf0fb
1 /*
2 * custom.cxx
4 * PWLib application source file for xmlrpcsrvr
6 * Customisable application configurationfor OEMs.
8 * Copyright 2001 Equivalence Pty. Ltd.
9 */
11 #ifdef RC_INVOKED
12 #include <winver.h>
13 #else
14 #include <ptlib.h>
15 #include "custom.h"
16 #endif
18 #define MAJOR_VERSION 1
19 #define MINOR_VERSION 0
21 #ifndef BUILD_TYPE
22 #define BUILD_TYPE ReleaseCode
23 #endif
25 #ifndef BUILD_NUMBER
26 #define BUILD_NUMBER 1
27 #endif
30 ////////////////////////////////////////////////////
32 // Variables required for PHTTPServiceProcess
34 ////////////////////////////////////////////////////
36 #ifndef PRODUCT_NAME_TEXT
37 #define PRODUCT_NAME_TEXT "PWLib XML/RPC Server"
38 #endif
40 #ifndef EXE_NAME_TEXT
41 #define EXE_NAME_TEXT "xmlrpcsrvr"
42 #endif
44 #ifndef MANUFACTURER_TEXT
45 #define MANUFACTURER_TEXT "Equivalence Pty. Ltd."
46 #endif
48 #ifndef COPYRIGHT_HOLDER
49 #define COPYRIGHT_HOLDER MANUFACTURER_TEXT
50 #endif
52 #ifndef GIF_NAME
53 #define GIF_NAME EXE_NAME_TEXT ".gif"
54 #define GIF_WIDTH 380
55 #define GIF_HEIGHT 101
56 #endif
58 #ifndef EMAIL
59 #define EMAIL NULL
60 #endif
62 #ifndef HOME_PAGE
63 #define HOME_PAGE NULL
64 #endif
66 #ifndef PRODUCT_NAME_HTML
67 #define PRODUCT_NAME_HTML PRODUCT_NAME_TEXT
68 #endif
71 #ifdef RC_INVOKED
73 #define AlphaCode alpha
74 #define BetaCode beta
75 #define ReleaseCode pl
77 #define MkStr2(s) #s
78 #define MkStr(s) MkStr2(s)
80 #if BUILD_NUMBER==0
81 #define VERSION_STRING \
82 MkStr(MAJOR_VERSION) "." MkStr(MINOR_VERSION)
83 #else
84 #define VERSION_STRING \
85 MkStr(MAJOR_VERSION) "." MkStr(MINOR_VERSION) MkStr(BUILD_TYPE) MkStr(BUILD_NUMBER)
86 #endif
89 VS_VERSION_INFO VERSIONINFO
90 #define alpha 1
91 #define beta 2
92 #define pl 3
93 FILEVERSION MAJOR_VERSION,MINOR_VERSION,BUILD_TYPE,BUILD_NUMBER
94 PRODUCTVERSION MAJOR_VERSION,MINOR_VERSION,BUILD_TYPE,BUILD_NUMBER
95 #undef alpha
96 #undef beta
97 #undef pl
98 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
99 #ifdef _DEBUG
100 FILEFLAGS VS_FF_DEBUG
101 #else
102 FILEFLAGS 0
103 #endif
104 FILEOS VOS_NT_WINDOWS32
105 FILETYPE VFT_APP
106 FILESUBTYPE VFT2_UNKNOWN
107 BEGIN
108 BLOCK "StringFileInfo"
109 BEGIN
110 BLOCK "0c0904b0"
111 BEGIN
112 VALUE "CompanyName", MANUFACTURER_TEXT "\0"
113 VALUE "FileDescription", PRODUCT_NAME_TEXT "\0"
114 VALUE "FileVersion", VERSION_STRING "\0"
115 VALUE "InternalName", EXE_NAME_TEXT "\0"
116 VALUE "LegalCopyright", "Copyright © " COPYRIGHT_HOLDER " 2001\0"
117 VALUE "OriginalFilename", EXE_NAME_TEXT ".exe\0"
118 VALUE "ProductName", PRODUCT_NAME_TEXT "\0"
119 VALUE "ProductVersion", VERSION_STRING "\0"
122 BLOCK "VarFileInfo"
123 BEGIN
124 VALUE "Translation", 0xc09, 1200
128 #else
130 PHTTPServiceProcess::Info ProductInfo = {
131 PRODUCT_NAME_TEXT,
132 MANUFACTURER_TEXT,
133 MAJOR_VERSION, MINOR_VERSION, PProcess::BUILD_TYPE, BUILD_NUMBER, __TIME__ __DATE__,
135 {{ 0 }}, { NULL }, 0, {{ 0 }}, // Only relevent for commercial apps
137 HOME_PAGE,
138 EMAIL,
139 PRODUCT_NAME_HTML,
140 NULL, // GIF HTML, use calculated from below
141 GIF_NAME,
142 GIF_WIDTH,
143 GIF_HEIGHT
147 #endif
150 // End of File ///////////////////////////////////////////////////////////////