63
|
1 |
/*
|
|
2 |
* Copyright (c) 2005-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: Phonebook 2 UI control UI extension interface.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef MPBK2CONTACTUICONTROLEXTENSION_H
|
|
20 |
#define MPBK2CONTACTUICONTROLEXTENSION_H
|
|
21 |
|
|
22 |
// INCLUDES
|
|
23 |
#include <TPbk2IconId.h>
|
|
24 |
#include <MPbk2UiReleasable.h>
|
|
25 |
|
|
26 |
// FORWARD DECLARATIONS
|
|
27 |
class MVPbkViewContact;
|
|
28 |
class MPbk2ContactUiControlUpdate;
|
|
29 |
//class CPbk2IconArray;
|
|
30 |
|
|
31 |
//Use this UID to access extension 2 for this interface. Used as a parameter
|
|
32 |
//to ContactUiControlExtensionExtension() method.
|
|
33 |
const TUid KMPbk2ContactUiControlExtensionExtension2Uid = { 2 };
|
|
34 |
|
|
35 |
// CLASS DECLARATION
|
|
36 |
/**
|
|
37 |
* Phonebook 2 UI control UI extension interface.
|
|
38 |
*/
|
|
39 |
class MPbk2ContactUiControlExtension : public MPbk2UiReleasable
|
|
40 |
{
|
|
41 |
public: // Interface
|
|
42 |
|
|
43 |
/**
|
|
44 |
* Gets dynamic icon ids for a contact.
|
|
45 |
*
|
|
46 |
* @param aContactHandle Handle of the contact to get
|
|
47 |
* dynamic icons
|
|
48 |
* @return An array of icon ids. Count of the array is zero if
|
|
49 |
* no icon is associated with the contact.
|
|
50 |
*/
|
|
51 |
virtual const TArray<TPbk2IconId> GetDynamicIconsL(
|
|
52 |
const MVPbkViewContact* aContactHandle ) = 0;
|
|
53 |
|
|
54 |
/**
|
|
55 |
* Sets contact UI control updater for this extension.
|
|
56 |
*
|
|
57 |
* @param aContactUpdator UI control updater.
|
|
58 |
* If NULL, association is removed.
|
|
59 |
*/
|
|
60 |
virtual void SetContactUiControlUpdate(
|
|
61 |
MPbk2ContactUiControlUpdate* aContactUpdator ) = 0;
|
|
62 |
|
|
63 |
/**
|
|
64 |
* Returns an extension point for this interface or NULL.
|
|
65 |
*
|
|
66 |
* @param aExtensionUid Extension UID.
|
|
67 |
* @return Extension point.
|
|
68 |
*/
|
|
69 |
virtual TAny* ContactUiControlExtensionExtension(
|
|
70 |
TUid /*aExtensionUid*/ )
|
|
71 |
{
|
|
72 |
return NULL;
|
|
73 |
}
|
|
74 |
};
|
|
75 |
|
|
76 |
#endif // MPBK2CONTACTUICONTROLEXTENSION_H
|
|
77 |
|
|
78 |
// End of File
|