⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 retrievenumber.h

📁 Explaining how to retrive the caller number from the incoming call in symbian c++
💻 H
字号:
/* ====================================================================
 * 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -