WEB开发网
开发学院手机开发Symbian 开发 Symbian 等待对话框 阅读

Symbian 等待对话框

 2010-06-19 04:23:00 来源:WEB开发网   
核心提示://MyWaitDialog.h//#ifndef __MY_WAIT_DIALOG_H__#define __MY_WAIT_DIALOG_H__//#include // for MProgressDialogCallback//class CAknWaitDialog;//class MMyWaitDialogO

//MyWaitDialog.h

//////////////////////////////////////////////////////////

#ifndef __MY_WAIT_DIALOG_H__

#define __MY_WAIT_DIALOG_H__

//////////////////////////////////////////////////////////

#include // for MProgressDialogCallback

//////////////////////////////////////////////////////////

class CAknWaitDialog;

//////////////////////////////////////////////////////////

class MMyWaitDialogObserver

{

public:

virtual void HandleWaitDialogEvent(TInt aButtonId) = 0;

};

//////////////////////////////////////////////////////////

class CMyWaitDialog:public MProgressDialogCallback

{

public:

static CMyWaitDialog* NewL();

virtual ~CMyWaitDialog();

public:

void StartupWait(const TDesC& aLabel,MMyWaitDialogObserver* aObserver);

void DismissedL();

protected:

void DialogDismissedL(TInt aButtonId);

private:

CMyWaitDialog();

void ConstructL();

private:

MMyWaitDialogObserver* iObserver;

CAknWaitDialog* iWaitDialog;

};

//////////////////////////////////////////////////////////

#endif //__MY_WAIT_DIALOG_H__

//////////////////////////////////////////////////////////

//MyWaitDialog.cpp

//////////////////////////////////////////////////////////

#include

#include

#include "MyWaitDialog.h"

//////////////////////////////////////////////////////////

CMyWaitDialog* CMyWaitDialog::NewL()

{

CMyWaitDialog* self = new ( ELeave ) CMyWaitDialog();

CleanupStack::PushL( self );

1 2  下一页

Tags:Symbian 等待 对话框

编辑录入:coldstar [复制链接] [打 印]
赞助商链接