chxaveditplaylistdialog.h
上传用户:dangjiwu
上传日期:2013-07-19
资源大小:42019k
文件大小:2k
源码类别:
Symbian
开发平台:
Visual C++
- /*============================================================================*
- *
- * (c) 1995-2002 RealNetworks, Inc. Patents pending. All rights reserved.
- *
- *============================================================================*/
- #if !defined(AV_EDIT_PLAYLIST_DIALOG_INCLUDED__)
- #define AV_EDIT_PLAYLIST_DIALOG_INCLUDED__
- #include <aknform.h>
- #include "chxavrefptr.h"
- #include "chxavplaylist.h"
- #include "chxavramparser.h"
- // class CHXAvEditPlaylistDialog
- class CHXAvEditPlaylistDialog : public CAknForm
- {
- public:
- CHXAvEditPlaylistDialog();
- ~CHXAvEditPlaylistDialog();
- TInt SetPlaylistL(const TDesC& playListPath);
- protected:
- typedef bool (CHXAvEditPlaylistDialog::* PMFNForEach)(TInt, CEikEdwin*);
- // implementation
- void InsertItemL(const TDesC& caption, const TDesC& text, TInt idxPos = -1);
- void PopulateL();
- bool VerifyFormL();
- void CreateRestoreListL();
- bool ForEachEdwinL(PMFNForEach pfn);
- bool AppendRestoreListL(TInt idx, CEikEdwin* pEdwin);
- bool RestoreItemL(TInt idx, CEikEdwin* pEdwin);
- bool VerifyUrlL(TInt /*idx*/, CEikEdwin* pEdwin);
- bool WriteUrlL(TInt /*idx*/, CEikEdwin* pEdwin);
- void DoRestorePreDialogStateL();
- // CEikDialog
- void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
- void PreLayoutDynInitL();
- TKeyResponse OfferKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType);
- TBool OkToExitL(TInt aButtonId);
- void ProcessCommandL (TInt id);
- // CCoeControl
- void GetHelpContext(TCoeHelpContext& aContext) const;
- // CAknForm
- TBool SaveFormDataL();
- void DoNotSaveFormDataL();
- TBool QuerySaveChangesL();
- void DeleteCurrentItemL();
- void EditCurrentLabelL();
- void AddItemL();
- void PrepareForFocusTransitionL();
- private:
- CHXAvPlaylistPtr m_spPlaylist;
- TInt m_idNextItem;
- CEikCaptionedControl* m_pLastLineAdded;
- refptr<CDesCArrayFlat> m_spRestoreList;
- bool m_bInEditMode;
- bool m_bListAlteredFromPreDialogState;
- RFile m_file;
- };
- #endif // AV_EDIT_PLAYLIST_DIALOG_INCLUDED__