480 |
486 |
481 |
487 |
482 private: |
488 private: |
483 CCSXHHtmlTOC1 *iCurrentHtmlToc1; |
489 CCSXHHtmlTOC1 *iCurrentHtmlToc1; |
484 CCSXHHTMLContentParser *iParser; |
490 CCSXHHTMLContentParser *iParser; |
485 }; |
491 }; |
|
492 |
|
493 /** |
|
494 * @class CCSXHXMLParseHandler_RedirectFile |
|
495 * This class is used retrive the data from redirect.xml file |
|
496 */ |
|
497 class CCSXHXMLParseHandler_RedirectFile : public CCSXHXMLParseHandler |
|
498 { |
|
499 public: |
|
500 /** |
|
501 * @function CCSXHXMLParseHandler_RedirectFile |
|
502 * @since S60 3.2 |
|
503 * Construct a CCSXHXMLParseHandler_RedirectFile |
|
504 * @param aCoeEnv - Control Environment |
|
505 * @param aSourceUid - source uid |
|
506 * @param aSourceContextname - source context name |
|
507 * @retrun a CCSXHXMLParseHandler_RedirectFile pointer |
|
508 */ |
|
509 static CCSXHXMLParseHandler_RedirectFile* NewL(CCoeEnv * aCoeEnv, |
|
510 const TUid &aSourceUid, const TCoeContextName &aSourceContextName); |
|
511 |
|
512 protected: |
|
513 /** |
|
514 * @function CCSXHXMLParseHandler_RedirectFile |
|
515 * @since S60 3.2 |
|
516 * Construct a CCSXHXMLParseHandler_RedirectFile |
|
517 * @param aCoeEnv - Control Environment |
|
518 * @param aSourceUid - source uid |
|
519 * @param aSourceContextname - source context name |
|
520 */ |
|
521 CCSXHXMLParseHandler_RedirectFile(CCoeEnv * aCoeEnv, |
|
522 const TUid &aSourceUid, const TCoeContextName &aSourceContextName); |
|
523 |
|
524 public: |
|
525 /** |
|
526 * @function StartElement |
|
527 * @since S60 3.2 |
|
528 * Receive notification of the beginning of an element |
|
529 * @param aURI - The Namespace URI, or the empty string |
|
530 if the element has no Namespace URI or |
|
531 if Namespace processing is not being performed. |
|
532 aLocalName - The local name (without prefix) |
|
533 aName - The qualified name |
|
534 apAttrs - The attributes attached to the element. |
|
535 If there are no attributes, it shall be |
|
536 an empty array.Namespaces declared in the current |
|
537 element will be located in the array also |
|
538 * @return KErrNone or some of the system-wide Symbian error codes |
|
539 */ |
|
540 TInt StartElement (const TDesC8 &aURI, const TDesC8 &aLocalName, |
|
541 const TDesC8 &aName, const RAttributeArray &apAttrs); |
|
542 /** |
|
543 * @function EndElement |
|
544 * @since S60 3.2 |
|
545 * Receive notification of the end of an element |
|
546 * @param aURI - The Namespace URI, or the empty string |
|
547 if the element has no Namespace URI or |
|
548 if Namespace processing is not being performed. |
|
549 aLocalName - The local name (without prefix) |
|
550 aName - The qualified name |
|
551 * @return KErrNone or some of the system-wide Symbian error codes |
|
552 */ |
|
553 TInt EndElement ( const TDesC8 &aURI,const TDesC8 &aLocalName,const TDesC8 &aName); |
|
554 /** |
|
555 * @function Characters |
|
556 * @since S60 3.2 |
|
557 * Receive notification inside an element |
|
558 * @param aBuff - The characters. |
|
559 * aStart - The start position in the character buffer. |
|
560 * aLength - The number of characters to use from the character buffer. |
|
561 * @return KErrNone or some of the system-wide Symbian error codes |
|
562 */ |
|
563 TInt Characters (const TDesC8 &aBuff, const TInt aStart, |
|
564 const TInt aLength); |
|
565 |
|
566 TBool IsTargetPathFound(); |
|
567 TUid TargetUid(); |
|
568 TBuf<KMaxFileName>& TargetContextName(); |
|
569 |
|
570 private: |
|
571 |
|
572 TCoeContextName iSourceContextName; |
|
573 TCoeContextName iFromContent; |
|
574 TBuf<KMaxFileName> iTargetPath; |
|
575 TBool iIsFromTag; |
|
576 TBool iIsToTag; |
|
577 TBool iIsSourceContextNameFound; |
|
578 TBool iIsTargetPathFound; |
|
579 TUid iTargetUid; |
|
580 TBuf<KMaxFileName> iTargetContextName; |
|
581 }; |
486 #endif |
582 #endif |