|
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: Container for detailed errors |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MCAPRESENCEERRORS_H |
|
21 #define MCAPRESENCEERRORS_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class MCAPresenceError; |
|
28 class CCAPresenceError; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Container class for presence errors |
|
34 * |
|
35 * @lib CAPresence.lib |
|
36 * @since 2.1 |
|
37 */ |
|
38 class MCAPresenceErrors |
|
39 { |
|
40 public: // New functions |
|
41 |
|
42 /** |
|
43 * Sets error |
|
44 * @since 2.1 |
|
45 * @param aError Error id |
|
46 */ |
|
47 virtual void SetError( TInt aError ) = 0; |
|
48 |
|
49 /** |
|
50 * Returns error code |
|
51 * @since 2.1 |
|
52 * @return Integer that contains error id |
|
53 */ |
|
54 virtual TInt Error() const = 0; |
|
55 |
|
56 /** |
|
57 * Adds detailed presence error to error container |
|
58 * @since 2.1 |
|
59 * @param aError Presence error |
|
60 */ |
|
61 virtual void AddDetailedErrorL( CCAPresenceError* aError ) = 0; |
|
62 |
|
63 /** |
|
64 * Removes presence error from container |
|
65 * @since 2.1 |
|
66 * @param aError |
|
67 */ |
|
68 virtual void RemoveDetailedError( CCAPresenceError* aError ) = 0; |
|
69 |
|
70 /** |
|
71 * Resets container |
|
72 * @since 2.1 |
|
73 */ |
|
74 virtual void Reset() = 0; |
|
75 |
|
76 /** |
|
77 * Returns array of errors |
|
78 * @since 2.1 |
|
79 * @return Array of presence errors |
|
80 */ |
|
81 virtual const RPointerArray<MCAPresenceError>& DetailedErrors() const = 0; |
|
82 }; |
|
83 |
|
84 #endif // MCAPRESENCEERRORS_H |
|
85 |
|
86 // End of File |