64 #include <aknnoteattributes.h> |
64 #include <aknnoteattributes.h> |
65 #include <eikdialg.h> |
65 #include <eikdialg.h> |
66 #include <eikmenup.h> |
66 #include <eikmenup.h> |
67 |
67 |
68 #include <bctestdomnotifier.rsg> |
68 #include <bctestdomnotifier.rsg> |
69 #include "PslnModel.h" |
|
70 #include "bctestdomnotifiercase.h" |
69 #include "bctestdomnotifiercase.h" |
71 #include "bctestdomnotifiercontainer.h" |
70 #include "bctestdomnotifiercontainer.h" |
72 #include "bctestdomnotifier.hrh" |
71 #include "bctestdomnotifier.hrh" |
73 #include "bctestdomnotifierview.h" |
72 #include "bctestdomnotifierview.h" |
74 #include "bctestdomnotifierapp.h" |
73 #include "bctestdomnotifierapp.h" |
|
74 |
|
75 _LIT( KCAknNotifierAppServerAppUi, "App server error" ); |
75 |
76 |
76 // ======== MEMBER FUNCTIONS ======== |
77 // ======== MEMBER FUNCTIONS ======== |
77 // --------------------------------------------------------------------------- |
78 // --------------------------------------------------------------------------- |
78 // Symbian 2nd static Constructor |
79 // Symbian 2nd static Constructor |
79 // --------------------------------------------------------------------------- |
80 // --------------------------------------------------------------------------- |
207 RFile rfile; |
208 RFile rfile; |
208 _LIT( KFilePath, "c:\\BCTestLog\\test.txt" ); |
209 _LIT( KFilePath, "c:\\BCTestLog\\test.txt" ); |
209 rfile.Create( fs, KFilePath, EFileWrite | EFileShareAny ); |
210 rfile.Create( fs, KFilePath, EFileWrite | EFileShareAny ); |
210 CleanupClosePushL( rfile ); |
211 CleanupClosePushL( rfile ); |
211 |
212 |
212 CAiwGenericParamList* aiwparalist = CAiwGenericParamList::NewL(); |
213 |
213 CPslnModel* psmodel= CPslnModel::NewL(); |
|
214 MAknServerAppExitObserver* serappexit = |
|
215 static_cast<MAknServerAppExitObserver*> ( psmodel ); |
|
216 |
|
217 CAknOpenFileService* fileserv = NULL; |
|
218 TRAPD( err, fileserv = CAknOpenFileService::NewL( |
|
219 KFilePath, serappexit, aiwparalist ) ); |
|
220 _LIT( KCAknOpenFileServiceNewL, "CAknOpenFileService::NewL()" ); |
|
221 AssertTrueL( ETrue, KCAknOpenFileServiceNewL ); |
|
222 delete fileserv; |
|
223 fileserv = NULL; |
|
224 |
|
225 TUid KUid = { 0xA0004001 }; |
|
226 TInt err1; |
|
227 TRAP( err1, fileserv = CAknOpenFileService::NewL( |
|
228 KUid, rfile, serappexit, aiwparalist ) ); |
|
229 _LIT( KCAknOpenFileServiceNewLOver, "CAknOpenFileService::NewL()" ); |
|
230 AssertTrueL( ETrue, KCAknOpenFileServiceNewLOver ); |
|
231 |
|
232 CleanupStack::PopAndDestroy(); // rfile |
|
233 delete fileserv; |
|
234 delete psmodel; |
|
235 delete aiwparalist; |
|
236 _LIT( KCAknNotifierAppServerAppUi,"CAknNotifierAppServerAppUi" ); |
|
237 // AknNotiferAppServerApplication.h |
214 // AknNotiferAppServerApplication.h |
238 |
215 |
239 CBCNotifierAppServer *notifierapp = new ( ELeave ) |
216 CBCNotifierAppServer *notifierapp = new ( ELeave ) |
240 CBCNotifierAppServer(); |
217 CBCNotifierAppServer(); |
241 CleanupStack::PushL( notifierapp ); |
218 CleanupStack::PushL( notifierapp ); |
301 _LIT( KStartNotifierAndGetResponseL, "StartNotifierAndGetResponseL"); |
278 _LIT( KStartNotifierAndGetResponseL, "StartNotifierAndGetResponseL"); |
302 _LIT( KAppendNotifierLibNameL, "AppendNotifierLibNameL"); |
279 _LIT( KAppendNotifierLibNameL, "AppendNotifierLibNameL"); |
303 _LIT( KSetImplementationFinderL, "SetImplementationFinderL"); |
280 _LIT( KSetImplementationFinderL, "SetImplementationFinderL"); |
304 _LIT( KUnbalanceReferenceCountForNotif, "UnbalanceReferenceCountForNotif"); |
281 _LIT( KUnbalanceReferenceCountForNotif, "UnbalanceReferenceCountForNotif"); |
305 _LIT( KCreateServiceL, "CreateServiceL"); |
282 _LIT( KCreateServiceL, "CreateServiceL"); |
306 _LIT( KLoadNotifiersL, "LoadNotifiersL"); |
|
307 _LIT( KCAknNotifierAppServerDestroy, "SCAknNotifierAppServerDestroy" ); |
283 _LIT( KCAknNotifierAppServerDestroy, "SCAknNotifierAppServerDestroy" ); |
308 _LIT( KUpdateNotifierAndGetResponseL, "UpdateNotifierAndGetResponseL" ); |
284 _LIT( KUpdateNotifierAndGetResponseL, "UpdateNotifierAndGetResponseL" ); |
309 //////////////////////////////////////////////////////////////////////////////////////////////// |
285 //////////////////////////////////////////////////////////////////////////////////////////////// |
310 CAknNotifierAppServer *notiserver = new ( ELeave ) CAknNotifierAppServer(); |
286 CAknNotifierAppServer *notiserver = new ( ELeave ) CAknNotifierAppServer(); |
311 CleanupStack::PushL( notiserver ); |
287 CleanupStack::PushL( notiserver ); |
318 |
294 |
319 //TRAP( err, notiserver->LoadNotifiersL() ); |
295 //TRAP( err, notiserver->LoadNotifiersL() ); |
320 //AssertTrueL( ETrue,KLoadNotifiersL ); |
296 //AssertTrueL( ETrue,KLoadNotifiersL ); |
321 |
297 |
322 TBuf8<32> bf; |
298 TBuf8<32> bf; |
|
299 TInt err; |
323 TRAP( err,notiserver->StartNotifierL( |
300 TRAP( err,notiserver->StartNotifierL( |
324 KUidBCDomainTestNotifier, bf, bf ) ); |
301 KUidBCDomainTestNotifier, bf, bf ) ); |
325 AssertTrueL( ETrue,KStartNotifierL ); |
302 AssertTrueL( ETrue,KStartNotifierL ); |
326 |
303 |
327 TRAP( err, notiserver->UpdateNotifierL( |
304 TRAP( err, notiserver->UpdateNotifierL( |
718 |
695 |
719 // aknlistloadertfx.h |
696 // aknlistloadertfx.h |
720 _LIT( KTfxApiInternal, "TfxApiInternal" ); |
697 _LIT( KTfxApiInternal, "TfxApiInternal" ); |
721 _LIT( KTfxApi, "TfxApi" ); |
698 _LIT( KTfxApi, "TfxApi" ); |
722 _LIT( KRemoveTfxGc, "RemoveTfxGc" ); |
699 _LIT( KRemoveTfxGc, "RemoveTfxGc" ); |
723 _LIT( KCreateTfxGc, "CreateTfxGc" ); |
|
724 _LIT( KInvalidateAll, "InvalidateAll" ); |
700 _LIT( KInvalidateAll, "InvalidateAll" ); |
725 |
701 |
726 CAknListLoader::TfxApiInternal( &gc ); |
702 CAknListLoader::TfxApiInternal( &gc ); |
727 AssertTrueL( ETrue, KTfxApiInternal ); |
703 AssertTrueL( ETrue, KTfxApiInternal ); |
728 CAknListLoader::TfxApi( &gc ); |
704 CAknListLoader::TfxApi( &gc ); |
893 AssertTrueL( ETrue, KCharsThatFitOnRight ); |
869 AssertTrueL( ETrue, KCharsThatFitOnRight ); |
894 CleanupStack::PopAndDestroy( ary ); |
870 CleanupStack::PopAndDestroy( ary ); |
895 //delete ary; |
871 //delete ary; |
896 |
872 |
897 // AknPhoneNumberEditor.h |
873 // AknPhoneNumberEditor.h |
898 _LIT( KCAknPhoneNumberEditor, "CAknPhoneNumberEditor" ); |
|
899 _LIT( KConstructFromResourceL, "ConstructFromResourceL" ); |
874 _LIT( KConstructFromResourceL, "ConstructFromResourceL" ); |
900 _LIT( KFormat, "Format" ); |
875 _LIT( KFormat, "Format" ); |
901 _LIT( KWouldTextFitInFormat, "WouldTextFitInFormat" ); |
876 _LIT( KWouldTextFitInFormat, "WouldTextFitInFormat" ); |
902 _LIT( KCurrentFormatIndex, "CurrentFormatIndex" ); |
877 _LIT( KCurrentFormatIndex, "CurrentFormatIndex" ); |
903 _LIT( KSetFormat, "SetFormat" ); |
878 _LIT( KSetFormat, "SetFormat" ); |