|
1 /* |
|
2 * Copyright (c) 2008-2010 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: CSisxSifPluginErrorHandler collects information |
|
15 * about errors. Error details are then passed to |
|
16 * framework (USIF). |
|
17 * |
|
18 */ |
|
19 |
|
20 #ifndef C_SISXSIFPLUGINERRORHANDLER_H |
|
21 #define C_SISXSIFPLUGINERRORHANDLER_H |
|
22 |
|
23 #include <e32base.h> // CBase |
|
24 #include <usif/usiferror.h> // TErrorCategory |
|
25 |
|
26 namespace Usif |
|
27 { |
|
28 class COpaqueNamedParams; |
|
29 |
|
30 |
|
31 /** |
|
32 * Native SISX installation error class. |
|
33 */ |
|
34 class CSisxSifPluginErrorHandler : public CBase |
|
35 { |
|
36 public: // constructor and destructor |
|
37 static CSisxSifPluginErrorHandler* NewL(); |
|
38 ~CSisxSifPluginErrorHandler(); |
|
39 |
|
40 public: // new functions |
|
41 TErrorCategory ErrorCategory() const; |
|
42 void FillOutputParamsL( COpaqueNamedParams& aOutputParams ) const; |
|
43 |
|
44 TInt ErrorCode() const; |
|
45 void SetErrorCode( TInt aErrorCode ); |
|
46 TInt ExtendedErrorCode() const; |
|
47 void SetExtendedErrorCode( TInt aExtendedErrorCode ); |
|
48 const TDesC& ErrorMessage() const; |
|
49 void SetErrorMessage( const TDesC& aErrorMessage ); |
|
50 const TDesC& ErrorMessageDetails() const; |
|
51 void SetErrorMessageDetails( const TDesC& aErrorMessageDetails ); |
|
52 |
|
53 private: // new functions |
|
54 CSisxSifPluginErrorHandler(); |
|
55 void ConstructL(); |
|
56 |
|
57 private: // data |
|
58 TInt iErrorCode; |
|
59 TInt iExtendedErrorCode; |
|
60 HBufC* iErrorMessage; |
|
61 HBufC* iErrorMessageDetails; |
|
62 }; |
|
63 |
|
64 } // namespace Usif |
|
65 |
|
66 #endif // C_SISXSIFPLUGINERRORHANDLER_H |