40 const TUint32 KSizeAudioGridHeight = 0x13; |
40 const TUint32 KSizeAudioGridHeight = 0x13; |
41 const TUint32 KSizeAudioListWidth = 0x14; |
41 const TUint32 KSizeAudioListWidth = 0x14; |
42 const TUint32 KSizeAudioListHeight = 0x15; |
42 const TUint32 KSizeAudioListHeight = 0x15; |
43 const TUint32 KSizeAudioFullscreenWidth = 0x16; |
43 const TUint32 KSizeAudioFullscreenWidth = 0x16; |
44 const TUint32 KSizeAudioFullscreenHeight = 0x17; |
44 const TUint32 KSizeAudioFullscreenHeight = 0x17; |
45 const TUint32 KSizeContactListWidth = 0x18; |
|
46 const TUint32 KSizeContactListHeight = 0x19; |
|
47 const TUint32 KSizeContactGridWidth = 0x20; |
|
48 const TUint32 KSizeContactGridHeight = 0x21; |
|
49 const TUint32 KSizeContactFullscreenWidth = 0x22; |
|
50 const TUint32 KSizeContactFullscreenHeight = 0x23; |
|
51 |
45 |
52 const TUint32 KAutoCreateImageGrid = 0x100; |
46 const TUint32 KAutoCreateImageGrid = 0x100; |
53 const TUint32 KAutoCreateImageList = 0x101; |
47 const TUint32 KAutoCreateImageList = 0x101; |
54 const TUint32 KAutoCreateImageFullscreen = 0x102; |
48 const TUint32 KAutoCreateImageFullscreen = 0x102; |
55 const TUint32 KAutoCreateVideoGrid = 0x103; |
49 const TUint32 KAutoCreateVideoGrid = 0x103; |
56 const TUint32 KAutoCreateVideoList = 0x104; |
50 const TUint32 KAutoCreateVideoList = 0x104; |
57 const TUint32 KAutoCreateVideoFullscreen = 0x105; |
51 const TUint32 KAutoCreateVideoFullscreen = 0x105; |
58 const TUint32 KAutoCreateAudioGrid = 0x106; |
52 const TUint32 KAutoCreateAudioGrid = 0x106; |
59 const TUint32 KAutoCreateAudioList = 0x107; |
53 const TUint32 KAutoCreateAudioList = 0x107; |
60 const TUint32 KAutoCreateAudioFullscreen = 0x108; |
54 const TUint32 KAutoCreateAudioFullscreen = 0x108; |
61 const TUint32 KAutoCreateContactGrid = 0x109; |
|
62 const TUint32 KAutoCreateContactList = 0x110; |
|
63 const TUint32 KAutoCreateContactFullscreen = 0x111; |
|
64 |
55 |
65 |
56 |
66 // --------------------------------------------------------------------------- |
57 // --------------------------------------------------------------------------- |
67 // TThumbnailPersistentSize::TThumbnailPersistentSize |
58 // TThumbnailPersistentSize::TThumbnailPersistentSize |
68 // --------------------------------------------------------------------------- |
59 // --------------------------------------------------------------------------- |
101 case EAudioGridThumbnailSize: |
92 case EAudioGridThumbnailSize: |
102 case EAudioListThumbnailSize: |
93 case EAudioListThumbnailSize: |
103 case EAudioFullScreenThumbnailSize: |
94 case EAudioFullScreenThumbnailSize: |
104 iSourceType = EAudio; |
95 iSourceType = EAudio; |
105 break; |
96 break; |
106 case EContactGridThumbnailSize: |
|
107 case EContactListThumbnailSize: |
|
108 case EContactFullScreenThumbnailSize: |
|
109 iSourceType = EContact; |
|
110 break; |
|
111 default: |
97 default: |
112 iSourceType = EUnknownSourceType; |
98 iSourceType = EUnknownSourceType; |
113 } |
99 } |
114 |
100 |
115 } |
101 } |
119 // --------------------------------------------------------------------------- |
105 // --------------------------------------------------------------------------- |
120 // |
106 // |
121 TThumbnailAutoCreate::TThumbnailAutoCreate() |
107 TThumbnailAutoCreate::TThumbnailAutoCreate() |
122 : iImageGrid(EFalse), iImageList(EFalse), iImageFullscreen(EFalse), |
108 : iImageGrid(EFalse), iImageList(EFalse), iImageFullscreen(EFalse), |
123 iVideoGrid(EFalse), iVideoList(EFalse), iVideoFullscreen(EFalse), |
109 iVideoGrid(EFalse), iVideoList(EFalse), iVideoFullscreen(EFalse), |
124 iAudioGrid(EFalse), iAudioList(EFalse), iAudioFullscreen(EFalse), |
110 iAudioGrid(EFalse), iAudioList(EFalse), iAudioFullscreen(EFalse) |
125 iContactGrid(EFalse), iContactList(EFalse), iContactFullscreen(EFalse) |
|
126 { |
111 { |
127 // No implementation required |
112 // No implementation required |
128 } |
113 } |
129 |
114 |
130 // ======== MEMBER FUNCTIONS ======== |
115 // ======== MEMBER FUNCTIONS ======== |
242 User::LeaveIfError( iRepository->Get( KSizeAudioFullscreenWidth, xSize )); |
227 User::LeaveIfError( iRepository->Get( KSizeAudioFullscreenWidth, xSize )); |
243 User::LeaveIfError( iRepository->Get( KSizeAudioFullscreenHeight, ySize )); |
228 User::LeaveIfError( iRepository->Get( KSizeAudioFullscreenHeight, ySize )); |
244 User::LeaveIfError( iRepository->Get( KAutoCreateAudioFullscreen, autoCreate )); |
229 User::LeaveIfError( iRepository->Get( KAutoCreateAudioFullscreen, autoCreate )); |
245 |
230 |
246 iPersistentSizes.AppendL( TThumbnailPersistentSize( EAudioFullScreenThumbnailSize, TSize( xSize, ySize ), |
231 iPersistentSizes.AppendL( TThumbnailPersistentSize( EAudioFullScreenThumbnailSize, TSize( xSize, ySize ), |
247 flags, static_cast <TDisplayMode> (raw_mode), format, autoCreate )); |
|
248 |
|
249 User::LeaveIfError( iRepository->Get( KSizeContactGridWidth, xSize )); |
|
250 User::LeaveIfError( iRepository->Get( KSizeContactGridHeight, ySize )); |
|
251 User::LeaveIfError( iRepository->Get( KAutoCreateContactGrid, autoCreate )); |
|
252 |
|
253 iPersistentSizes.AppendL( TThumbnailPersistentSize( EContactGridThumbnailSize, TSize( xSize, ySize ), |
|
254 KGridAndListThumbnailCropped, static_cast <TDisplayMode> (raw_mode), format, autoCreate )); |
|
255 |
|
256 User::LeaveIfError( iRepository->Get( KSizeContactListWidth, xSize )); |
|
257 User::LeaveIfError( iRepository->Get( KSizeContactListHeight, ySize )); |
|
258 User::LeaveIfError( iRepository->Get( KAutoCreateContactList, autoCreate )); |
|
259 |
|
260 iPersistentSizes.AppendL( TThumbnailPersistentSize( EContactListThumbnailSize, TSize( xSize, ySize ), |
|
261 KGridAndListThumbnailCropped, static_cast <TDisplayMode> (raw_mode), format, autoCreate )); |
|
262 |
|
263 User::LeaveIfError( iRepository->Get( KSizeContactFullscreenWidth, xSize )); |
|
264 User::LeaveIfError( iRepository->Get( KSizeContactFullscreenHeight, ySize )); |
|
265 User::LeaveIfError( iRepository->Get( KAutoCreateContactFullscreen, autoCreate )); |
|
266 |
|
267 iPersistentSizes.AppendL( TThumbnailPersistentSize( EContactFullScreenThumbnailSize, TSize( xSize, ySize ), |
|
268 flags, static_cast <TDisplayMode> (raw_mode), format, autoCreate )); |
232 flags, static_cast <TDisplayMode> (raw_mode), format, autoCreate )); |
269 |
233 |
270 iAutoCreate = new (ELeave) TThumbnailAutoCreate(); |
234 iAutoCreate = new (ELeave) TThumbnailAutoCreate(); |
271 |
235 |
272 User::LeaveIfError( iRepository->Get( KAutoCreateImageGrid, iAutoCreate->iImageGrid )); |
236 User::LeaveIfError( iRepository->Get( KAutoCreateImageGrid, iAutoCreate->iImageGrid )); |
276 User::LeaveIfError( iRepository->Get( KAutoCreateVideoList, iAutoCreate->iVideoList )); |
240 User::LeaveIfError( iRepository->Get( KAutoCreateVideoList, iAutoCreate->iVideoList )); |
277 User::LeaveIfError( iRepository->Get( KAutoCreateVideoFullscreen, iAutoCreate->iVideoFullscreen )); |
241 User::LeaveIfError( iRepository->Get( KAutoCreateVideoFullscreen, iAutoCreate->iVideoFullscreen )); |
278 User::LeaveIfError( iRepository->Get( KAutoCreateAudioGrid, iAutoCreate->iAudioGrid )); |
242 User::LeaveIfError( iRepository->Get( KAutoCreateAudioGrid, iAutoCreate->iAudioGrid )); |
279 User::LeaveIfError( iRepository->Get( KAutoCreateAudioList, iAutoCreate->iAudioList )); |
243 User::LeaveIfError( iRepository->Get( KAutoCreateAudioList, iAutoCreate->iAudioList )); |
280 User::LeaveIfError( iRepository->Get( KAutoCreateAudioFullscreen, iAutoCreate->iAudioFullscreen )); |
244 User::LeaveIfError( iRepository->Get( KAutoCreateAudioFullscreen, iAutoCreate->iAudioFullscreen )); |
281 User::LeaveIfError( iRepository->Get( KAutoCreateContactGrid, iAutoCreate->iContactGrid )); |
|
282 User::LeaveIfError( iRepository->Get( KAutoCreateContactList, iAutoCreate->iContactList )); |
|
283 User::LeaveIfError( iRepository->Get( KAutoCreateContactFullscreen, iAutoCreate->iContactFullscreen )); |
|
284 } |
245 } |
285 |
246 |
286 // --------------------------------------------------------------------------- |
247 // --------------------------------------------------------------------------- |
287 // CThumbnailCenRep::GetPersistentSizes() |
248 // CThumbnailCenRep::GetPersistentSizes() |
288 // --------------------------------------------------------------------------- |
249 // --------------------------------------------------------------------------- |