|
1 /* |
|
2 * Copyright (c) 2008 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: This module contains the implementation of |
|
15 * : CSsListQueryDialog class |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "csslistquerydialog.h" |
|
22 #include "cssconnectionhandler.h" |
|
23 #include "cssuiutilities.h" |
|
24 #include "cssserviceutilities.h" |
|
25 |
|
26 // ================= MEMBER FUNCTIONS ======================================= |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // CSsListQueryDialog::CSsListQueryDialog |
|
30 // C++ constructor can NOT contain any code, that |
|
31 // might leave. |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 CSsListQueryDialog::CSsListQueryDialog |
|
35 ( |
|
36 CEikDialog** aSelf, |
|
37 TInt& aIndex |
|
38 ) |
|
39 : CAknListQueryDialog(&aIndex), |
|
40 iSelf( aSelf ) |
|
41 { |
|
42 } |
|
43 |
|
44 // Destructor |
|
45 CSsListQueryDialog::~CSsListQueryDialog |
|
46 ( |
|
47 // None. |
|
48 ) |
|
49 { |
|
50 // Set self pointer as null. |
|
51 // Query could be destroyed by client application or by |
|
52 // the user selection. |
|
53 if ( iSelf ) |
|
54 { |
|
55 *iSelf = NULL; |
|
56 iSelf = NULL; |
|
57 } |
|
58 } |
|
59 |
|
60 // ----------------------------------------------------------------------------- |
|
61 // CSsListQueryDialog::ExecuteListLD |
|
62 // Runs the dialog |
|
63 // ----------------------------------------------------------------------------- |
|
64 // |
|
65 TInt CSsListQueryDialog::ExecuteListLD |
|
66 ( |
|
67 TInt aResourceId, |
|
68 MDesCArray* aItemTextArray, |
|
69 CArrayPtr<CGulIcon>* aIcons |
|
70 ) |
|
71 { |
|
72 CAknListQueryDialog::PrepareLC( aResourceId ); |
|
73 SetTone( EConfirmationTone ); |
|
74 if ( aIcons ) |
|
75 { |
|
76 SetIconArrayL( aIcons ); |
|
77 } |
|
78 SetItemTextArray( aItemTextArray ); |
|
79 SetOwnershipType( ELbmDoesNotOwnItemArray ); |
|
80 return CAknListQueryDialog::RunLD(); |
|
81 } |
|
82 |
|
83 |
|
84 // ================= OTHER EXPORTED FUNCTIONS =============================== |
|
85 |
|
86 // End of File |