diff -r f5b689a4f7a2 -r e0c1916b8ddc remotemgmt_plat/syncml_ds_customization_api/tsrc/synchconfigvalidator/customdatasynchdeviceinfo.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/remotemgmt_plat/syncml_ds_customization_api/tsrc/synchconfigvalidator/customdatasynchdeviceinfo.h Thu Sep 02 21:22:11 2010 +0300 @@ -0,0 +1,74 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef CIMEIREADER_H +#define CIMEIREADER_H + +#include +#include +#include + +class CDeviceInfo : public CActive +{ +public: + enum States + { + EModel, + EManufacturer, + ESerialnumber, + }; + + static CDeviceInfo* NewL(); + static CDeviceInfo* NewLC(); + ~CDeviceInfo(); + + TBuf imei(); + TBuf model(); + TBuf manufacturer(); + TBuf imsi(); + TUint batteryLevel(); + TInt32 signalStrength(); + +protected: + void DoCancel(); + void RunL(); + +private: + CDeviceInfo(); + void ConstructL(); + +private: + CTelephony* iTelephony; + + CTelephony::TBatteryInfoV1Pckg iBatteryInfoV1Pkg; + CTelephony::TBatteryInfoV1 iBatteryInfoV1; + + CTelephony::TPhoneIdV1 iPhoneIdV1; + CTelephony::TPhoneIdV1Pckg iPhoneIdV1Pkg; + + CTelephony::TSignalStrengthV1Pckg iSignalStrengthV1Pckg; + CTelephony::TSignalStrengthV1 iSignalStrengthV1; + + CTelephony::TSubscriberIdV1Pckg iSubscriberIdV1Pckg; + CTelephony::TSubscriberIdV1 iSubscriberIdV1; + + CActiveSchedulerWait *iWait; + + bool phoneIdFetched; +}; + +#endif /* CIMEIREADER_H */