85
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 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 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef OBJECTADAPTER_H
|
|
19 |
#define OBJECTADAPTER_H
|
|
20 |
|
|
21 |
// INCLUDES
|
|
22 |
#include <QPixmap>
|
|
23 |
|
|
24 |
class QSize;
|
|
25 |
class CaEntry;
|
|
26 |
class CaIconDescription;
|
86
|
27 |
class HbIcon;
|
85
|
28 |
|
|
29 |
/**
|
|
30 |
* CaObjectAdapter
|
|
31 |
*
|
|
32 |
*/
|
|
33 |
class CaObjectAdapter
|
|
34 |
{
|
|
35 |
public:
|
|
36 |
|
|
37 |
/**
|
|
38 |
* Create an icon.
|
|
39 |
* @param entry entry.
|
|
40 |
* @param size size of the icon
|
|
41 |
* @return QPixmap.
|
|
42 |
*/
|
86
|
43 |
static HbIcon makeIcon(
|
87
|
44 |
const CaEntry &entry,
|
85
|
45 |
const QSize &size);
|
|
46 |
|
|
47 |
/**
|
|
48 |
* Set entry id.
|
|
49 |
* @param entry entry.
|
|
50 |
* @param id entry id.
|
|
51 |
*/
|
|
52 |
static void setId(CaEntry &entry,
|
87
|
53 |
int id);
|
85
|
54 |
|
|
55 |
/**
|
|
56 |
* Set icon description id.
|
|
57 |
* @param iconDescription icon description.
|
|
58 |
* @param id icon description id.
|
|
59 |
*/
|
|
60 |
static void setId(CaIconDescription &iconDescription,
|
87
|
61 |
int id);
|
85
|
62 |
|
|
63 |
};
|
|
64 |
|
|
65 |
#endif // OBJECTADAPTER_H
|