Msrp/MsrpHeader/inc/CMsrpMessage.h
branchMSRP_FrameWork
changeset 58 cdb720e67852
parent 25 505ad3f0ce5c
equal deleted inserted replaced
25:505ad3f0ce5c 58:cdb720e67852
    87 		 /**
    87 		 /**
    88 		 * Gets the FileName for a FileSession
    88 		 * Gets the FileName for a FileSession
    89 		 */
    89 		 */
    90 		IMPORT_C TFileName& GetFileName( );
    90 		IMPORT_C TFileName& GetFileName( );
    91 		        
    91 		        
    92 		/* Set File Size */
       
    93 		IMPORT_C void SetFileSize( const TInt aFileSize );
       
    94 		
       
    95 		/* Get File Size */
       
    96 		IMPORT_C TInt GetFileSize();
       
    97 		
       
    98 		/* Set Granularity for file transfer */
       
    99 		        
       
   100 		IMPORT_C void SetNotifyProgress(TBool aNotify);
       
   101 		        
       
   102 		/* Get Granularity for file transfer */
       
   103         IMPORT_C TBool GetNotifyProgress();        
       
   104 		        		
       
   105 		/**
    92 		/**
   106 		* Internalizes the class from given stream
    93 		* Internalizes the class from given stream
   107  		* @param aReadStream a stream containing the value of the
    94  		* @param aReadStream a stream containing the value of the
   108 		*        externalized object
    95 		*        externalized object
   109 		* @return Internalized CMSRPMessage object, ownership is transferred
    96 		* @return Internalized CMSRPMessage object, ownership is transferred
   121         * Internalizes this message
   108         * Internalizes this message
   122  		* @param aReadStream a stream containing the value of the
   109  		* @param aReadStream a stream containing the value of the
   123 		*        externalized object (header name not included).
   110 		*        externalized object (header name not included).
   124         */
   111         */
   125 	    void DoInternalizeL( RReadStream& aReadStream  );
   112 	    void DoInternalizeL( RReadStream& aReadStream  );
       
   113 	    
       
   114         /**
       
   115         * Converts the buffer to file
       
   116         */
       
   117         void ConvertBufferToFileL( );
   126         
   118         
   127     private: // Data
   119     private: // Data
   128 
   120 
   129 		// content buffer
   121 		// content buffer
   130 		HBufC8* iContentBuffer;
   122 		HBufC8* iContentBuffer;
   131 
   123 
   132 	   // filename
   124 	   // filename
   133 	   TFileName iFileName;
   125 	   TFileName iFileName;
   134 	   
       
   135 	   //filesize
       
   136 	   TInt iFileSize;
       
   137 	   
       
   138 	   //Granularity of the file
       
   139 	   TBool iNotifyProgress;
       
   140 	};
   126 	};
   141 
   127 
   142 #endif // CMSRPMESSAGE_H
   128 #endif // CMSRPMESSAGE_H
   143 
   129 
   144 // End of File
   130 // End of File