cbsref/telephonyrefplugins/atltsy/atcommand/phone/inc/getphoneid.h
changeset 49 f50f4094acd7
equal deleted inserted replaced
48:14460bf2a402 49:f50f4094acd7
       
     1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // @file getphoneid.h
       
    15 // 
       
    16 
       
    17 #ifndef __GETPHONEID_H__
       
    18 #define __GETPHONEID_H__
       
    19 
       
    20 //user include
       
    21 #include "atcommandcontrolbase.h"
       
    22 
       
    23 // forward class
       
    24 class CATGetImei;
       
    25 class CATGetManufacturer;
       
    26 class CATGetModel;
       
    27 class CATGetRevision;
       
    28 
       
    29 /**
       
    30  * CGetPhoneID inherits from the CATCommandControlBase class. 
       
    31  *
       
    32  */
       
    33 class CGetPhoneID : public CATCommandControlBase
       
    34 {
       
    35 public:
       
    36     /**
       
    37      * Two-phased constructor.
       
    38      * @param aGloblePhone
       
    39 	 * @param aCtsyDispatcherCallback
       
    40      */ 
       
    41 	static CGetPhoneID* NewL(CGlobalPhonemanager& aGloblePhone, 
       
    42 		                     CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    43 	/**
       
    44 	 * Destructor
       
    45 	 *
       
    46 	 */
       
    47 	~CGetPhoneID();
       
    48 
       
    49 	virtual void AtCommandExecuteComplete(TAtEventSource aEventSource, TInt aStatus);
       
    50 	void StartRequest();
       
    51 protected:
       
    52 	/**
       
    53 	 * Constructor
       
    54 	 *
       
    55 	 * @param aGloblePhone
       
    56 	 * @param aCtsyDispatcherCallback
       
    57 	 */
       
    58 	CGetPhoneID(CGlobalPhonemanager& aGloblePhone, 
       
    59 		        CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    60 	/**
       
    61 	 * 2nd Constructor
       
    62 	 */
       
    63 	void ConstructL();
       
    64 private:
       
    65 	void StartATCommand(CAtCommandBase* aAtCommand);
       
    66 	void EndATCommand(CAtCommandBase* aAtCommand);
       
    67 	void GetImeiComplete(const TInt aError);
       
    68 	void GetManufacturerComplete(const TInt aError);
       
    69 	void GetModelComplete(const TInt aError);
       
    70 private:
       
    71 	RMobilePhone::TMobilePhoneIdentityV1 iPhoneId;
       
    72 	CATGetImei* iATGetImei;
       
    73 	CATGetManufacturer* iATGetManufacturer;
       
    74 	CATGetModel* iATGetModel;
       
    75 	CATGetRevision* iATGetRevision;
       
    76 	TLtsyATCommandType iATType;
       
    77 
       
    78 };
       
    79 #endif //__GETPHONEID_H__