equal
deleted
inserted
replaced
67 return self; |
67 return self; |
68 } |
68 } |
69 |
69 |
70 CCreatorLogs::CCreatorLogs() : CActive(0) |
70 CCreatorLogs::CCreatorLogs() : CActive(0) |
71 { |
71 { |
|
72 iEntriesToBeCreated = 1; |
72 } |
73 } |
73 |
74 |
74 void CCreatorLogs::ConstructL(CCreatorEngine* aEngine) |
75 void CCreatorLogs::ConstructL(CCreatorEngine* aEngine) |
75 { |
76 { |
76 LOGSTRING("Creator: CCreatorLogs::ConstructL"); |
77 LOGSTRING("Creator: CCreatorLogs::ConstructL"); |
113 { |
114 { |
114 iEngine->ShutDownEnginesL(); |
115 iEngine->ShutDownEnginesL(); |
115 return; |
116 return; |
116 } |
117 } |
117 |
118 |
|
119 const TDesC* showText = &KSavingText; |
118 TBool finished(EFalse); |
120 TBool finished(EFalse); |
119 TBool retval(ETrue); |
121 TBool retval(ETrue); |
120 switch(aUserData) |
122 switch(aUserData) |
121 { |
123 { |
122 case ECreatorLogsDelete: |
124 case ECreatorLogsDelete: |
|
125 showText = &KDeletingText; |
123 iEntriesToBeCreated = 1; |
126 iEntriesToBeCreated = 1; |
124 finished = ETrue; |
127 finished = ETrue; |
125 break; |
128 break; |
126 case ECreatorLogsStart: |
129 case ECreatorLogsStart: |
127 finished = ETrue; |
130 finished = ETrue; |
138 else if( finished ) |
141 else if( finished ) |
139 { |
142 { |
140 // add this command to command array |
143 // add this command to command array |
141 iEngine->AppendToCommandArrayL(iCommand, NULL, iEntriesToBeCreated); |
144 iEngine->AppendToCommandArrayL(iCommand, NULL, iEntriesToBeCreated); |
142 // started exucuting commands |
145 // started exucuting commands |
143 iEngine->ExecuteFirstCommandL( KSavingText ); |
146 iEngine->ExecuteFirstCommandL( *showText ); |
144 } |
147 } |
145 } |
148 } |
146 |
149 |
147 //---------------------------------------------------------------------------- |
150 //---------------------------------------------------------------------------- |
148 |
151 |