csxhelp/HelpEngine/src/CSXHContextTopic.cpp
branchRCL_3
changeset 17 12f60d9a73b3
parent 16 0d1adf67ec1b
child 18 cbffe13eac63
equal deleted inserted replaced
16:0d1adf67ec1b 17:12f60d9a73b3
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  CCSXHContextTopic class definition
       
    15 *
       
    16 */
       
    17 
       
    18 #include "CSXHContextTopic.h"
       
    19 #include "CSXHViewIDs.h"
       
    20 #include "csxhconstants.h"
       
    21 
       
    22 // ---------------------------------------------------------
       
    23 // Items commented in header.
       
    24 // ---------------------------------------------------------
       
    25 CCSXHContextTopic* CCSXHContextTopic::NewL(CCSXHHelpContentBase* aToc2)
       
    26     {
       
    27     CCSXHContextTopic* self = new(ELeave) CCSXHContextTopic(aToc2);
       
    28     return self;
       
    29     }
       
    30 // ---------------------------------------------------------
       
    31 // Items commented in header.
       
    32 // ---------------------------------------------------------
       
    33 CCSXHContextTopic::CCSXHContextTopic(CCSXHHelpContentBase* aToc2):
       
    34 CCSXHHelpContentBase(KEmptyString),iToc2(aToc2)
       
    35     {//No Implementation required
       
    36     }
       
    37 // ---------------------------------------------------------
       
    38 // Items commented in header.
       
    39 // ---------------------------------------------------------    
       
    40 CCSXHContextTopic::~CCSXHContextTopic()
       
    41     {
       
    42     }
       
    43 // ---------------------------------------------------------
       
    44 // Items commented in header.
       
    45 // ---------------------------------------------------------    
       
    46 TUid CCSXHContextTopic::GetViewID() const
       
    47     {
       
    48     return iToc2->GetViewID() == KCSXHHtmlTopicViewID ? 
       
    49                 KCSXHContextHtmlTopicViewID : KCSXHContextLegacyTopicViewID;
       
    50     }
       
    51 // ---------------------------------------------------------
       
    52 // Items commented in header.
       
    53 // ---------------------------------------------------------
       
    54 EXPORT_C CCSXHHelpContentBase* CCSXHContextTopic::GetTopic()
       
    55     {
       
    56     return iToc2;
       
    57     }
       
    58