equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2006-2007 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "ccustomnotedialog.h" |
|
20 |
|
21 // CONSTRUCTION |
|
22 CCustomNoteDialog* CCustomNoteDialog::NewL( CEikDialog** aSelfPtr ) |
|
23 { |
|
24 CCustomNoteDialog* self = CCustomNoteDialog::NewLC( aSelfPtr ); |
|
25 CleanupStack::Pop( self ); |
|
26 return self; |
|
27 } |
|
28 |
|
29 // CONSTRUCTION |
|
30 CCustomNoteDialog* CCustomNoteDialog::NewLC( CEikDialog** aSelfPtr ) |
|
31 { |
|
32 CCustomNoteDialog* self = new (ELeave) CCustomNoteDialog( aSelfPtr ); |
|
33 CleanupStack::PushL( self ); |
|
34 self->ConstructL(); |
|
35 return self; |
|
36 } |
|
37 |
|
38 // Destructor |
|
39 CCustomNoteDialog::~CCustomNoteDialog() |
|
40 { |
|
41 if ( iCallback ) |
|
42 { |
|
43 // no need to handle error here |
|
44 TRAP_IGNORE( iCallback->DialogDismissedL( EAknSoftkeyCancel ) ); |
|
45 } |
|
46 } |
|
47 |
|
48 // Constructor |
|
49 CCustomNoteDialog::CCustomNoteDialog( CEikDialog** aSelfPtr ) |
|
50 : CAknNoteDialog( aSelfPtr ) |
|
51 { |
|
52 // no implementation |
|
53 } |
|
54 |
|
55 // 2nd phase constructor |
|
56 void CCustomNoteDialog::ConstructL() |
|
57 { |
|
58 // no implementation |
|
59 } |
|
60 |
|
61 void CCustomNoteDialog::SetCallback( MProgressDialogCallback* aCallback ) |
|
62 { |
|
63 iCallback = aCallback; |
|
64 } |
|
65 |
|
66 // End of File |
|