equal
deleted
inserted
replaced
24 #ifndef CEDDUMPER_H |
24 #ifndef CEDDUMPER_H |
25 #define CEDDUMPER_H |
25 #define CEDDUMPER_H |
26 |
26 |
27 |
27 |
28 #include <e32base.h> |
28 #include <e32base.h> |
|
29 #include <centralrepository.h> |
29 #include "filedump.h" |
30 #include "filedump.h" |
30 #include "ceddumpglobals.h" |
31 #include "ceddumpglobals.h" |
31 |
32 |
32 #ifdef SYMBIAN_NETWORKING_3GPPDEFAULTQOS |
33 #ifdef SYMBIAN_NETWORKING_3GPPDEFAULTQOS |
33 #include "R99QoSConversion.h" |
34 #include "R99QoSConversion.h" |
48 //_LIT(APPLICATIONNAME,"CommsData Database Dump Utility"); |
49 //_LIT(APPLICATIONNAME,"CommsData Database Dump Utility"); |
49 //_LIT(APPLICATIONVERSION,"1.0"); |
50 //_LIT(APPLICATIONVERSION,"1.0"); |
50 #define TRUE_VAL _S("TRUE") |
51 #define TRUE_VAL _S("TRUE") |
51 #define FALSE_VAL _S("FALSE") |
52 #define FALSE_VAL _S("FALSE") |
52 |
53 |
|
54 typedef RArray<SGenericRecordTypeInfo> RRecordInfoArray; |
|
55 typedef TBuf<KCDMaxFieldNameLength> TGenericTableName; |
53 |
56 |
54 class CCedDumper : public CBase |
57 class CCedDumper : public CBase |
55 { |
58 { |
56 public: |
59 public: |
57 static CCedDumper* NewL(); |
60 static CCedDumper* NewL(); |
91 //the CommDB variant. :((((( |
94 //the CommDB variant. :((((( |
92 //Please note: As long as the naming for the new follows the rule, which is to have the same name in the CommsDat and CommDB components, |
95 //Please note: As long as the naming for the new follows the rule, which is to have the same name in the CommsDat and CommDB components, |
93 //this function doesn't need to be modified. |
96 //this function doesn't need to be modified. |
94 void ResolveCommsDatTableNameVariant_to_CommdbTableNameVariant(RBuf& aCommsdatTableName); |
97 void ResolveCommsDatTableNameVariant_to_CommdbTableNameVariant(RBuf& aCommsdatTableName); |
95 |
98 |
|
99 void ListGenericTablesL(); |
|
100 void DumpGenericTablesL(); |
|
101 void ConvertFieldTypeL(TInt aFieldType, TDes &aConvertedFieldType); |
|
102 void ConvertFieldAttributeL(TInt aFieldAttribute, TDes &aConvertedFieldAttribute); |
|
103 TBool WriteFieldValueL(CMDBGenericRecord* aRecord, const TDesC& aFieldName); |
|
104 |
96 private: |
105 private: |
97 CMDBSession* iDbSession; // Session to connect to CenRep |
106 CMDBSession* iDbSession; // Session to connect to CenRep |
98 CMDBRecordSetBase *iTable; //To get the Record type |
107 CMDBRecordSetBase *iTable; //To get the Record type |
99 CMDBRecordBase* iRecordBase; |
108 CMDBRecordBase* iRecordBase; |
100 CMDBRecordBase* iTemplateRecordBase; |
109 CMDBRecordBase* iTemplateRecordBase; |
115 CR99QoSConversion *iR99ConversionRecordsCurrent; // conversion output table which is being build |
124 CR99QoSConversion *iR99ConversionRecordsCurrent; // conversion output table which is being build |
116 #endif |
125 #endif |
117 // SYMBIAN_NETWORKING_3GPPDEFAULTQOS |
126 // SYMBIAN_NETWORKING_3GPPDEFAULTQOS |
118 TBool iUseHexFormat; |
127 TBool iUseHexFormat; |
119 TBool iROHIDSupport; |
128 TBool iROHIDSupport; |
|
129 CRepository* iRepository; |
|
130 |
|
131 RArray<TUint32> iGenericTableIds; |
|
132 RArray<TGenericTableName> iGenericTableNames; |
|
133 RArray<RRecordInfoArray> iGenericTableFields; |
120 }; |
134 }; |
121 |
135 |
122 #endif |
136 #endif |