|
1 /* |
|
2 * Copyright (c) 2002 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: MWPBuilder can be used by the parser to pass data to the engine. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MWPBUILDER_H |
|
20 #define MWPBUILDER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 |
|
25 // CLASS DECLARATION |
|
26 |
|
27 /** |
|
28 * MWPBuilder can be used by the parser to pass data to the engine. |
|
29 * |
|
30 * @lib ProvisioningEngine |
|
31 * @since 2.0 |
|
32 */ |
|
33 class MWPBuilder |
|
34 { |
|
35 public: |
|
36 /** |
|
37 * Starts a new characteristic and sets it as current. |
|
38 * @param aType The characteristic type |
|
39 */ |
|
40 virtual void StartCharacteristicL( TInt aType ) = 0; |
|
41 |
|
42 /** |
|
43 * Starts a new characteristic and sets it as current. |
|
44 * @param aName The name of the characteristic |
|
45 */ |
|
46 virtual void StartCharacteristicL( const TDesC& aName ) = 0; |
|
47 |
|
48 /** |
|
49 * Ends the current characteristic. |
|
50 */ |
|
51 virtual void EndCharacteristicL() = 0; |
|
52 |
|
53 /** |
|
54 * Inserts a parameter in the current characteristic. |
|
55 * @param aID The ID of the parameter |
|
56 * @param aValue The value of the parameter |
|
57 */ |
|
58 virtual void ParameterL( TInt aID, const TDesC& aValue ) = 0; |
|
59 |
|
60 /** |
|
61 * Inserts a parameter in the current characteristic. |
|
62 * @param aName The name of the parameter |
|
63 * @param aValue The value of the parameter |
|
64 */ |
|
65 virtual void ParameterL( const TDesC& aName, const TDesC& aValue ) = 0; |
|
66 }; |
|
67 |
|
68 #endif /* MWPBUILDER_H*/ |