genericservices/httputils/inc/TConvBase64.h
changeset 34 5fae379060a7
parent 0 e4d67989cc36
equal deleted inserted replaced
31:ce057bb09d0b 34:5fae379060a7
    54     121,122, 48, 49, 50, 51, 52, 53, 54, 55,
    54     121,122, 48, 49, 50, 51, 52, 53, 54, 55,
    55     56, 57, 43, 47, 61 
    55     56, 57, 43, 47, 61 
    56     };
    56     };
    57     
    57     
    58 /**
    58 /**
    59 Base64 encoding and decoding class, complaint with RFC-3548.
    59 Base64 encoding and decoding class.
    60 @internalAll
    60 @internalAll
    61 @released
    61 @released
    62 */    
    62 */    
    63 class TBase64
    63 class TBase64
    64 	{
    64 	{
   100 
   100 
   101 public:
   101 public:
   102 	IMPORT_C TBase64();
   102 	IMPORT_C TBase64();
   103 	IMPORT_C TInt Encode( const TDesC8& aSrcString, TDes8& rDestString);
   103 	IMPORT_C TInt Encode( const TDesC8& aSrcString, TDes8& rDestString);
   104 	IMPORT_C TBool Decode( const TDesC8& aSrcString, TDes8& rDestString);
   104 	IMPORT_C TBool Decode( const TDesC8& aSrcString, TDes8& rDestString);
   105 
   105 	IMPORT_C TInt PortableEncode(const TDesC8& aSrcString, TDes8& aDestString, TInt aLineLength=-1);
   106 private:
   106 private:
   107 
   107 
   108 	TInt iShiftStored;
   108 	TInt iShiftStored;
   109 	TInt iMaskShiftStored;	
   109 	TInt iMaskShiftStored;	
   110 	};
   110 	};