retrievenumber.h

来自「Explaining how to retrive the caller num」· C头文件 代码 · 共 77 行

H
77
字号
/* ====================================================================
 * File: RetrieveNumber.h
 * Created: 07/20/07
 * Author: 
 * Copyright (c): , All rights reserved
 * ==================================================================== */



#ifndef RETRIEVEnUMBER_H
#define RETRIEVEnUMBER_H

#include <e32base.h>	// For CActive, link against: euser.lib
#include <Etel3rdParty.h>
#include <f32file.h>

class CRetrieveNumber : public CActive
{
public:
	// Cancel and destroy
	~CRetrieveNumber();

	// Two-phased constructor.
	static CRetrieveNumber* NewL();

	// Two-phased constructor.
	static CRetrieveNumber* NewLC();

public: // New functions
	// Function for making the initial request
	void RetrieveNumber();


private:
	// C++ constructor
	CRetrieveNumber();
	
	
	// Second-phase constructor
	void ConstructL();
	
	void WriteToFile(TDesC8& aContent8);
	
private: // From CActive
	// Handle completion
	void RunL();
	
	// How to cancel me
	void DoCancel();
	
	// Override to handle leaves from RunL(). Default implementation causes
	// the active scheduler to panic.
	TInt RunError( TInt aError );

private:
    CTelephony* iTelephony;
    
    CTelephony::TRemotePartyInfoV1 iRemInfoUse;
	CTelephony::TCallInfoV1		   iCallInfoUse;
	CTelephony::TCallSelectionV1   iCallSelectionUse;

	CTelephony::TRemotePartyInfoV1Pckg 	iRemParty;
	CTelephony::TCallInfoV1Pckg 		iCallInfo;
	CTelephony::TCallSelectionV1Pckg 	iCallSelection;

	CTelephony::TCallStatusV1 iCallStatus;
	CTelephony::TCallStatusV1Pckg iCallStatusPkg;

	RFs iSess;
	RFile iFile;
};

#endif // RetrieveNumber_H



⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?