📄 iapconnectprogressnotifier.h
字号:
/*
* ============================================================================
* Name : CIAPConnectProgressNotifier from IAPConnectProgressNotifier.h
* Part of : Internet Access Points Example v2.0
* Description:
* Decalares progress notifier class.
* Created : 01.09.2006 by Forum Nokia
* Version : 2.0
* Copyright: Forum Nokia
* ============================================================================
*/
#ifndef IAPCONNECT_PROGRESSNOTIFIER_H
#define IAPCONNECT_PROGRESSNOTIFIER_H
#include "IAPConnectStateObserver.h"
#include <e32base.h>
#include <Es_sock.h>
class CIAPConnectProgressNotifier : public CActive
{
public:
/*
* NewL()
*
* Create CIAPConnectProgressNotifier object
*
* Params:
* MIAPConnectStateObserver* aObserver State observer interface
* RConnection& aConnection Reference to the connection object
*
*/
static CIAPConnectProgressNotifier*
NewL(MIAPConnectStateObserver* aObserver, RConnection& aConnection);
/*
* NewLC()
*
* Create CIAPConnectProgressNotifier object and place to cleanup stack
*
* MIAPConnectStateObserver* aObserver State observer interface
* RConnection& aConnection Reference to the connection object
*
*/
static CIAPConnectProgressNotifier*
NewLC(MIAPConnectStateObserver* aObserver, RConnection& aConnection);
/*
* ~CIAPConnectProgressNotifier~()
*
* Destructor
*
*/
~CIAPConnectProgressNotifier();
/*
* SetState()
*
* Set internal State
*
* Params:
* TInt aState State to be set
*
*/
void SetState(TInt aState);
/*
* GetState()
*
* Get the internal state
*
* Returns:
* TInt Internal state
*
*/
TInt GetState() const;
protected: // from CActive
/*
* DoCancel()
*
* Cancel outstanding requests
*
*/
void DoCancel();
/*
* RunL()
*
* Handle request completion events
*
*/
void RunL();
private:
/*
* CIAPConnectProgressNotifier()
*
* Constructor
*
* Params:
* MIAPConnectStateObserver* aObserver State observer interface
* RConnection& aConnection Reference to the connection object
*
*/
CIAPConnectProgressNotifier(MIAPConnectStateObserver* aObserver,
RConnection& aConnection);
/*
* ConstructL()
*
* Second phase Constructor
*
*/
void ConstructL();
private:
// Member variables
TNifProgressBuf iProgress;
TInt iState;
RConnection& iConnection;
// Owned by CIAPConnectAppUi
MIAPConnectStateObserver* iObserver;
};
#endif // IAPCONNECT_PROGRESSNOTIFIER_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -