⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testgnhttpdownappui.h

📁 SYMIBNA 支持大型文件断点续传的引擎源代码
💻 H
字号:
/*
 ============================================================================
 Name        : TestGnHttpDownAppUi.h
 Author      : 
 Copyright   : Your copyright notice
 Description : Declares UI class for application.
 ============================================================================
 */

#ifndef __TESTGNHTTPDOWNAPPUI_h__
#define __TESTGNHTTPDOWNAPPUI_h__

// INCLUDES
#include <aknappui.h>
#include <f32file.h>


#include <GnHttpDown.h>



// FORWARD DECLARATIONS
class CTestGnHttpDownAppView;


// CLASS DECLARATION
/**
 * CTestGnHttpDownAppUi application UI class.
 * Interacts with the user through the UI and request message processing
 * from the handler class
 */
class CTestGnHttpDownAppUi : public CAknAppUi, public MGnHTTPTransactionCallback
    {
public:
    // Constructors and destructor

    /**
     * ConstructL.
     * 2nd phase constructor.
     */
    void ConstructL();

    /**
     * CTestGnHttpDownAppUi.
     * C++ default constructor. This needs to be public due to
     * the way the framework constructs the AppUi
     */
    CTestGnHttpDownAppUi();

    /**
     * ~CTestGnHttpDownAppUi.
     * Virtual Destructor.
     */
    virtual ~CTestGnHttpDownAppUi();

    virtual TBool ShouldUpdateTheResumeRecL(const TDesC8 & aData, CGnHttpDown * aGnHttpDown);
    virtual void MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent& aEvent, const TDesC8 & aDataBlock, CGnHttpDown * aGnHttpDown);
    virtual TInt MHFRunError(TInt aError, RHTTPTransaction aTransaction, const THTTPEvent& aEvent, CGnHttpDown * aGnHttpDown);//{return KErrNone;}
    
private:
    // Functions from base classes

    /**
     * From CEikAppUi, HandleCommandL.
     * Takes care of command handling.
     * @param aCommand Command to be handled.
     */
    void HandleCommandL(TInt aCommand);

    /**
     *  HandleStatusPaneSizeChange.
     *  Called by the framework when the application status pane
     *  size is changed.
     */
    void HandleStatusPaneSizeChange();

    /**
     *  From CCoeAppUi, HelpContextL.
     *  Provides help context for the application.
     *  size is changed.
     */
    CArrayFix<TCoeHelpContext>* HelpContextL() const;

private:
    // Data

    /**
     * The application view
     * Owned by CTestGnHttpDownAppUi
     */
    CTestGnHttpDownAppView* iAppView;
    //TBuf<255>   iUri;
    RFile       iRFile;
    RFs         iRFs;
    TUint32     iDownSizePreTime;
    TUint32     iPosition;
    
    CGnHttpDown * iHttpDown;
    

    };

#endif // __TESTGNHTTPDOWNAPPUI_h__
// End of File

⌨️ 快捷键说明

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