1 /* |
|
2 * Copyright (c) 2002 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 * Implementation of CCbsUiListQueryDialog |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 // INCLUDES |
|
22 #include <eikclb.h> // CEikColumnListBox |
|
23 #include <eikaufty.h> // MEikAppUiFactory |
|
24 #include <aknlists.h> // CAknSingleGraphicStyleListBox |
|
25 #include <gulicon.h> // CGulIcon |
|
26 #include <eikclbd.h> // CColumnListBoxData |
|
27 #include <aknnavide.h> // CAknNavigationDecorator |
|
28 #include <akntitle.h> // CAknTitlePane |
|
29 #include <barsread.h> // TResourceReader |
|
30 #include <AknIconArray.h> |
|
31 #include <StringLoader.h> |
|
32 #include "CCbsUiListQueryDialog.h" |
|
33 #include "CbsUiPanic.h" |
|
34 #include "MCbs.h" |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 // ================= MEMBER FUNCTIONS ======================= |
|
42 |
|
43 // C++ constructor can NOT contain any code, that |
|
44 // might leave. |
|
45 // |
|
46 CCbsUiListQueryDialog::CCbsUiListQueryDialog( |
|
47 CArrayFix<TInt>& aIndexArray ) : |
|
48 CAknListQueryDialog( &aIndexArray ), |
|
49 iIndexArray( aIndexArray ) |
|
50 { |
|
51 } |
|
52 |
|
53 // --------------------------------------------------------- |
|
54 // CCbsUiListQueryDialog::PostLayoutDynInitL |
|
55 // |
|
56 // |
|
57 // --------------------------------------------------------- |
|
58 // |
|
59 void CCbsUiListQueryDialog::PostLayoutDynInitL() |
|
60 { |
|
61 CAknListQueryDialog::PostLayoutDynInitL(); |
|
62 ListBox()->SetSelectionIndexesL( &iIndexArray ); |
|
63 } |
|
64 |
|
65 // --------------------------------------------------------- |
|
66 // CCbsUiListQueryDialog::OkToExitL |
|
67 // |
|
68 // |
|
69 // --------------------------------------------------------- |
|
70 // |
|
71 TBool CCbsUiListQueryDialog::OkToExitL( TInt aKeyCode ) |
|
72 { |
|
73 if ( aKeyCode == EEikBidOk ) |
|
74 { |
|
75 iIndexArray.Reset(); |
|
76 } |
|
77 |
|
78 return CAknListQueryDialog::OkToExitL( aKeyCode ); |
|
79 } |
|
80 |
|
81 |
|
82 |
|
83 // End of File |
|