chxavwaitnote.h
上传用户:dangjiwu
上传日期:2013-07-19
资源大小:42019k
文件大小:2k
- /************************************************************************
- * chxavwaitnote.h
- * ---------------
- *
- * Synopsis:
- * Description:
- *
- * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
- *
- ************************************************************************/
- #ifndef _chxavwaitnote_h_
- #define _chxavwaitnote_h_
- // Symbian includes...
- #include <aknprogressdialog.h>
- // Includes from this project...
- #include "chxavutil.h"
- #include "chxavcommand.h"
- #include "chxbody.h"
- #include "chxavrefptr.h"
- #include "chxsmartptr.h"
- // foward decl
- class CAknWaitDialog;
- // class CHXAvWaitNote
- class CHXAvWaitNote
- : public MProgressDialogCallback
- , public CHXBody
- {
- public:
- // softkey text for cancel command
- enum CancelText
- {
- ctCancel,
- ctExit,
- ctClose
- };
- // ctor and dtor
- CHXAvWaitNote();
- virtual ~CHXAvWaitNote();
- private:
- // disallow assignment and copy
- CHXAvWaitNote(const CHXAvWaitNote& rhs);
- CHXAvWaitNote& operator=(const CHXAvWaitNote& rhs);
- public:
- // MProgressDialogCallback
- void DialogDismissedL(TInt bid);
- // methods
- void SetTextL(const TDesC& text);
- void SetCancelCommandL(const CHXAvCommand& userCancelCmd, TInt idSoftkey = R_AVKON_SOFTKEYS_CANCEL);
- void ClearCancelCommand();
- void StartL(bool bDelayVisibility = false);
- void EndL();
- void StartAndKickL();
- bool IsShowing() const;
- private:
- // data
- CHXAvCommandPtr m_spUserCancelCmd;
- refptr<HBufC> m_spText;
- CAknWaitDialog* m_wpWaitNote;
- TInt m_idSoftkey;
- bool m_bDismissPending;
- };
- typedef CHXSmartPtr<CHXAvWaitNote> CHXAvWaitNotePtr;
- inline
- bool CHXAvWaitNote::IsShowing() const
- {
- return m_bDismissPending;
- }
- ////////////////////////////////////////
- //
- inline
- void CHXAvWaitNote::SetTextL(const TDesC& text)
- {
- m_spText = text.AllocL();
- }
- #endif // _chxavwaitnote_h_