hti/PC_Tools/HTIGateway/ServicePlugins/HtiScreenshot/HtiScreenshot.h
branchRCL_3
changeset 59 8ad140f3dd41
parent 0 a03f92240627
equal deleted inserted replaced
49:7fdc9a71d314 59:8ad140f3dd41
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 * 
       
    14 * Description:
       
    15 */
       
    16 // HTI service functions
       
    17 //gsoap ns1 service name: HtiScreenshot
       
    18 //gsoap ns1 service namespace: urn:hti
       
    19 //gsoap ns1 service style: rpc
       
    20 //gsoap ns1 service encoding: literal
       
    21 //gsoap ns1 service location: http://localhost:2000
       
    22 
       
    23 typedef char * xsd__string;
       
    24 typedef wchar_t * xsd__string_;
       
    25 typedef int xsd__int;
       
    26 typedef unsigned char xsd__unsignedByte;
       
    27 typedef unsigned short xsd__unsignedShort;
       
    28 typedef bool xsd__boolean;
       
    29 
       
    30 enum ns1__screenOrientation { Rotated0, Rotated90, Rotated180, Rotated270 };
       
    31 
       
    32 struct ns1__HtiSoapAttachment
       
    33 {
       
    34 	//@xsd__string href;
       
    35 	xsd__string href;
       
    36 	xsd__string mimeType;
       
    37 };
       
    38 
       
    39 struct ns1__HtiFont
       
    40 {
       
    41 	xsd__string_ fontName;
       
    42 	xsd__unsignedShort fontHeight;
       
    43 	xsd__boolean isBold;
       
    44 	xsd__boolean isItalic;
       
    45 	xsd__boolean isNotAntialiased;
       
    46 	xsd__unsignedByte position;
       
    47 };
       
    48 
       
    49 struct ArrayOfHtiFonts
       
    50 {
       
    51 	struct ns1__HtiFont* __ptrHtiFont;
       
    52 	int __size;
       
    53 };
       
    54 
       
    55 struct ns1__HtiRecognizeTextResult
       
    56 {
       
    57 	xsd__boolean found;
       
    58 	xsd__unsignedShort x;
       
    59 	xsd__unsignedShort y;
       
    60 	xsd__unsignedShort fontIndex;
       
    61 };
       
    62 
       
    63 struct ns1__HtiRect
       
    64 {
       
    65 	xsd__unsignedShort topLeftX;
       
    66 	xsd__unsignedShort topLeftY;
       
    67 	xsd__unsignedShort bottomRightX;
       
    68 	xsd__unsignedShort bottomRightY;
       
    69 };
       
    70 
       
    71 struct ns1__HtiRGB
       
    72 {
       
    73 	xsd__unsignedByte	red;
       
    74 	xsd__unsignedByte	green;
       
    75 	xsd__unsignedByte	blue;
       
    76 };
       
    77 
       
    78 struct ns1__HtiDeltaCaptureAttachment
       
    79 {
       
    80 	xsd__string href;
       
    81 	xsd__string mimeType;
       
    82 	struct ns1__HtiRect rect;
       
    83 };
       
    84 
       
    85 struct ns1__HtiScreenModeResult
       
    86 {
       
    87     xsd__unsignedByte screenNumber;
       
    88     xsd__unsignedShort screenWidth;
       
    89     xsd__unsignedShort screenHeight;
       
    90     enum ns1__screenOrientation screenRotation;
       
    91     xsd__unsignedByte displayMode;
       
    92     xsd__unsignedByte focusScreenNumber;
       
    93 };
       
    94 
       
    95 struct ns1__captureScreenResponse{ struct ns1__HtiSoapAttachment _returnAttachment;};
       
    96 
       
    97 struct ns1__captureDeltaScreenResponse{
       
    98 	//struct ns1__HtiSoapAttachment _returnAttachment;
       
    99 	//struct ns1__HtiRect rect;
       
   100 	struct ns1__HtiDeltaCaptureAttachment _returnDeltaAttachment;
       
   101 };
       
   102 
       
   103 struct ns1__recognizeTextResponse{ struct ns1__HtiRecognizeTextResult _returnText;};
       
   104 
       
   105 struct ArrayOfFiles
       
   106 {
       
   107     xsd__string	*__ptr;
       
   108     xsd__int	__size;
       
   109 };
       
   110 
       
   111 struct ns1__screenModeResponse{ struct ns1__HtiScreenModeResult _returnScreenMode;};
       
   112 
       
   113 //gsoap ns1 service method-action: captureFullScreen "HtiScreenshot"
       
   114 int ns1__captureFullScreen(
       
   115 	xsd__unsignedByte	colorDepth,
       
   116 	xsd__string			imageMimeType,
       
   117 	struct ns1__captureScreenResponse& r
       
   118 );
       
   119 
       
   120 //gsoap ns1 service method-action: captureFullScreenZip "HtiScreenshot"
       
   121 int ns1__captureFullScreenZip(
       
   122 	xsd__unsignedByte	colorDepth,
       
   123 	xsd__string			imageMimeType,
       
   124 	struct ns1__captureScreenResponse& r
       
   125 );
       
   126 
       
   127 //gsoap ns1 service method-action: captureRegion "HtiScreenshot"
       
   128 int ns1__captureRegion(
       
   129 	struct ns1__HtiRect    rect,
       
   130 	xsd__unsignedByte	colorDepth,
       
   131 	xsd__string			imageMimeType,
       
   132    struct ns1__captureScreenResponse& r
       
   133 );
       
   134 
       
   135 //gsoap ns1 service method-action: captureRegionZip "HtiScreenshot"
       
   136 int ns1__captureRegionZip(
       
   137 	struct ns1__HtiRect    rect,
       
   138 	xsd__unsignedByte	colorDepth,
       
   139 	xsd__string			imageMimeType,
       
   140 	struct ns1__captureScreenResponse& r
       
   141 );
       
   142 
       
   143 //gsoap ns1 service method-action: recognizeText "HtiScreenshot"
       
   144 int ns1__recognizeText(
       
   145 	xsd__string_		text,
       
   146 	struct ArrayOfHtiFonts* array,
       
   147 	struct ns1__recognizeTextResponse& r
       
   148 );
       
   149 
       
   150 //gsoap ns1 service method-action: createTextImage "HtiScreenshot"
       
   151 int ns1__createTextImage(
       
   152 	xsd__unsignedByte		colorDepth,
       
   153 	xsd__string				imageMimeType,
       
   154 	xsd__string_			text,
       
   155 	struct ns1__HtiFont*	font,
       
   156 	struct ns1__HtiRGB    fgColor,
       
   157 	struct ns1__HtiRGB    bgColor,
       
   158 	struct ns1__captureScreenResponse& r
       
   159 );
       
   160 
       
   161 //gsoap ns1 service method-action: captureFullScreenSeries "HtiScreenshot"
       
   162 int ns1__captureFullScreenSeries(
       
   163 	xsd__int			duration,
       
   164 	xsd__int			interval,
       
   165 	xsd__unsignedByte	colorDepth,
       
   166     xsd__string			imageMimeType,
       
   167 	struct ArrayOfFiles *files
       
   168 );
       
   169 
       
   170 //gsoap ns1 service method-action: captureFullScreenZipSeries "HtiScreenshot"
       
   171 int ns1__captureFullScreenZipSeries(
       
   172 	xsd__int			duration,
       
   173 	xsd__int			interval,
       
   174 	xsd__unsignedByte	colorDepth,
       
   175     xsd__string			imageMimeType,
       
   176 	struct ArrayOfFiles *files
       
   177 );
       
   178 
       
   179 //gsoap ns1 service method-action: captureRegionSeries "HtiScreenshot"
       
   180 int ns1__captureRegionSeries(
       
   181 	xsd__int			duration,
       
   182 	xsd__int			interval,
       
   183 	xsd__unsignedByte	colorDepth,
       
   184 	struct ns1__HtiRect    rect,
       
   185 	xsd__string			imageMimeType,
       
   186 	struct ArrayOfFiles *files
       
   187 );
       
   188 
       
   189 //gsoap ns1 service method-action: captureRegionZipSeries "HtiScreenshot"
       
   190 int ns1__captureRegionZipSeries(
       
   191 	xsd__int			duration,
       
   192 	xsd__int			interval,
       
   193 	xsd__unsignedByte	colorDepth,
       
   194 	struct ns1__HtiRect    rect,
       
   195 	xsd__string			imageMimeType,
       
   196 	struct ArrayOfFiles *files
       
   197 );
       
   198 
       
   199 //gsoap ns1 service method-action: captureDeltaFullScreen "HtiScreenshot"
       
   200 int ns1__captureDeltaFullScreen(
       
   201 	xsd__unsignedByte	colorDepth,
       
   202 	xsd__string			imageMimeType,
       
   203 	struct ns1__captureDeltaScreenResponse& r
       
   204 );
       
   205 
       
   206 //gsoap ns1 service method-action: captureDeltaFullScreenZip "HtiScreenshot"
       
   207 int ns1__captureDeltaFullScreenZip(
       
   208 	xsd__unsignedByte	colorDepth,
       
   209 	xsd__string			imageMimeType,
       
   210 	struct ns1__captureDeltaScreenResponse& r
       
   211 );
       
   212 
       
   213 //gsoap ns1 service method-action: captureDeltaRegion "HtiScreenshot"
       
   214 int ns1__captureDeltaRegion(
       
   215 	struct ns1__HtiRect    rect,
       
   216 	xsd__unsignedByte	colorDepth,
       
   217 	xsd__string			imageMimeType,
       
   218     struct ns1__captureDeltaScreenResponse& r
       
   219 );
       
   220 
       
   221 //gsoap ns1 service method-action: captureDeltaRegionZip "HtiScreenshot"
       
   222 int ns1__captureDeltaRegionZip(
       
   223 	struct ns1__HtiRect    rect,
       
   224 	xsd__unsignedByte	colorDepth,
       
   225 	xsd__string			imageMimeType,
       
   226 	struct ns1__captureDeltaScreenResponse& r
       
   227 );
       
   228 
       
   229 //gsoap ns1 service method-action: selectScreen "HtiScreenshot"
       
   230 int ns1__selectScreen(
       
   231 	xsd__unsignedByte	screenNr,
       
   232 	struct ns1__selectScreenResponse{} *out
       
   233 );
       
   234 
       
   235 //gsoap ns1 service method-action: resetDeltaScreen "HtiScreenshot"
       
   236 int ns1__resetDeltaScreen(
       
   237     void *_, // no in parameter,
       
   238 	struct ns1__resetDeltaScreenResponse{} *out // empty response
       
   239 );
       
   240 
       
   241 //gsoap ns1 service method-action: screenMode "HtiScreenshot"
       
   242 int ns1__screenMode(
       
   243     void *_, // no in parameter,
       
   244 	struct ns1__screenModeResponse& r
       
   245 );