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> |
|
30 #include "filedump.h" |
29 #include "filedump.h" |
31 #include "ceddumpglobals.h" |
30 #include "ceddumpglobals.h" |
32 |
31 |
33 #ifdef SYMBIAN_NETWORKING_3GPPDEFAULTQOS |
32 #ifdef SYMBIAN_NETWORKING_3GPPDEFAULTQOS |
34 #include "R99QoSConversion.h" |
33 #include "R99QoSConversion.h" |
49 //_LIT(APPLICATIONNAME,"CommsData Database Dump Utility"); |
48 //_LIT(APPLICATIONNAME,"CommsData Database Dump Utility"); |
50 //_LIT(APPLICATIONVERSION,"1.0"); |
49 //_LIT(APPLICATIONVERSION,"1.0"); |
51 #define TRUE_VAL _S("TRUE") |
50 #define TRUE_VAL _S("TRUE") |
52 #define FALSE_VAL _S("FALSE") |
51 #define FALSE_VAL _S("FALSE") |
53 |
52 |
54 typedef RArray<SGenericRecordTypeInfo> RRecordInfoArray; |
|
55 typedef TBuf<KCDMaxFieldNameLength> TGenericTableName; |
|
56 |
53 |
57 class CCedDumper : public CBase |
54 class CCedDumper : public CBase |
58 { |
55 { |
59 public: |
56 public: |
60 static CCedDumper* NewL(); |
57 static CCedDumper* NewL(); |
94 //the CommDB variant. :((((( |
91 //the CommDB variant. :((((( |
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, |
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, |
96 //this function doesn't need to be modified. |
93 //this function doesn't need to be modified. |
97 void ResolveCommsDatTableNameVariant_to_CommdbTableNameVariant(RBuf& aCommsdatTableName); |
94 void ResolveCommsDatTableNameVariant_to_CommdbTableNameVariant(RBuf& aCommsdatTableName); |
98 |
95 |
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 |
|
105 private: |
96 private: |
106 CMDBSession* iDbSession; // Session to connect to CenRep |
97 CMDBSession* iDbSession; // Session to connect to CenRep |
107 CMDBRecordSetBase *iTable; //To get the Record type |
98 CMDBRecordSetBase *iTable; //To get the Record type |
108 CMDBRecordBase* iRecordBase; |
99 CMDBRecordBase* iRecordBase; |
109 CMDBRecordBase* iTemplateRecordBase; |
100 CMDBRecordBase* iTemplateRecordBase; |
124 CR99QoSConversion *iR99ConversionRecordsCurrent; // conversion output table which is being build |
115 CR99QoSConversion *iR99ConversionRecordsCurrent; // conversion output table which is being build |
125 #endif |
116 #endif |
126 // SYMBIAN_NETWORKING_3GPPDEFAULTQOS |
117 // SYMBIAN_NETWORKING_3GPPDEFAULTQOS |
127 TBool iUseHexFormat; |
118 TBool iUseHexFormat; |
128 TBool iROHIDSupport; |
119 TBool iROHIDSupport; |
129 CRepository* iRepository; |
|
130 |
|
131 RArray<TUint32> iGenericTableIds; |
|
132 RArray<TGenericTableName> iGenericTableNames; |
|
133 RArray<RRecordInfoArray> iGenericTableFields; |
|
134 }; |
120 }; |
135 |
121 |
136 #endif |
122 #endif |