|
1 /* |
|
2 * Copyright (c) 2002-2005 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: Represents one detailed error result |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CCAPRESENCEERROR_H |
|
21 #define CCAPRESENCEERROR_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include "MCAPresenceError.h" |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * Represents one detailed error result |
|
31 * |
|
32 * @lib CAPresence.lib |
|
33 * @since 2.1 |
|
34 */ |
|
35 class CCAPresenceError : public CBase, public MCAPresenceError |
|
36 { |
|
37 public: // Constructors and destructor |
|
38 |
|
39 /** |
|
40 * Two-phased constructor. |
|
41 */ |
|
42 static CCAPresenceError* NewL( TInt aErrorCode, const TDesC& aUserId ); |
|
43 |
|
44 /** |
|
45 * Two-phased constructor. |
|
46 */ |
|
47 static CCAPresenceError* NewLC( TInt aErrorCode, const TDesC& aUserId ); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 */ |
|
52 virtual ~CCAPresenceError(); |
|
53 |
|
54 public: // From MCAPresenceError |
|
55 |
|
56 /** |
|
57 * Returns error code |
|
58 * @since 2.1 |
|
59 * @return TInt that contains error code |
|
60 */ |
|
61 TInt ErrorCode() const; |
|
62 |
|
63 /** |
|
64 * Returns user id |
|
65 * @since 2.1 |
|
66 * @return Descriptor that contains user id |
|
67 */ |
|
68 const TDesC& UserId() const; |
|
69 |
|
70 private: |
|
71 |
|
72 /** |
|
73 * C++ default constructor. |
|
74 */ |
|
75 CCAPresenceError( TInt aErrorCode ); |
|
76 |
|
77 /** |
|
78 * By default Symbian 2nd phase constructor is private. |
|
79 */ |
|
80 void ConstructL( const TDesC& aUserId ); |
|
81 |
|
82 private: // Data |
|
83 // error code |
|
84 TInt iErrorCode; |
|
85 // user id |
|
86 HBufC* iUserId; |
|
87 }; |
|
88 |
|
89 #endif // CCAPRESENCEERROR_H |
|
90 |
|
91 // End of File |