chxaveditplaylistdialog.h

来自「symbian 下的helix player源代码」· C头文件 代码 · 共 76 行

H
76
字号

/*============================================================================*
 *
 * (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__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?