|
1 /* |
|
2 * Copyright (c) 2002-2007 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 * Abstract interface for Phonebook 2 contact view list box model. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef MPBK2CONTACTVIEWLISTBOXMODEL_H |
|
21 #define MPBK2CONTACTVIEWLISTBOXMODEL_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <bamdesca.h> // MDesCArray |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * Abstract base class for listbox models. |
|
30 */ |
|
31 class MPbk2ContactViewListBoxModel : public MDesCArray |
|
32 { |
|
33 public: // Destructor |
|
34 |
|
35 /** |
|
36 * Destructor. |
|
37 */ |
|
38 virtual ~MPbk2ContactViewListBoxModel() {} |
|
39 |
|
40 public: // Interface |
|
41 |
|
42 /** |
|
43 * Sets the text to use for unnamed list items. |
|
44 * |
|
45 * @param aText reference to the text to use for unnamed list items. |
|
46 * The referenced descriptor must exist for the lifetime |
|
47 * of this object. If aText==NULL unnamed list items are |
|
48 * presented with an empty text. |
|
49 */ |
|
50 virtual void SetUnnamedText(const TDesC* aText) = 0; |
|
51 |
|
52 /** |
|
53 * Used to get formatted contact title from list box model |
|
54 * |
|
55 * @param aIndex is indef of a contact. |
|
56 * @return HBufC is descriptor that contains formatted contact name. |
|
57 * Ownership of the buffer is passed to the caller. |
|
58 */ |
|
59 virtual HBufC* GetContactTitleLC( TInt aIndex ) const = 0; |
|
60 }; |
|
61 |
|
62 #endif // MPBK2CONTACTVIEWLISTBOXMODEL_H |
|
63 |
|
64 // End of File |