📄 httpconnectionopener.h
字号:
/*
* ============================================================================
* Name : CTaskManagerConnectionOpener from TaskManagerConnectionOpener.h
* Part of : TaskManager
* Created : 03/13/2005 by Forum Nokia
* Version : 1.2
* Copyright: Nokia Corporation
* ============================================================================
*/
#ifndef __HTTPCONNECTIONOPENER_H
#define __HTTPCONNECTIONOPENER_H
// INCLUDE FILES
#include <e32base.h>
#include <Es_sock.h> // RConnection
#include <commdbconnpref.h> // TCommDbConnPref
// FORWARD DECLARATIONS
class MConnectionObserver;
// CLASS DECLARATION
/**
* An active object class for establishing a GPRS connection.
*/
class CHttpConnectionOpener : public CActive
{
public: // Constructors and destructor
/**
* Two-phased constructor
*/
static CHttpConnectionOpener* NewL(RConnection& aConnection, MConnectionObserver& aConnObserver);
/**
* Destructor
*/
~CHttpConnectionOpener();
public: // New functions
/**
* Begins the GPRS connection establishment.
* @param aPrefs the settings for the GPRS connection establishment.
*/
void OpenConnection(TCommDbConnPref& aPrefs);
private:
/**
* Symbian OS default constructor
*/
CHttpConnectionOpener(RConnection& aConnection, MConnectionObserver& aConnObserver);
void ConstructL();
private: // Functions from base classes
/**
* From CActive
*/
void RunL();
/**
* From CActive
*/
void DoCancel();
private: // Data members
RConnection& iConnection;
MConnectionObserver& iConnObserver;
};
#endif
// End of file
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -