|
1 /* |
|
2 * Copyright (c) 2008 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: Info note shown for invalid and revoked certificates |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include "CTInvalidCertNote.h" |
|
21 #include "CTCertificateQuery.h" // CCTCertificateQuery |
|
22 #include <uikon/eiksrvui.h> // CEikServAppUi |
|
23 #include <CTSecDlgs.rsg> |
|
24 |
|
25 |
|
26 // ======== MEMBER FUNCTIONS ======== |
|
27 |
|
28 |
|
29 // --------------------------------------------------------------------------- |
|
30 // Constructor |
|
31 // --------------------------------------------------------------------------- |
|
32 // |
|
33 CCTInvalidCertificateNote::CCTInvalidCertificateNote( |
|
34 CCTSecurityDialogsAO& aNotifier, |
|
35 TRequestStatus& aClientStatus ) : |
|
36 iNotifier( aNotifier ), |
|
37 iClientStatus( &aClientStatus ) |
|
38 { |
|
39 } |
|
40 |
|
41 |
|
42 // --------------------------------------------------------------------------- |
|
43 // Destructor |
|
44 // --------------------------------------------------------------------------- |
|
45 // |
|
46 CCTInvalidCertificateNote::~CCTInvalidCertificateNote() |
|
47 { |
|
48 static_cast<CEikServAppUi*>(iEikonEnv->EikAppUi())->SuppressAppSwitching( EFalse ); |
|
49 } |
|
50 |
|
51 |
|
52 // --------------------------------------------------------------------------- |
|
53 // CCTInvalidCertificateNote::OkToExitL() |
|
54 // --------------------------------------------------------------------------- |
|
55 // |
|
56 TBool CCTInvalidCertificateNote::OkToExitL( TInt aButtonId ) |
|
57 { |
|
58 if( aButtonId == EAknSoftkeyShow ) |
|
59 { |
|
60 ShowDetailsL(); |
|
61 return EFalse; |
|
62 } |
|
63 else |
|
64 { |
|
65 User::RequestComplete( iClientStatus, KErrNone ); |
|
66 } |
|
67 return ETrue; |
|
68 } |
|
69 |
|
70 |
|
71 // --------------------------------------------------------------------------- |
|
72 // CCTInvalidCertificateNote::PostLayoutDynInitL() |
|
73 // --------------------------------------------------------------------------- |
|
74 // |
|
75 void CCTInvalidCertificateNote::PostLayoutDynInitL() |
|
76 { |
|
77 CAknNoteDialog::PostLayoutDynInitL(); |
|
78 static_cast<CEikServAppUi*>(iEikonEnv->EikAppUi())->SuppressAppSwitching(ETrue); |
|
79 } |
|
80 |
|
81 |
|
82 // --------------------------------------------------------------------------- |
|
83 // CCTInvalidCertificateNote::ShowDetailsL() |
|
84 // --------------------------------------------------------------------------- |
|
85 // |
|
86 void CCTInvalidCertificateNote::ShowDetailsL() |
|
87 { |
|
88 CCTCertificateQuery* query = CCTCertificateQuery::NewL( iNotifier ); |
|
89 query->ExecuteLD( R_NOTRUST_CERTIFICATE_QUERY ); |
|
90 } |
|
91 |
|
92 |
|
93 // end of file |