|
1 /* |
|
2 * Copyright (c) 2000 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: The interface |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __AMINSTALLOPTIONSAPI_H__ |
|
20 #define __AMINSTALLOPTIONSAPI_H__ |
|
21 |
|
22 #include <SWInstDefs.h> |
|
23 namespace NApplicationManagement |
|
24 { |
|
25 const int KMaxConRef = 256; |
|
26 struct TAMInstallOptions |
|
27 { |
|
28 TBuf8<KMaxConRef> iConRef; |
|
29 TInt iIAP; |
|
30 SwiUI::TInstallOptions iOptions; |
|
31 TAMInstallOptions() : iConRef( KNullDesC8()), |
|
32 iIAP(-1), iOptions() |
|
33 { |
|
34 } |
|
35 }; |
|
36 |
|
37 typedef TPckgBuf<TAMInstallOptions> TAMInstallOptionsPckgBuf; |
|
38 typedef TPckg<TAMInstallOptions> TAMInstallOptionsPckg; |
|
39 |
|
40 } |
|
41 |
|
42 |
|
43 class InstallOptionsParser |
|
44 { |
|
45 public: |
|
46 IMPORT_C static void ParseOptionsL( const TDesC8 &aBuffer, SwiUI::TInstallOptions &aResult); |
|
47 IMPORT_C static void SerializeOptionsL( const SwiUI::TInstallOptions &aOptions, CBufBase &aResult ); |
|
48 IMPORT_C static void ParseOptionsL( const TDesC8 &aBuffer, SwiUI::TUninstallOptions &aResult); |
|
49 IMPORT_C static void SerializeOptionsL( const SwiUI::TUninstallOptions &aOptions, CBufBase &aResult ); |
|
50 |
|
51 IMPORT_C static void ParseOptionsL( const TDesC8 &aBuffer, NApplicationManagement::TAMInstallOptions &aResult); |
|
52 IMPORT_C static void SerializeOptionsL( const NApplicationManagement::TAMInstallOptions &aOptions, CBufBase &aResult ); |
|
53 }; |
|
54 |
|
55 |
|
56 #endif |
|
57 |
|
58 // End of File |