mmsharing/mmshengine/inc/musenguriparser.h
branchRCL_3
changeset 33 bc78a40cd63c
parent 32 73a1feb507fb
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
    52     public:
    52     public:
    53      
    53      
    54 		/**
    54 		/**
    55 		* Default constructor
    55 		* Default constructor
    56 		*/
    56 		*/
    57      	TMusEngUriParser( const TDesC16& aUri );
    57      	IMPORT_C TMusEngUriParser( const TDesC16& aUri );
    58      	
    58      	
    59      	/**
    59      	/**
    60 		* @returns Uri type
    60 		* @returns Uri type
    61 		*/
    61 		*/
    62      	TMusEngUriType UriType();
    62      	IMPORT_C TMusEngUriType UriType();
    63 
    63 
    64 		/**
    64 		/**
    65 		* @returns Parsed and validated 8-bit version of contained URI
    65 		* @returns Parsed and validated 8-bit version of contained URI
    66 		*          Ownership is transferred
    66 		*          Ownership is transferred
    67 		* @pre UriType() != ENotParsed
    67 		* @pre UriType() != ENotParsed
    68 		* @leave KErrNotReady if precondition is not fulfilled
    68 		* @leave KErrNotReady if precondition is not fulfilled
    69 		*/
    69 		*/
    70      	HBufC8* GetUri8L();
    70      	IMPORT_C HBufC8* GetUri8L();
    71      	
    71      	
    72      	/**
    72      	/**
    73      	* @param aPrefix if ETrue, also sip: or tel:prefix is returned
    73      	* @param aPrefix if ETrue, also sip: or tel:prefix is returned
    74 		* @returns Parsed and validated 16-bit version of contained URI
    74 		* @returns Parsed and validated 16-bit version of contained URI
    75 		*          Ownership is transferred
    75 		*          Ownership is transferred
    76 		* @pre UriType() != ENotParsed
    76 		* @pre UriType() != ENotParsed
    77 		* @leave KErrNotReady if precondition is not fulfilled
    77 		* @leave KErrNotReady if precondition is not fulfilled
    78 		*/
    78 		*/
    79      	HBufC16* GetUri16L( TBool aPrefix );
    79      	IMPORT_C HBufC16* GetUri16L( TBool aPrefix );
    80      
    80      
    81      	/**
    81      	/**
    82         * Parses and validates contained URI
    82         * Parses and validates contained URI
    83         * @leave KErrCorrupt if URI is not valid SIP or TEL URI
    83         * @leave KErrCorrupt if URI is not valid SIP or TEL URI
    84         * @post UriType() != ENotParsed
    84         * @post UriType() != ENotParsed
    85         */
    85         */
    86         void ParseUriL();
    86         IMPORT_C void ParseUriL();
    87         
    87         
    88      	
    88      	
    89     private:
    89     private:
    90 
    90 
    91         void HandleSipUriL();
    91         void HandleSipUriL();
    92         void HandleTelUriL();
    92         void HandleTelUriL();
    93         void HandleLocalTelUriL();
    93         void HandleLocalTelUriL();
    94         
    94         
    95     private: // Data
    95     
       
    96 		TBuf8<KMaxUriLength> iUri;
       
    97 
       
    98         TMusEngUriType iUriType;
    96         
    99         
    97 		TBuf8<KMaxUriLength> iUri;
       
    98         TMusEngUriType iUriType; 
       
    99     };
   100     };
   100 
   101 
   101 #endif // MUSENGURIPARSER_H
   102 #endif