|
1 /* |
|
2 * Copyright (c) 2006 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: MNcdConfigurationProtocolClientConfiguration declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef M_NCDCONFIGURATIONPROTOCOLCLIENTCONFIGURATION_H |
|
20 #define M_NCDCONFIGURATIONPROTOCOLCLIENTCONFIGURATION_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 class MNcdConfigurationProtocolCookie; |
|
25 class MNcdConfigurationProtocolDetail; |
|
26 |
|
27 class MNcdConfigurationProtocolClientConfiguration |
|
28 { |
|
29 public: |
|
30 |
|
31 /** |
|
32 * Destructor |
|
33 */ |
|
34 virtual ~MNcdConfigurationProtocolClientConfiguration() {} |
|
35 |
|
36 /** |
|
37 * Returns when configuration expires. |
|
38 * @return Expiration delta |
|
39 */ |
|
40 virtual TInt ExpirationDelta() const = 0; |
|
41 |
|
42 /** |
|
43 * Returns the amount of cookies in configuration |
|
44 * @return Cookie count |
|
45 */ |
|
46 virtual TInt CookieCount() const = 0; |
|
47 |
|
48 /** |
|
49 * Get a cookie element. |
|
50 * @param aIndex Cookie index. Leaves if index is out of bounds. |
|
51 * @return Cookie reference. |
|
52 */ |
|
53 virtual MNcdConfigurationProtocolCookie& CookieL( TInt aIndex ) const = 0; |
|
54 |
|
55 /** |
|
56 * Returns the amount of details in configuration |
|
57 * @return Cookie count |
|
58 */ |
|
59 virtual TInt DetailCount() const = 0; |
|
60 |
|
61 /** |
|
62 * Get a details element. |
|
63 * @param aIndex Details index. Leaves if index is out of bounds. |
|
64 * @return Details reference. |
|
65 */ |
|
66 virtual const MNcdConfigurationProtocolDetail& DetailL( TInt aIndex ) const = 0; |
|
67 }; |
|
68 |
|
69 #endif |