emailservices/emailframework/src/CFSMailBrand.cpp
changeset 20 ecc8def7944a
parent 18 578830873419
child 30 759dc5235cdb
equal deleted inserted replaced
18:578830873419 20:ecc8def7944a
    13 *
    13 *
    14 * Description: This file implements class CFSMailBrand.
    14 * Description: This file implements class CFSMailBrand.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 //<qmail>
    19 #include <nmcommonheaders.h>
    19 #include <nmcommonheaders.h>
       
    20 //</qmail>
       
    21 
    20 #include "emailtrace.h"
    22 #include "emailtrace.h"
    21 #include <barsread.h>
    23 #include <barsread.h>
       
    24 //<qmail> Commented out in Qmail
       
    25 //#include <AknIconUtils.h>
       
    26 //</qmail>
    22 #include <gulicon.h>
    27 #include <gulicon.h>
    23 #include <centralrepository.h>
    28 #include <centralrepository.h>
    24 //<cmail>
    29 //<cmail>
       
    30 //<qmail> Commented out in Qmail
    25 //#include "freestyleemailcenrepkeys.h"
    31 //#include "freestyleemailcenrepkeys.h"
       
    32 //</qmail>
    26 //</cmail>
    33 //</cmail>
    27 
    34 
    28 #include "CFSMailBrand.h"
    35 #include "CFSMailBrand.h"
    29 
    36 
    30 const TInt KElementArrayGranularity = 5;
    37 const TInt KElementArrayGranularity = 5;
       
    38 //<qmail> Commented out in Qmail
       
    39 //const TInt KMaxStringLenFromCenrep = 256;
       
    40 //</qmail>
    31 const TInt KMaxDesLen = 256;
    41 const TInt KMaxDesLen = 256;
    32 _LIT(KSpace, " ");
    42 _LIT(KSpace, " ");
    33 // -----------------------------------------------------------------------------
    43 // -----------------------------------------------------------------------------
    34 // CFSMailBrand::NewL
    44 // CFSMailBrand::NewL
    35 // -----------------------------------------------------------------------------
    45 // -----------------------------------------------------------------------------
    64 // -----------------------------------------------------------------------------
    74 // -----------------------------------------------------------------------------
    65 // CFSMailBrand::ConstructFromCenrepL
    75 // CFSMailBrand::ConstructFromCenrepL
    66 // -----------------------------------------------------------------------------
    76 // -----------------------------------------------------------------------------
    67 void CFSMailBrand::ConstructFromCenrepL( )
    77 void CFSMailBrand::ConstructFromCenrepL( )
    68     {
    78     {
    69     /*
       
    70     FUNC_LOG;
    79     FUNC_LOG;
    71     
    80     
       
    81 	/*
    72     TBuf<KMaxStringLenFromCenrep> tBuf; // Temporary buffer
    82     TBuf<KMaxStringLenFromCenrep> tBuf; // Temporary buffer
    73     HBufC*    mailboxName;
    83     HBufC*    mailboxName;
    74 
    84 
    75     iGraphicElements = new ( ELeave )
    85     iGraphicElements = new ( ELeave )
    76         CArrayFixSeg< TBrandedGraphic >( KElementArrayGranularity );
    86         CArrayFixSeg< TBrandedGraphic >( KElementArrayGranularity );
   124             iTextElements->AppendL( newMailboxNameElement );
   134             iTextElements->AppendL( newMailboxNameElement );
   125             }
   135             }
   126         CleanupStack::PopAndDestroy( mailboxName );
   136         CleanupStack::PopAndDestroy( mailboxName );
   127         CleanupStack::PopAndDestroy( repository );
   137         CleanupStack::PopAndDestroy( repository );
   128         }
   138         }
   129         */
   139 		*/
   130    }
   140    }
   131 
   141 
   132 // -----------------------------------------------------------------------------
   142 // -----------------------------------------------------------------------------
   133 // CFSMailBrand::ConstructFromResourceL
   143 // CFSMailBrand::ConstructFromResourceL
   134 // -----------------------------------------------------------------------------
   144 // -----------------------------------------------------------------------------
   302             TFileName dllFileName;
   312             TFileName dllFileName;
   303             Dll::FileName( dllFileName );
   313             Dll::FileName( dllFileName );
   304 		 	TParse parse;
   314 		 	TParse parse;
   305 		    User::LeaveIfError( parse.Set( *iIconFilePath, &dllFileName, NULL) );
   315 		    User::LeaveIfError( parse.Set( *iIconFilePath, &dllFileName, NULL) );
   306 		    TFileName iconFileName( parse.FullName() );
   316 		    TFileName iconFileName( parse.FullName() );
   307                 
   317              
       
   318 //<qmail>
   308             // Get icon and mask with above info
   319             // Get icon and mask with above info
   309 		    
   320             /*AknIconUtils::CreateIconLC( icon,
       
   321                                         mask,
       
   322                                         iconFileName,
       
   323                                         element.iIconId,
       
   324                                         element.iMaskId );*/
       
   325 //</qmail>
   310             CGulIcon* gulIcon = CGulIcon::NewL( icon, mask );
   326             CGulIcon* gulIcon = CGulIcon::NewL( icon, mask );
   311 
   327 
   312             CleanupStack::Pop( 2 ); // icon, mask
   328             CleanupStack::Pop( 2 ); // icon, mask
   313             
   329             
   314             return gulIcon;
   330             return gulIcon;