|
1 /* |
|
2 * Copyright (c) 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: Error code conversion |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __NSMLDSERROR_H__ |
|
20 #define __NSMLDSERROR_H__ |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include "nsmlerror.h" |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * Class for error code conversion. |
|
30 * |
|
31 * @lib nsmldsagent.lib |
|
32 */ |
|
33 class TNSmlDSError : public TNSmlError |
|
34 { |
|
35 public: // enumerations |
|
36 // error coding |
|
37 enum TNSmlDSAgentErrorCode |
|
38 { |
|
39 ESmlDSUnsupportedSyncType = 2000, |
|
40 ESmlDSLocalDatabaseError = 2002, |
|
41 ESmlDSNoValidDatabases = 2003, |
|
42 ESmlDSDeviceInfoMissing = 2004, |
|
43 ESmlDSDeviceInfoInvalid = 2005, |
|
44 ESmlDSDatastoreSourceRefMissing = 2006, |
|
45 ESmlDSDatastoreSourceRefInvalid = 2007, |
|
46 ESmlDSDatastoreRxPrefCTTypeMissing = 2008, |
|
47 ESmlDSDatastoreRxCTTypeNotMatching = 2009, |
|
48 ESmlDSDatastoreTxPrefCTTypeMissing = 2010, |
|
49 ESmlDSDatastoreTxCTTypeNotMatching = 2011, |
|
50 ESmlDSLocalDatabaseChanged = 2012, |
|
51 ESmlDSServerIdNotMatching = 2013 |
|
52 }; |
|
53 |
|
54 public: // constructors and destructor |
|
55 /** |
|
56 * C++ constructor. |
|
57 */ |
|
58 TNSmlDSError(); |
|
59 |
|
60 public: // functions from base classes |
|
61 /** |
|
62 * From TNSmlError. Converts error code to a smaller subset of error codes. |
|
63 * @return Converted error code. |
|
64 */ |
|
65 TInt SyncLogMessageCode(); |
|
66 |
|
67 /** |
|
68 * From TNSmlError. Returns the error code. |
|
69 * @return Error code. |
|
70 */ |
|
71 TInt SyncLogErrorCode(); |
|
72 |
|
73 private: // functions from base classes |
|
74 /** |
|
75 * From TNSmlError. Converts some error codes to Symbian error codes. |
|
76 */ |
|
77 void ErrorCodeConversion(); |
|
78 }; |
|
79 |
|
80 #endif // __NSMLERROR_H__ |
|
81 |
|
82 // End of File |