wavegen_view.h

来自「symbian学习音乐播放的源代码」· C头文件 代码 · 共 79 行

H
79
字号
//
// wavegen_view.h
//
// Copyright (C) 2002 Nokia Corporation. All rights reserved.
//
/////////////////////////////////////////////////////////////////////////////

#ifndef WAVEGENVIEW_H
#define WAVEGENVIEW_H

// INCLUDES
#include <aknview.h>
#include "wavegen.hrh"

// CONSTANTS

// FORWARD DECLARATIONS
class CWaveGenListbox;
class CStreamAudioEngine;

//
// CWaveGenView class declaration
//
class CWaveGenView : public CAknView
    {
public:
    // standard Epoc NewL constructor
    static CWaveGenView* NewL(CStreamAudioEngine* aEng, TPlaybackMode aMode);
    static CWaveGenView* NewLC(CStreamAudioEngine* aEng, TPlaybackMode aMode);
    // Destructor
    virtual ~CWaveGenView();            

public: // From CAknView
    
    // Returns id of view    
    TUid Id() const;

    // Menu command handler    
    void HandleCommandL(TInt aCommand);    

private: // New functions
    
    // private Constructor
    CWaveGenView(CStreamAudioEngine* aEng, TPlaybackMode aMode);
    
    // private 2nd phase constructor
    void ConstructL();

    // Sets text on title pane by ID of resource.        
    void SetTitlePaneTextL(const TInt aResourceId);
        
    // Creates and activates a new listbox from a specified resource        
    void CreateListBoxL(TInt aResourceId);

    void DeleteListBox();

    void ActivateGeneratorViewL();
    
    void ActivatePlayerViewL();

private: // From CAknView
               
    void DoActivateL(const TVwsViewId& aPrevViewId,
                     TUid aCustomMessageId,
                     const TDesC8& aCustomMessage );
        
    void DoDeactivate();

private: // Data

    CStreamAudioEngine*         iEng;       // not owned
    CWaveGenListbox*            iListBox;
    TPlaybackMode               iMode;
    };

#endif  // WAVEGENVIEW_H

// eof

⌨️ 快捷键说明

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