|
1 /* |
|
2 * Copyright (c) 2009 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: default sim-dialog plugin implemntation |
|
15 * |
|
16 */ |
|
17 |
|
18 // INCLUDE FILES |
|
19 #include <aknViewAppUi.h> // iAvkonViewAppUi |
|
20 #include "defaultsimdialog.h" |
|
21 #include "smssimdialog.h" |
|
22 |
|
23 #include <defaultsimdialog.rsg> // resource ids |
|
24 |
|
25 // ============================== MEMBER FUNCTIONS ============================ |
|
26 |
|
27 // ---------------------------------------------------------------------------- |
|
28 // CDefaultSimDlg::NewL |
|
29 // Two Phase Construction |
|
30 // ---------------------------------------------------------------------------- |
|
31 CDefaultSimDlg* CDefaultSimDlg::NewL( TSimDlgParams* aParams) |
|
32 { |
|
33 CDefaultSimDlg* self = CDefaultSimDlg::NewLC( aParams); |
|
34 CleanupStack::Pop( self ); |
|
35 |
|
36 return self; |
|
37 } |
|
38 |
|
39 // ---------------------------------------------------------------------------- |
|
40 // CDefaultSimDlg::NewLC |
|
41 // Two Phase Construction |
|
42 // ---------------------------------------------------------------------------- |
|
43 CDefaultSimDlg* CDefaultSimDlg::NewLC( TSimDlgParams* aParams) |
|
44 { |
|
45 CDefaultSimDlg* self = new( ELeave ) CDefaultSimDlg(aParams); |
|
46 CleanupStack::PushL( self ); |
|
47 self->ConstructL(); |
|
48 |
|
49 return self; |
|
50 } |
|
51 |
|
52 // ---------------------------------------------------------------------------- |
|
53 // CDefaultSimDlg::CDefaultSimDlg |
|
54 // Constructor |
|
55 // ---------------------------------------------------------------------------- |
|
56 CDefaultSimDlg::CDefaultSimDlg(TSimDlgParams* aParams) |
|
57 :iSmsMtmUi(aParams->iSmsMtmUi),iSession(aParams->iSession) |
|
58 { |
|
59 } |
|
60 |
|
61 // ---------------------------------------------------------------------------- |
|
62 // CDefaultSimDlg::ConstructL |
|
63 // 2nd phase constructor |
|
64 // ---------------------------------------------------------------------------- |
|
65 void CDefaultSimDlg::ConstructL() |
|
66 { |
|
67 |
|
68 } |
|
69 |
|
70 // ---------------------------------------------------------------------------- |
|
71 // CDefaultSimDlg::~CDefaultSimDlg |
|
72 // Constructor |
|
73 // ---------------------------------------------------------------------------- |
|
74 CDefaultSimDlg::~CDefaultSimDlg() |
|
75 { |
|
76 |
|
77 } |
|
78 |
|
79 |
|
80 // ---------------------------------------------------------------------------- |
|
81 // CDefaultSimDlg::LaunchL |
|
82 // |
|
83 // ---------------------------------------------------------------------------- |
|
84 void CDefaultSimDlg::LaunchL() |
|
85 { |
|
86 TInt exitCode = KErrNone; |
|
87 CSmsSimDialog* simDialog = CSmsSimDialog::NewL( iSmsMtmUi, iSession, exitCode ); |
|
88 simDialog->ExecuteLD( R_SMS_DEFAULT_SIM_DIALOG ); |
|
89 if ( exitCode == EEikCmdExit ) |
|
90 { |
|
91 iAvkonViewAppUi->ProcessCommandL( EAknCmdExit ); |
|
92 } |
|
93 } |
|
94 |