web_plat/cod_handler_api/inc/HttpDownloadData.h
branchRCL_3
changeset 94 919f36ff910f
parent 93 79859ed3eea9
equal deleted inserted replaced
93:79859ed3eea9 94:919f36ff910f
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  Base classes for CodData IPC
    14 * Description:  Base classes for CodData IPC
    15 *
    15 *
    16 */
    16 */
    17 
       
    18 
       
    19 
    17 
    20 #ifndef HTTPDOWNLOADDATA_H
    18 #ifndef HTTPDOWNLOADDATA_H
    21 #define HTTPDOWNLOADDATA_H
    19 #define HTTPDOWNLOADDATA_H
    22 
    20 
    23 //  INCLUDES
    21 //  INCLUDES
   222         */
   220         */
   223         inline TInt DownloadedSize() const { return iDownloadedSize; }
   221         inline TInt DownloadedSize() const { return iDownloadedSize; }
   224         
   222         
   225         /**
   223         /**
   226         * Get Destination Removable.
   224         * Get Destination Removable.
   227         * @return iDesRemovable.
   225         * @return iDesRemovableStatus.
   228         */
   226         */
   229         inline TBool DesRemovable() const { return iDesRemovable; }
   227         inline TBool DesRemovable() const { return ( KDriveAttRemovable == iDesRemovableStatus ) ? ETrue : EFalse ; }
   230         
   228         
   231         /**
   229         /**
   232         * Get Last Error Id.
   230         * Get Last Error Id.
   233         * @return iLastErrorId.
   231         * @return iLastErrorId.
   234         */
   232         */
   386         
   384         
   387         /**
   385         /**
   388         * Set destination removable attribute.
   386         * Set destination removable attribute.
   389         * @param aDesRemovable Whether removable media drive.
   387         * @param aDesRemovable Whether removable media drive.
   390         */
   388         */
   391         virtual void SetDesRemovable( TBool aDesRemovable ) = 0;
   389         virtual void SetDesRemovable( TInt32 aDesRemovable ) = 0;
   392         
   390         
   393         /**
   391         /**
   394         * Set last error id attribute.
   392         * Set last error id attribute.
   395         * @param aLastErrorId Last error ID.
   393         * @param aLastErrorId Last error ID.
   396         */
   394         */
   428         HBufC8* iRedirUrl;			///< Media Redirected-URL.
   426         HBufC8* iRedirUrl;			///< Media Redirected-URL.
   429         TInt iMethod;				///< Media Request-Method.
   427         TInt iMethod;				///< Media Request-Method.
   430         TBool iRedirected;			///< Is Redirected?
   428         TBool iRedirected;			///< Is Redirected?
   431         HBufC* iDestFilename;		///< Media Destination Filename.
   429         HBufC* iDestFilename;		///< Media Destination Filename.
   432         TInt iDownloadedSize;       ///<The media track downloaded size.Should be equal to iSize when download completed successfully
   430         TInt iDownloadedSize;       ///<The media track downloaded size.Should be equal to iSize when download completed successfully
   433         TBool iDesRemovable;		///< Is file stored on removable media?
   431         TInt32 iDesRemovableStatus; ///< Is file stored on removable media?
   434         TInt iLastErrorId;			///< THttpDownloadMgrError.
   432         TInt iLastErrorId;			///< THttpDownloadMgrError.
   435         TInt iGlobalErrorId;		///< Global Error Id.
   433         TInt iGlobalErrorId;		///< Global Error Id.
   436         TBool iPausable;			///< Is Media-Download Pausable?
   434         TBool iPausable;			///< Is Media-Download Pausable?
   437         HBufC* iTempFilename;		///< Media Temp Filename.
   435         HBufC* iTempFilename;		///< Media Temp Filename.
   438         TInt iStatusCode;
   436         TInt iStatusCode;