apengine/apsettingshandlerui/src/apsettingsui.cpp
changeset 66 ed07dcc72692
parent 0 5a93021fdf25
equal deleted inserted replaced
64:84c6623982f6 66:ed07dcc72692
    45                                         TInt aSortType,
    45                                         TInt aSortType,
    46                                         TInt aReqIpvType,
    46                                         TInt aReqIpvType,
    47                                         TVpnFilterType aVpnFilterType
    47                                         TVpnFilterType aVpnFilterType
    48                                             )
    48                                             )
    49     {
    49     {
    50     APSETUILOGGER_CREATE;
    50     return NULL;
    51     APSETUILOGGER_ENTERFN( EAPI,"SettingsUi::NewLC")
       
    52 
       
    53     CApSettingsUi* db = 
       
    54         new( ELeave ) CApSettingsUi( aStartWithSelection,
       
    55                                           aListType,
       
    56                                           aSelMenuType,
       
    57                                           aReqIpvType
       
    58                                           );
       
    59     CleanupStack::PushL( db );
       
    60     
       
    61 
       
    62     db->ConstructL( aIspFilter, aBearerFilter, 
       
    63                     aSortType, aVpnFilterType );
       
    64     APSETUILOGGER_LEAVEFN( EAPI,"SettingsUi::NewLC")    
       
    65     return db;
       
    66     }
    51     }
    67 
    52 
    68 
    53 
    69 
    54 
    70 // Destructor
    55 // Destructor
    71 EXPORT_C CApSettingsUi::~CApSettingsUi()
    56 EXPORT_C CApSettingsUi::~CApSettingsUi()
    72     {
    57     {
    73     APSETUILOGGER_DELETE;
       
    74 
       
    75     delete iImpl;    
       
    76     }
    58     }
    77 
    59 
    78 
    60 
    79 
    61 
    80 
    62 
   100                                          TInt aBearerFilter,
    82                                          TInt aBearerFilter,
   101                                          TInt aSortType,
    83                                          TInt aSortType,
   102                                          TVpnFilterType aVpnFilterType
    84                                          TVpnFilterType aVpnFilterType
   103                                         )
    85                                         )
   104     {
    86     {
   105     APSETUILOGGER_ENTERFN( EAPI,"SettingsUi::ConstructL");
       
   106 
       
   107     // must place it to a temp variable, otherwise CodeScanner reports 
       
   108     // it as a bad practice putting up member to Cleanupstack, but 
       
   109     // we have NO NewL so we must use this.
       
   110     CApSettingsHandlerImpl* tmp = CApSettingsHandlerImpl::NewLC( 
       
   111                                      iStartWithSelection,
       
   112                                      iListType, iSelMenuType,
       
   113                                      aIspFilter, aBearerFilter, 
       
   114                                      aSortType, iReqIpvType,
       
   115                                      aVpnFilterType,
       
   116                                      EFalse );
       
   117                                      
       
   118     CleanupStack::Pop( tmp );   // soon will be a member, need to pop
       
   119     iImpl = tmp;
       
   120     
       
   121     APSETUILOGGER_LEAVEFN( EAPI,"SettingsUi::ConstructL")    
       
   122     }
    87     }
   123 
    88 
   124 
    89 
   125 
    90 
   126 // ---------------------------------------------------------
    91 // ---------------------------------------------------------
   128 // ---------------------------------------------------------
    93 // ---------------------------------------------------------
   129 //
    94 //
   130 EXPORT_C TInt CApSettingsUi::RunSettingsL( TUint32 aHighLight,
    95 EXPORT_C TInt CApSettingsUi::RunSettingsL( TUint32 aHighLight,
   131                                                 TUint32& aSelected )
    96                                                 TUint32& aSelected )
   132     {
    97     {
   133     APSETUILOGGER_ENTERFN( EAPI,"SettingsUi::RunSettingsL")
    98     return 0;
   134     __ASSERT_DEBUG( iImpl, Panic( ENullPointer ) );
       
   135 
       
   136     iImpl->RunSettingsL( aHighLight, aSelected );
       
   137     
       
   138     APSETUILOGGER_LEAVEFN( EAPI,"SettingsUi::RunSettingsL")
       
   139     
       
   140     return iImpl->EventStore();
       
   141     }
    99     }
   142 
   100 
   143 
   101 
   144 
   102 
   145 // End of File
   103 // End of File