equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
21 #include <centralrepository.h> |
21 #include <centralrepository.h> |
22 #include <DSCapabilityManagementCRKeys.h> |
22 #include <DSCapabilityManagementCRKeys.h> |
23 #include <etel3rdparty.h> // read imsi |
23 #include <etel3rdparty.h> // read imsi |
24 #include <etel.h> |
24 #include <etel.h> |
25 #include <etelmm.h> |
25 #include <etelmm.h> |
26 #include <hal.h> |
26 #include <e32event.h> |
|
27 #include <e32svr.h> |
27 |
28 |
28 #include "caputils.h" |
29 #include "caputils.h" |
29 #include "debug.h" |
30 #include "debug.h" |
30 |
31 |
31 CSconVersionInfo::CSconVersionInfo() |
32 CSconVersionInfo::CSconVersionInfo() |
197 if ( !sysVersionError ) |
198 if ( !sysVersionError ) |
198 { |
199 { |
199 iProductCode = info.AllocL(); |
200 iProductCode = info.AllocL(); |
200 } |
201 } |
201 |
202 |
|
203 // screen size |
|
204 TPckgBuf<TScreenInfoV01> siBuf; |
|
205 UserSvr::ScreenInfo(siBuf); |
|
206 TScreenInfoV01& si=siBuf(); |
|
207 iScreenSize = si.iScreenSize; |
|
208 |
|
209 |
202 // read DesktopSync key value |
210 // read DesktopSync key value |
203 CRepository* repository(NULL); |
211 CRepository* repository(NULL); |
204 TRAP( iDesktopSyncError, repository = CRepository::NewL( KCRUidDSDCMOConfig )); |
212 TRAP( iDesktopSyncError, repository = CRepository::NewL( KCRUidDSDCMOConfig )); |
205 if ( !iDesktopSyncError ) |
213 if ( !iDesktopSyncError ) |
206 { |
214 { |
212 else |
220 else |
213 { |
221 { |
214 LOGGER_WRITE_1("Could not create CRepository, err: %d", iDesktopSyncError ); |
222 LOGGER_WRITE_1("Could not create CRepository, err: %d", iDesktopSyncError ); |
215 } |
223 } |
216 |
224 |
217 // screen size |
225 |
218 HAL::Get(HAL::EDisplayXPixels, iScreenSize.iWidth); |
|
219 HAL::Get(HAL::EDisplayYPixels, iScreenSize.iHeight); |
|
220 |
226 |
221 iInfoFetched = ETrue; |
227 iInfoFetched = ETrue; |
222 TRACE_FUNC_EXIT; |
228 TRACE_FUNC_EXIT; |
223 } |
229 } |
224 |
230 |