|
1 /* |
|
2 * Copyright (c) 2006 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 USB transfer |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <StringLoader.h> |
|
21 #include <avkon.rsg> |
|
22 #include <avkon.mbg> |
|
23 #include <aknconsts.h> |
|
24 #include <mpxcollectionmessage.h> |
|
25 #include <mpxwaitnotedialog.rsg> |
|
26 #include <mpxcollectionframeworkdefs.h> |
|
27 #include <mpxmessagegeneraldefs.h> |
|
28 #include <mpxlog.h> |
|
29 #include "mpxusbdialog.h" |
|
30 |
|
31 // --------------------------------------------------------------------------- |
|
32 // Constructor |
|
33 // --------------------------------------------------------------------------- |
|
34 // |
|
35 CMPXUsbWaitDialog::CMPXUsbWaitDialog( MMPXWaitNoteObserver* aObs ) |
|
36 : CMPXWaitNoteDialog( aObs, EMPXUsbEventNote ) |
|
37 { |
|
38 |
|
39 } |
|
40 |
|
41 |
|
42 // --------------------------------------------------------------------------- |
|
43 // 2nd Phased constructor |
|
44 // --------------------------------------------------------------------------- |
|
45 // |
|
46 void CMPXUsbWaitDialog::ConstructL() |
|
47 { |
|
48 BaseConstructL(); |
|
49 } |
|
50 |
|
51 |
|
52 // --------------------------------------------------------------------------- |
|
53 // Two-Phased Constructor |
|
54 // --------------------------------------------------------------------------- |
|
55 // |
|
56 CMPXUsbWaitDialog* CMPXUsbWaitDialog::NewL( MMPXWaitNoteObserver* aObs ) |
|
57 { |
|
58 CMPXUsbWaitDialog* self = new(ELeave) CMPXUsbWaitDialog( aObs ); |
|
59 CleanupStack::PushL( self ); |
|
60 self->ConstructL(); |
|
61 CleanupStack::Pop( self ); |
|
62 return self; |
|
63 } |
|
64 |
|
65 |
|
66 // --------------------------------------------------------------------------- |
|
67 // Destructor |
|
68 // --------------------------------------------------------------------------- |
|
69 // |
|
70 CMPXUsbWaitDialog::~CMPXUsbWaitDialog() |
|
71 { |
|
72 } |
|
73 |
|
74 |
|
75 // --------------------------------------------------------------------------- |
|
76 // Setup Wait Notes |
|
77 // --------------------------------------------------------------------------- |
|
78 // |
|
79 void CMPXUsbWaitDialog::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 |
|
97 // End of File |