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: HtiPIM |
|
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 |
|
29 struct ns1__HtiSoapAttachment |
|
30 { |
|
31 xsd__string href; |
|
32 xsd__string mimeType; |
|
33 }; |
|
34 |
|
35 enum SIMContactFieldType |
|
36 { |
|
37 FieldTypeName = 1, |
|
38 FieldTypeSecondName, |
|
39 FieldTypeNumber, |
|
40 FieldTypeEmail, |
|
41 FieldTypeAdditionalNumber |
|
42 }; |
|
43 |
|
44 struct ns1__HtiSIMContactField |
|
45 { |
|
46 enum SIMContactFieldType fieldType; |
|
47 xsd__string fieldData; |
|
48 }; |
|
49 |
|
50 struct ArrayOfHtiSIMContactFields |
|
51 { |
|
52 struct ns1__HtiSIMContactField* __ptrHtiSIMContactField; |
|
53 int __size; |
|
54 }; |
|
55 |
|
56 struct ns1__HtiSIMCardCaps |
|
57 { |
|
58 xsd__unsignedByte maxNumOfSecondNames; |
|
59 xsd__unsignedByte maxNumOfAdditionalNums; |
|
60 xsd__unsignedByte maxNumOfEmails; |
|
61 xsd__unsignedByte maxLengthOfName; |
|
62 xsd__unsignedByte maxLengthOfNumber; |
|
63 xsd__unsignedByte maxLengthOfSecondName; |
|
64 xsd__unsignedByte maxLengthOfAdditionalNum; |
|
65 xsd__unsignedByte maxLenghtOfEmail; |
|
66 xsd__unsignedShort totalSlots; |
|
67 xsd__unsignedShort usedSlots; |
|
68 }; |
|
69 |
|
70 |
|
71 // String versions |
|
72 //gsoap ns1 service method-action: import_vCard "HtiPIM" |
|
73 int ns1__import_vCard( |
|
74 xsd__string vCard, |
|
75 xsd__int &entryId |
|
76 ); |
|
77 //gsoap ns1 service method-action: import_vCalendar "HtiPIM" |
|
78 int ns1__import_vCalendar( |
|
79 xsd__string vCal, |
|
80 xsd__int &entryId |
|
81 ); |
|
82 // DIME versions |
|
83 //gsoap ns1 service method-action: import_vCardDime "HtiPIM" |
|
84 int ns1__import_vCardDime( |
|
85 struct ns1__HtiSoapAttachment *vCardDimeAttachment, |
|
86 xsd__int &entryId |
|
87 ); |
|
88 //gsoap ns1 service method-action: import_vCalendarDime "HtiPIM" |
|
89 int ns1__import_vCalendarDime( |
|
90 struct ns1__HtiSoapAttachment *vCalendarDimeAttachment, |
|
91 xsd__int &entryId |
|
92 ); |
|
93 |
|
94 //gsoap ns1 service method-action: deleteContactEntry "HtiPIM" |
|
95 int ns1__deleteContactEntry( |
|
96 xsd__int entryId, |
|
97 struct ns1__deleteContactEntryResponse{} *out // empty response |
|
98 ); |
|
99 //gsoap ns1 service method-action: deleteAllContactEntries "HtiPIM" |
|
100 int ns1__deleteAllContactEntries( |
|
101 void *_, // no 'in' parameter |
|
102 struct ns1__deleteAllContactEntriesResponse{} *out // empty response |
|
103 ); |
|
104 //gsoap ns1 service method-action: deleteCalendarEntry "HtiPIM" |
|
105 int ns1__deleteCalendarEntry( |
|
106 xsd__int entryId, |
|
107 struct ns1__deleteCalendarEntryResponse{} *out // empty response |
|
108 ); |
|
109 //gsoap ns1 service method-action: deleteAllCalendarEntries "HtiPIM" |
|
110 int ns1__deleteAllCalendarEntries( |
|
111 void *_, // no 'in' parameter |
|
112 struct ns1__deleteAllCalendarEntriesResponse{} *out // empty response |
|
113 ); |
|
114 struct ns1__getSIMCardCapsResponse { struct ns1__HtiSIMCardCaps _returnHtiSIMCardCaps; }; |
|
115 //gsoap ns1 service method-action: getSIMCardCaps "HtiPIM" |
|
116 int ns1__getSIMCardCaps( |
|
117 void *_, // no 'in' parameter |
|
118 struct ns1__getSIMCardCapsResponse &r |
|
119 ); |
|
120 //gsoap ns1 service method-action: importSIMContact "HtiPIM" |
|
121 int ns1__importSIMContact( |
|
122 struct ArrayOfHtiSIMContactFields SIMContact, |
|
123 xsd__int &entryId |
|
124 ); |
|
125 //gsoap ns1 service method-action: deleteSIMContact "HtiPIM" |
|
126 int ns1__deleteSIMContact( |
|
127 xsd__int entryId, |
|
128 struct ns1__deleteSIMContactResponse{} *out // empty response |
|
129 ); |
|
130 //gsoap ns1 service method-action: deleteAllSIMContacts "HtiPIM" |
|
131 int ns1__deleteAllSIMContacts( |
|
132 void *_, // no 'in' parameter |
|
133 struct ns1__deleteAllSIMContactsResponse{} *out // empty response |
|
134 ); |
|
135 //gsoap ns1 service method-action: notepadAddMemo "HtiPIM" |
|
136 int ns1__notepadAddMemo( |
|
137 xsd__string text, |
|
138 struct ns1__notepadAddMemoResponse{} *out // empty response |
|
139 ); |
|
140 //gsoap ns1 service method-action: notepadAddMemoFromFile "HtiPIM" |
|
141 int ns1__notepadAddMemoFromFile( |
|
142 xsd__string filePath, |
|
143 struct ns1__notepadAddMemoFromFileResponse{} *out // empty response |
|
144 ); |
|
145 //gsoap ns1 service method-action: notepadDeleteAll "HtiPIM" |
|
146 int ns1__notepadDeleteAll( |
|
147 void *_, // no 'in' parameter |
|
148 struct ns1__notepadDeleteAllResponse{} *out // empty response |
|
149 ); |
|
150 //gsoap ns1 service method-action: createBookmark "HtiPIM" |
|
151 int ns1__createBookmark( |
|
152 xsd__string folderName, |
|
153 xsd__string bookmarkName, |
|
154 xsd__string url, |
|
155 xsd__string accessPointName, |
|
156 xsd__string userName, |
|
157 xsd__string password, |
|
158 xsd__int &createdItemCount |
|
159 ); |
|
160 //gsoap ns1 service method-action: deleteBookmark "HtiPIM" |
|
161 int ns1__deleteBookmark( |
|
162 xsd__string folderName, |
|
163 xsd__string bookmarkName, |
|
164 xsd__int &deletedItemCount |
|
165 ); |
|