videoeditorengine/mp3aacManipLib/AACGain/src/Tool.cpp
changeset 0 951a5db380a0
equal deleted inserted replaced
-1:000000000000 0:951a5db380a0
       
     1 /*
       
     2 * Copyright (c) 2010 Ixonos Plc.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "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 * Ixonos Plc
       
    14 *
       
    15 * Description:  
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #include "Tool.h"
       
    21 
       
    22 CLTP_Info* CLTP_Info::NewL()
       
    23     {
       
    24     
       
    25     CLTP_Info* self = new (ELeave) CLTP_Info();
       
    26     CleanupStack::PushL(self);
       
    27     self->ConstructL();
       
    28     CleanupStack::Pop(self);
       
    29     return self;    
       
    30 
       
    31     }
       
    32 
       
    33 
       
    34 CLTP_Info::~CLTP_Info()
       
    35     {
       
    36     if (delay != 0)
       
    37         delete[] delay;
       
    38     }
       
    39 
       
    40 CLTP_Info::CLTP_Info()
       
    41     {
       
    42 
       
    43     }
       
    44 
       
    45 void CLTP_Info::ConstructL()
       
    46     {
       
    47     delay = new (ELeave) int16[NSHORT];
       
    48 
       
    49     }
       
    50 
       
    51 
       
    52 
       
    53 CToolInfo* CToolInfo::NewL()
       
    54     {
       
    55 
       
    56     CToolInfo* self = new (ELeave) CToolInfo();
       
    57     CleanupStack::PushL(self);
       
    58     self->ConstructL();
       
    59     CleanupStack::Pop(self);
       
    60     return self;
       
    61 
       
    62     }
       
    63 
       
    64 void CToolInfo::ConstructL()
       
    65     {
       
    66     quant = new (ELeave) int16[LN2];
       
    67     ltp = CLTP_Info::NewL();
       
    68 
       
    69     }
       
    70 
       
    71 CToolInfo::CToolInfo()
       
    72     {
       
    73 
       
    74     }
       
    75 
       
    76 CToolInfo::~CToolInfo()
       
    77     {
       
    78 
       
    79     if (quant != 0)
       
    80         {
       
    81         delete [] quant;
       
    82         }
       
    83 
       
    84     if (ltp != 0)
       
    85         delete ltp;
       
    86 
       
    87     }
       
    88 
       
    89 
       
    90 CCInfo* CCInfo::NewL()
       
    91     {
       
    92     CCInfo* self = new (ELeave) CCInfo();
       
    93     CleanupStack::PushL(self);
       
    94     self->ConstructL();
       
    95     CleanupStack::Pop(self);
       
    96     return self;
       
    97 
       
    98 
       
    99     }
       
   100 
       
   101 CCInfo::CCInfo()
       
   102     {
       
   103 
       
   104     }
       
   105 
       
   106 CCInfo::~CCInfo()
       
   107     {
       
   108     if (tool != 0) delete tool;
       
   109     if (winInfo != 0) delete winInfo;
       
   110     }
       
   111 
       
   112 void CCInfo::ConstructL()
       
   113     {
       
   114 
       
   115     tool = CToolInfo::NewL();
       
   116     winInfo = CWindowInfo::NewL();
       
   117     }
       
   118 
       
   119 
       
   120