1 /* |
|
2 * Copyright (c) 2002,2005 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: Provides Location request detail view listbox model. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CLOCPSYLBMODEL_H |
|
19 #define CLOCPSYLBMODEL_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32base.h> // CBase |
|
23 #include <bamdesca.h> // MDesCArray |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class MLocPsySettings; |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * CLocPsyLBModel |
|
32 * |
|
33 */ |
|
34 class CLocPsyLBModel : public CBase, public MDesCArray |
|
35 { |
|
36 private: |
|
37 /** |
|
38 * C++ constructor. |
|
39 * @param aListBox where the model is used, not own |
|
40 * @param aEntry pointer to log entry instance, not own |
|
41 * @param aCLocRequestorUtilsBase requestor utility |
|
42 */ |
|
43 CLocPsyLBModel( MLocPsySettings* aPsySettingModel ); |
|
44 |
|
45 public: |
|
46 /** |
|
47 * Destructor |
|
48 */ |
|
49 virtual ~CLocPsyLBModel(); |
|
50 |
|
51 /** |
|
52 * Two-phased constructor |
|
53 * @param aPsySettingsModel, provides data about the Psy modules |
|
54 */ |
|
55 static CLocPsyLBModel* NewLC( MLocPsySettings* aPsySettingModel ); |
|
56 |
|
57 /** |
|
58 * Two-phased constructor |
|
59 * @param aPsySettingsModel, provides data about the Psy modules |
|
60 */ |
|
61 static CLocPsyLBModel* NewL( MLocPsySettings* aPsySettingModel ); |
|
62 |
|
63 private: |
|
64 /** |
|
65 * Symbian default constructor. |
|
66 */ |
|
67 void ConstructL(); |
|
68 |
|
69 private: // From MDesCArray |
|
70 TInt MdcaCount() const; |
|
71 TPtrC16 MdcaPoint( TInt aIndex ) const; |
|
72 |
|
73 private: //data |
|
74 // Ref: instance pointer |
|
75 MLocPsySettings* iPsySettingsModel; |
|
76 /// Own: conversion buffer |
|
77 HBufC* iBuffer; |
|
78 }; |
|
79 |
|
80 #endif // CLOCPSYLBMODEL_H |
|
81 |
|
82 // End of File |
|