equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: |
14 * Description: |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #ifndef OBJECTADAPTER_H |
18 #ifndef CAOBJECTADAPTER_H |
19 #define OBJECTADAPTER_H |
19 #define CAOBJECTADAPTER_H |
20 |
20 |
21 // INCLUDES |
21 // INCLUDES |
22 #include <QPixmap> |
22 #include <QPixmap> |
23 |
23 |
24 #include <cadefs.h> |
24 #include <cadefs.h> |
26 class QSize; |
26 class QSize; |
27 class CaEntry; |
27 class CaEntry; |
28 class CaIconDescription; |
28 class CaIconDescription; |
29 class HbIcon; |
29 class HbIcon; |
30 |
30 |
31 /** |
|
32 * CaObjectAdapter |
|
33 * |
|
34 */ |
|
35 class CaObjectAdapter |
31 class CaObjectAdapter |
36 { |
32 { |
37 public: |
33 public: |
38 |
34 |
39 /** |
35 static HbIcon makeIcon(const CaEntry &entry, const QSize &size); |
40 * Create an icon. |
|
41 * @param entry entry. |
|
42 * @param size size of the icon |
|
43 * @return QPixmap. |
|
44 */ |
|
45 static HbIcon makeIcon( |
|
46 const CaEntry &entry, |
|
47 const QSize &size); |
|
48 |
36 |
49 /** |
37 static void setId(CaEntry &entry, int id); |
50 * Set entry id. |
|
51 * @param entry entry. |
|
52 * @param id entry id. |
|
53 */ |
|
54 static void setId(CaEntry &entry, |
|
55 int id); |
|
56 |
38 |
57 /** |
39 static void setId(CaIconDescription &iconDescription, int id); |
58 * Set icon description id. |
|
59 * @param iconDescription icon description. |
|
60 * @param id icon description id. |
|
61 */ |
|
62 static void setId(CaIconDescription &iconDescription, |
|
63 int id); |
|
64 |
40 |
65 /** |
41 static ErrorCode convertErrorCode(int internalErrorCode); |
66 * Converts symbian error code to error code (used in QT code). |
|
67 */ |
|
68 static ErrorCode convertErrorCode( |
|
69 int internalErrorCode); |
|
70 |
42 |
71 }; |
43 }; |
72 |
44 |
73 #endif // OBJECTADAPTER_H |
45 #endif // CAOBJECTADAPTER_H |