connectivitymodules/SeCon/services/csc/src/sconversioninfo.cpp
branchRCL_3
changeset 1 f8e15b44d440
parent 0 d0791faffa3f
equal deleted inserted replaced
0:d0791faffa3f 1:f8e15b44d440
     1 /*
     1 /*
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2008-2010 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 <e32event.h>
    26 #include <hal.h>
    27 #include <e32svr.h>
       
    28 
    27 
    29 #include "caputils.h"
    28 #include "caputils.h"
    30 #include "debug.h"
    29 #include "debug.h"
    31 
    30 
    32 CSconVersionInfo::CSconVersionInfo()
    31 CSconVersionInfo::CSconVersionInfo()
   198     if ( !sysVersionError )
   197     if ( !sysVersionError )
   199         {
   198         {
   200         iProductCode = info.AllocL();
   199         iProductCode = info.AllocL();
   201         }
   200         }
   202     
   201     
   203     // screen size
       
   204     TPckgBuf<TScreenInfoV01> siBuf;
       
   205     UserSvr::ScreenInfo(siBuf);
       
   206     TScreenInfoV01& si=siBuf();
       
   207     iScreenSize = si.iScreenSize;
       
   208     
       
   209     
       
   210     // read DesktopSync key value
   202     // read DesktopSync key value
   211     CRepository* repository(NULL);
   203     CRepository* repository(NULL);
   212     TRAP( iDesktopSyncError, repository = CRepository::NewL( KCRUidDSDCMOConfig ));
   204     TRAP( iDesktopSyncError, repository = CRepository::NewL( KCRUidDSDCMOConfig ));
   213     if ( !iDesktopSyncError )
   205     if ( !iDesktopSyncError )
   214         {
   206         {
   220     else
   212     else
   221         {
   213         {
   222         LOGGER_WRITE_1("Could not create CRepository, err: %d", iDesktopSyncError );
   214         LOGGER_WRITE_1("Could not create CRepository, err: %d", iDesktopSyncError );
   223         }
   215         }
   224     
   216     
   225     
   217     // screen size
       
   218     HAL::Get(HAL::EDisplayXPixels, iScreenSize.iWidth);
       
   219     HAL::Get(HAL::EDisplayYPixels, iScreenSize.iHeight);
   226     
   220     
   227     iInfoFetched = ETrue;
   221     iInfoFetched = ETrue;
   228     TRACE_FUNC_EXIT;   
   222     TRACE_FUNC_EXIT;   
   229     }
   223     }
   230 
   224