csxhelp/HelpEngine/src/CSXHHtmlTOC1.cpp
branchRCL_3
changeset 5 d06b1526f62c
parent 0 1f04cf54edd8
child 32 b69cc3efe785
equal deleted inserted replaced
1:27f5851bd5a5 5:d06b1526f62c
    34 const TInt KBufSize = 35;
    34 const TInt KBufSize = 35;
    35 
    35 
    36 // ---------------------------------------------------------
    36 // ---------------------------------------------------------
    37 // Items commented in header.
    37 // Items commented in header.
    38 // ---------------------------------------------------------
    38 // ---------------------------------------------------------
    39 CCSXHHtmlTOC1* CCSXHHtmlTOC1::NewL(const TDesC& aName, const TDesC& aFolder,const TInt& aDrive)
    39 CCSXHHtmlTOC1* CCSXHHtmlTOC1::NewL(const TDesC& aName, const TDesC& aFolder,const TInt& aDrive, TUid aViewId, TInt32 aPriority)
    40     {
    40     {
    41     CCSXHHtmlTOC1* self = new(ELeave) CCSXHHtmlTOC1(aName,aFolder,aDrive);
    41     CCSXHHtmlTOC1* self = new(ELeave) CCSXHHtmlTOC1(aName,aFolder,aDrive, aViewId, aPriority);
    42     if(self->IsValid())
    42     if(self->IsValid())
    43     	return self;	
    43     	return self;	
    44     delete self;
    44     delete self;
    45     return NULL;
    45     return NULL;
    46     }
    46     }
    47 
    47 
    48 // ---------------------------------------------------------
    48 // ---------------------------------------------------------
    49 // Items commented in header.
    49 // Items commented in header.
    50 // ---------------------------------------------------------
    50 // ---------------------------------------------------------
    51 CCSXHHtmlTOC1::CCSXHHtmlTOC1(const TDesC& aName, const TDesC& aFolder,const TInt& aDrive):
    51 CCSXHHtmlTOC1::CCSXHHtmlTOC1(const TDesC& aName, const TDesC& aFolder,const TInt& aDrive, TUid aViewId, TInt32 aPriority):
    52                     CCSXHGenericTOC1(aName),iAppUid(aFolder),iDrive(aDrive)
    52                     CCSXHGenericTOC1(aName, aPriority), iAppUid(aFolder), iDrive(aDrive), iViewId(aViewId)
    53     {//No implementation required
    53     {//No implementation required
    54     }
    54     }
    55 
    55 
    56 // ---------------------------------------------------------
    56 // ---------------------------------------------------------
    57 // Items commented in header.
    57 // Items commented in header.
    63 // ---------------------------------------------------------
    63 // ---------------------------------------------------------
    64 // Items commented in header.
    64 // Items commented in header.
    65 // ---------------------------------------------------------
    65 // ---------------------------------------------------------
    66 TUid CCSXHHtmlTOC1::GetViewID() const
    66 TUid CCSXHHtmlTOC1::GetViewID() const
    67     {
    67     {
    68     return KCSXHToc2ViewID;
    68     return iViewId;
    69     }
    69     }
    70     
    70     
    71 // ---------------------------------------------------------
    71 // ---------------------------------------------------------
    72 // Items commented in header.
    72 // Items commented in header.
    73 // ---------------------------------------------------------
    73 // ---------------------------------------------------------