|
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: MNcdServerDetails declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef M_NCDSERVERDETAILS_H |
|
20 #define M_NCDSERVERDETAILS_H |
|
21 |
|
22 class MCatalogsContext; |
|
23 class MNcdConfigurationProtocolCookie; |
|
24 |
|
25 /** |
|
26 * Interface for server details manipulation |
|
27 */ |
|
28 class MNcdServerDetails |
|
29 { |
|
30 public: |
|
31 /** |
|
32 * Adds a new capability to details. |
|
33 * |
|
34 * @param aCapability Capability |
|
35 * @note Does not check for duplicates |
|
36 */ |
|
37 virtual void AddCapabilityL( const TDesC& aCapability ) = 0; |
|
38 |
|
39 |
|
40 /** |
|
41 * Clears server's capabilities |
|
42 */ |
|
43 virtual void ClearCapabilitiesL() = 0; |
|
44 |
|
45 /** |
|
46 */ |
|
47 virtual TBool IsCapabilitySupported( const TDesC& aCapability ) const = 0; |
|
48 |
|
49 |
|
50 /** |
|
51 * Server URI getter |
|
52 */ |
|
53 virtual const TDesC& ServerUri() const = 0; |
|
54 |
|
55 |
|
56 /** |
|
57 * Namespace getter |
|
58 */ |
|
59 virtual const TDesC& Namespace() const = 0; |
|
60 |
|
61 |
|
62 /** |
|
63 * Cookie adder |
|
64 */ |
|
65 virtual void AddCookieL( |
|
66 const MNcdConfigurationProtocolCookie& aCookie, |
|
67 const TDesC8& aSim ) = 0; |
|
68 |
|
69 |
|
70 /** |
|
71 * Cookie getter |
|
72 * |
|
73 * @param aSim SIM identification |
|
74 * @return Array of cookies. Ownership of the cookies is not transferred |
|
75 */ |
|
76 virtual RPointerArray<const MNcdConfigurationProtocolCookie> |
|
77 CookiesL( const TDesC8& aSim ) const = 0; |
|
78 |
|
79 |
|
80 /** |
|
81 * Removes expired cookies |
|
82 * |
|
83 * @return Number of removed cookies |
|
84 */ |
|
85 virtual TInt RemoveExpiredCookies() = 0; |
|
86 protected: |
|
87 |
|
88 virtual ~MNcdServerDetails() |
|
89 { |
|
90 } |
|
91 |
|
92 }; |
|
93 |
|
94 |
|
95 #endif // M_NCDSERVERDETAILS_H |