equal
deleted
inserted
replaced
20 |
20 |
21 // INCLUDES |
21 // INCLUDES |
22 |
22 |
23 // CLASS DECLARATION |
23 // CLASS DECLARATION |
24 #include <QList> |
24 #include <QList> |
|
25 #include <QSharedPointer> |
25 |
26 |
26 #include <cadefs.h> |
27 #include <cadefs.h> |
27 |
28 |
28 #include "cainnernotifierfilter.h" |
29 #include "cainnernotifierfilter.h" |
29 #include "canotifier.h" |
30 #include "canotifier.h" |
81 * for conversion. |
82 * for conversion. |
82 * @param toEntriesArray list of converted entries. |
83 * @param toEntriesArray list of converted entries. |
83 */ |
84 */ |
84 static void convertL( |
85 static void convertL( |
85 const RPointerArray<CCaInnerEntry>& fromEntriesArray, |
86 const RPointerArray<CCaInnerEntry>& fromEntriesArray, |
86 QList<CaEntry *>& toEntriesArray); |
87 QList< QSharedPointer<CaEntry> > & toEntriesArray); |
87 |
88 |
88 /** |
89 /** |
89 * Converts QList of ids to RArray of TInts. |
90 * Converts QList of ids to RArray of TInts. |
90 * @param fromEntryIdList list of entry id |
91 * @param fromEntryIdList list of entry id |
91 * @param toEntryIdArray array of entry ids |
92 * @param toEntryIdArray array of entry ids |
104 /** |
105 /** |
105 * Converts symbian error code to error code (used in QT code). |
106 * Converts symbian error code to error code (used in QT code). |
106 */ |
107 */ |
107 static ErrorCode convertErrorCode( |
108 static ErrorCode convertErrorCode( |
108 TInt internalErrorCode); |
109 TInt internalErrorCode); |
109 |
|
110 /** |
|
111 * Creates icon. |
|
112 * @param entry entry. |
|
113 * @return HbIcon. |
|
114 */ |
|
115 static HbIcon makeIcon(const CaEntry &entry, const QSize &size); |
|
116 |
110 |
117 /** |
111 /** |
118 * Converts notifier type to inner notifier type. |
112 * Converts notifier type to inner notifier type. |
119 * @param from notifier type. |
113 * @param from notifier type. |
120 * @param to resulting inner notifier type. |
114 * @param to resulting inner notifier type. |
147 */ |
141 */ |
148 static void setId(CaEntry &entry, |
142 static void setId(CaEntry &entry, |
149 int id); |
143 int id); |
150 |
144 |
151 private: |
145 private: |
152 /** |
|
153 * Creates icon. Leaving version. |
|
154 * @param entry entry. |
|
155 * @return HbIcon. |
|
156 */ |
|
157 static HbIcon makeIconL(const CaEntry &entry, const QSize &size); |
|
158 |
|
159 /** |
|
160 * Make bitmap copy, used to get rid of compression for extended bitmap |
|
161 * @param input input bitmap. |
|
162 * @return copied bitmap. |
|
163 */ |
|
164 static CFbsBitmap *copyBitmapLC(CFbsBitmap *input); |
|
165 |
146 |
166 /** |
147 /** |
167 * Maps a given sort subject and the order to be applied |
148 * Maps a given sort subject and the order to be applied |
168 * into a sort code used |
149 * into a sort code used |
169 * @param sortAttribute - what is to be sorted |
150 * @param sortAttribute - what is to be sorted |