|
1 /* |
|
2 * Copyright (c) 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: Wait note dialog for MTP connection |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <avkon.rsg> |
|
21 #include <avkon.mbg> |
|
22 #include <StringLoader.h> |
|
23 #include <StringLoader.h> |
|
24 #include <aknconsts.h> |
|
25 #include <mpxcollectionmessage.h> |
|
26 #include <mpxwaitnotedialog.rsg> |
|
27 #include <mpxcollectionframeworkdefs.h> |
|
28 #include <mpxmessagegeneraldefs.h> |
|
29 #include <mpxlog.h> |
|
30 #include "mpxmtpdialog.h" |
|
31 |
|
32 // --------------------------------------------------------------------------- |
|
33 // Constructor |
|
34 // --------------------------------------------------------------------------- |
|
35 // |
|
36 CMPXMtpWaitDialog::CMPXMtpWaitDialog( MMPXWaitNoteObserver* aObs ) : |
|
37 CMPXWaitNoteDialog( aObs, EMPXMTPEventNote ) |
|
38 { |
|
39 |
|
40 } |
|
41 |
|
42 |
|
43 // --------------------------------------------------------------------------- |
|
44 // 2nd Phased constructor |
|
45 // --------------------------------------------------------------------------- |
|
46 // |
|
47 void CMPXMtpWaitDialog::ConstructL() |
|
48 { |
|
49 BaseConstructL(); |
|
50 } |
|
51 |
|
52 |
|
53 // --------------------------------------------------------------------------- |
|
54 // Two-phased constructor |
|
55 // --------------------------------------------------------------------------- |
|
56 // |
|
57 CMPXMtpWaitDialog* CMPXMtpWaitDialog::NewL( MMPXWaitNoteObserver* aObs ) |
|
58 { |
|
59 CMPXMtpWaitDialog* self = new(ELeave) CMPXMtpWaitDialog( aObs ); |
|
60 CleanupStack::PushL( self ); |
|
61 self->ConstructL(); |
|
62 CleanupStack::Pop( self ); |
|
63 return self; |
|
64 } |
|
65 |
|
66 |
|
67 // --------------------------------------------------------------------------- |
|
68 // Destructor |
|
69 // --------------------------------------------------------------------------- |
|
70 // |
|
71 CMPXMtpWaitDialog::~CMPXMtpWaitDialog() |
|
72 { |
|
73 } |
|
74 |
|
75 // --------------------------------------------------------------------------- |
|
76 // Initialize the wait note |
|
77 // --------------------------------------------------------------------------- |
|
78 // |
|
79 void CMPXMtpWaitDialog::PreNoteDisplayHandleL() |
|
80 { |
|
81 // CBA |
|
82 SetCBAL( R_AVKON_SOFTKEYS_EMPTY ); |
|
83 |
|
84 // Text |
|
85 HBufC* text = StringLoader::LoadLC( R_MPX_USB_CONNECTION_IN_PROGRESS ); |
|
86 SetTextL( *text ); |
|
87 CleanupStack::PopAndDestroy( text ); |
|
88 |
|
89 // Icon |
|
90 TNoteIconInfo icon( (TInt)EMbmAvkonQgn_note_progress, |
|
91 (TInt)EMbmAvkonQgn_note_progress_mask, |
|
92 TFileName(KAvkonBitmapFile) ); |
|
93 SetIconL( icon ); |
|
94 } |
|
95 |
|
96 // End of File |