hti/PC_Tools/HTIGateway/ServicePlugins/HtiFtp/HtiFtp.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: HtiFtp
       
    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 bool xsd__boolean;
       
    26 typedef unsigned char xsd__unsignedByte;
       
    27 typedef int xsd__int;
       
    28 typedef unsigned int xsd__unsignedInt;
       
    29 typedef ULONG64	xsd__unsignedLong;
       
    30 
       
    31 enum ns1__driveMediaType { NotPresent, UnknownType, Floppy, HardDisk, CDROM,
       
    32                            RAM, Flash, ROM, Remote, NANDFlash, RotatingMedia };
       
    33 
       
    34 struct ns1__HtiSoapAttachment
       
    35 {
       
    36 	//@xsd__string href;
       
    37 	xsd__string href;
       
    38 	xsd__string mimeType;
       
    39 };
       
    40 
       
    41 struct ArrayOfStrings
       
    42 {
       
    43 	xsd__string_* __ptr;
       
    44 	int __size;
       
    45 };
       
    46 
       
    47 struct ArrayOfBytes
       
    48 {
       
    49 	xsd__unsignedByte* __ptr;
       
    50 	int __size;
       
    51 };
       
    52 
       
    53 struct ns1__HtiFileInfo
       
    54 {
       
    55 	xsd__string_     fileName;
       
    56     xsd__unsignedInt fileSize;
       
    57 };
       
    58 
       
    59 struct ArrayOfHtiFileInfos
       
    60 {
       
    61 	struct ns1__HtiFileInfo* __ptr;
       
    62 	int __size;
       
    63 };
       
    64 
       
    65 struct ns1__HtiDriveInfo
       
    66 {
       
    67     xsd__string_ rootPath;
       
    68     enum ns1__driveMediaType mediaType;
       
    69     xsd__unsignedInt uniqueID;
       
    70     xsd__unsignedLong driveSize;
       
    71     xsd__unsignedLong freeSpace;
       
    72     xsd__string_ driveName;
       
    73 };
       
    74 
       
    75 struct ArrayOfHtiDriveInfos
       
    76 {
       
    77 	struct ns1__HtiDriveInfo* __ptr;
       
    78 	int __size;
       
    79 };
       
    80 
       
    81 //gsoap ns1 service method-action: putFile "HtiFtp"
       
    82 int ns1__putFile(
       
    83 	struct ns1__HtiSoapAttachment *file,
       
    84     xsd__string_ targetPath,
       
    85 	struct ns1__putFileResponse{} *out
       
    86 );
       
    87 struct ns1__getFileResponse{struct ns1__HtiSoapAttachment _return;};
       
    88 //gsoap ns1 service method-action: getFile "HtiFtp"
       
    89 int ns1__getFile(
       
    90 	xsd__string_ filePath,
       
    91 	struct ns1__getFileResponse &r
       
    92 );
       
    93 //gsoap ns1 service method-action: cancelFileTransfer "HtiFtp"
       
    94 int ns1__cancelFileTransfer(
       
    95 	void*_ ,
       
    96 	struct ns1__cancelFileTransferResponse{} *out
       
    97 );
       
    98 //gsoap ns1 service method-action: listFiles "HtiFtp"
       
    99 int ns1__listFiles(
       
   100 	xsd__string_ targetDir,
       
   101 	struct ArrayOfStrings &dirs
       
   102 );
       
   103 //gsoap ns1 service method-action: listFilesSizes "HtiFtp"
       
   104 int ns1__listFilesSizes(
       
   105 	xsd__string_ targetDir,
       
   106 	struct ArrayOfHtiFileInfos &fileInfos
       
   107 );
       
   108 //gsoap ns1 service method-action: listDirs "HtiFtp"
       
   109 int ns1__listDirs(
       
   110 	xsd__string_ targetDir,
       
   111 	struct ArrayOfStrings &files
       
   112 );
       
   113 //gsoap ns1 service method-action: createDir "HtiFtp"
       
   114 int ns1__createDir(
       
   115 	xsd__string_ targetDir,
       
   116 	struct ns1__createDirResponse{} *out
       
   117 );
       
   118 //gsoap ns1 service method-action: deleteDir "HtiFtp"
       
   119 int ns1__deleteDir(
       
   120 	xsd__string_ targetDir,
       
   121 	struct ns1__deleteDirResponse{} *out
       
   122 );
       
   123 //gsoap ns1 service method-action: deleteFile "HtiFtp"
       
   124 int ns1__deleteFile(
       
   125 	xsd__string_ targetFile,
       
   126 	struct ns1__deleteFileResponse{} *out
       
   127 );
       
   128 //gsoap ns1 service method-action: setForcedOperations "HtiFtp"
       
   129 int ns1__setForcedOperations(
       
   130 	xsd__boolean state,
       
   131 	struct ns1__setForcedOperationsResponse{} *out
       
   132 );
       
   133 //gsoap ns1 service method-action: fileChecksum "HtiFtp"
       
   134 int ns1__fileChecksum(
       
   135 	xsd__unsignedByte algorithmId,
       
   136 	xsd__string_ targetFile,
       
   137 	struct ArrayOfBytes &checksumByteArray
       
   138 );
       
   139 //gsoap ns1 service method-action: format "HtiFtp"
       
   140 int ns1__format(
       
   141 	xsd__unsignedByte drive,
       
   142 	xsd__unsignedByte formatMode,
       
   143   	struct ns1__formatResponse{} *out
       
   144 );
       
   145 //gsoap ns1 service method-action: listDrives "HtiFtp"
       
   146 int ns1__listDrives(
       
   147 	void*_ ,
       
   148 	struct ArrayOfHtiDriveInfos &driveInfos
       
   149 );