contacts_pub/speed_dial_utility_control_api/tsrc/bc/src/BCTestSpeedDialBlocks.cpp
changeset 0 e686773b3f54
child 68 9da50d567e3c
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2002-2009 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:        ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 // [INCLUDE FILES] - do not remove
       
    27 #include <e32svr.h>
       
    28 #include <StifParser.h>
       
    29 #include <Stiftestinterface.h>
       
    30 #include "BCTestSpeedDial.h"
       
    31 
       
    32 #include <spdiacontrol.h>
       
    33 #include <cpbkcontactengine.h> 
       
    34 #include <f32file.h>
       
    35 // EXTERNAL DATA STRUCTURES
       
    36 //extern  ?external_data;
       
    37 
       
    38 // EXTERNAL FUNCTION PROTOTYPES  
       
    39 //extern ?external_function( ?arg_type,?arg_type );
       
    40 
       
    41 // CONSTANTS
       
    42 //const ?type ?constant_var = ?constant;
       
    43 
       
    44 // MACROS
       
    45 //#define ?macro ?macro_def
       
    46 
       
    47 // LOCAL CONSTANTS AND MACROS
       
    48 //const ?type ?constant_var = ?constant;
       
    49 //#define ?macro_name ?macro_def
       
    50 
       
    51 // MODULE DATA STRUCTURES
       
    52 //enum ?declaration
       
    53 //typedef ?declaration
       
    54 
       
    55 // LOCAL FUNCTION PROTOTYPES
       
    56 //?type ?function_name( ?arg_type, ?arg_type );
       
    57 
       
    58 // FORWARD DECLARATIONS
       
    59 //class ?FORWARD_CLASSNAME;
       
    60 
       
    61 // ============================= LOCAL FUNCTIONS ===============================
       
    62 
       
    63 // -----------------------------------------------------------------------------
       
    64 // ?function_name ?description.
       
    65 // ?description
       
    66 // Returns: ?value_1: ?description
       
    67 //          ?value_n: ?description_line1
       
    68 //                    ?description_line2
       
    69 // -----------------------------------------------------------------------------
       
    70 //
       
    71 /*
       
    72 ?type ?function_name(
       
    73     ?arg_type arg,  // ?description
       
    74     ?arg_type arg)  // ?description
       
    75     {
       
    76 
       
    77     ?code  // ?comment
       
    78 
       
    79     // ?comment
       
    80     ?code
       
    81     }
       
    82 */
       
    83 
       
    84 // ============================ MEMBER FUNCTIONS ===============================
       
    85 
       
    86 // -----------------------------------------------------------------------------
       
    87 // CBCTestSpeedDial::Delete
       
    88 // Delete here all resources allocated and opened from test methods. 
       
    89 // Called from destructor. 
       
    90 // -----------------------------------------------------------------------------
       
    91 //
       
    92 void CBCTestSpeedDial::Delete() 
       
    93     {
       
    94 
       
    95     }
       
    96 
       
    97 // -----------------------------------------------------------------------------
       
    98 // CBCTestSpeedDial::RunMethodL
       
    99 // Run specified method. Contains also table of test mothods and their names.
       
   100 // -----------------------------------------------------------------------------
       
   101 //
       
   102 TInt CBCTestSpeedDial::RunMethodL( 
       
   103     CStifItemParser& aItem ) 
       
   104     {
       
   105 
       
   106     static TStifFunctionInfo const KFunctions[] =
       
   107         {  
       
   108         // Copy this line for every implemented function.
       
   109         // First string is the function name used in TestScripter script file.
       
   110         // Second is the actual implementation member function. 
       
   111         //ENTRY( "ExampleForTestSpdialL", CBCTestSpeedDial::ExampleForTestSpdialL ),
       
   112         ENTRY( "TestNewL", CBCTestSpeedDial::TestNewLL ),
       
   113         ENTRY( "TestNewL2", CBCTestSpeedDial::TestNewL2L ),
       
   114         ENTRY( "TestAssignDialNumberL", CBCTestSpeedDial::TestAssignDialNumberLL ),
       
   115         ENTRY( "TestExecuteLD", CBCTestSpeedDial::TestExecuteLDL ),
       
   116         ENTRY( "TestDialNumberL", CBCTestSpeedDial::TestDialNumberLL ),
       
   117         ENTRY( "TestVoiceMailL", CBCTestSpeedDial::TestVoiceMailLL ),
       
   118         ENTRY( "TestPbkEngine", CBCTestSpeedDial::TestPbkEngineL ),
       
   119         ENTRY( "TestIndex", CBCTestSpeedDial::TestIndexL ),
       
   120         ENTRY( "TestNumber", CBCTestSpeedDial::TestNumberL ),
       
   121         ENTRY( "TestContactId", CBCTestSpeedDial::TestContactIdL ),
       
   122         ENTRY( "TestPhoneDialNumber", CBCTestSpeedDial::TestPhoneDialNumberL ),
       
   123         ENTRY( "TestPhoneNumber", CBCTestSpeedDial::TestPhoneNumberL ),
       
   124         ENTRY( "TestThumbIndex", CBCTestSpeedDial::TestThumbIndexL ),
       
   125         ENTRY( "TestIconIndex", CBCTestSpeedDial::TestIconIndexL ),
       
   126         ENTRY( "TestNumberType", CBCTestSpeedDial::TestNumberTypeL ),
       
   127         ENTRY( "TestIconArray", CBCTestSpeedDial::TestIconArrayL ),
       
   128         ENTRY( "TestCheckingIfPopUpNeeded", CBCTestSpeedDial::TestCheckingIfPopUpNeededL ),
       
   129         ENTRY( "TestRemoveDialIndexL", CBCTestSpeedDial::TestRemoveDialIndexLL ),
       
   130         ENTRY( "TestVMBoxPosition", CBCTestSpeedDial::TestVMBoxPositionL ),
       
   131         ENTRY( "TestSpdIconIndex", CBCTestSpeedDial::TestSpdIconIndexL ),
       
   132         ENTRY( "TestDeleteIconArray", CBCTestSpeedDial::TestDeleteIconArrayL ),
       
   133         ENTRY( "TestReloadIconArray", CBCTestSpeedDial::TestReloadIconArrayL ),
       
   134         ENTRY( "TestVoiceMailType", CBCTestSpeedDial::TestVoiceMailTypeL ),
       
   135         ENTRY( "TestGetSpdCtrlLastError", CBCTestSpeedDial::TestGetSpdCtrlLastErrorL )
       
   136         //ADD NEW ENTRY HERE
       
   137         // [test cases entries] - Do not remove
       
   138 
       
   139         };
       
   140 
       
   141     const TInt count = sizeof( KFunctions ) / 
       
   142                         sizeof( TStifFunctionInfo );
       
   143 
       
   144     return RunInternalL( KFunctions, count, aItem );
       
   145 
       
   146     }
       
   147 
       
   148 // -----------------------------------------------------------------------------
       
   149 // CBCTestSpeedDial::ExampleL
       
   150 // Example test method function.
       
   151 // (other items were commented in a header).
       
   152 // -----------------------------------------------------------------------------
       
   153 //
       
   154 TInt CBCTestSpeedDial::ExampleForTestSpdialL( CStifItemParser& aItem )
       
   155     {
       
   156 
       
   157     // Print to UI
       
   158     _LIT( KBCTestSpeedDial, "BCTestSpeedDial" );
       
   159     _LIT( KExample, "In Example" );
       
   160     TestModuleIf().Printf( 0, KBCTestSpeedDial, KExample );
       
   161     // Print to log file
       
   162     iLog->Log( KExample );
       
   163 
       
   164     TInt i = 0;
       
   165     TPtrC string;
       
   166     _LIT( KParam, "Param[%i]: %S" );
       
   167     while ( aItem.GetNextString ( string ) == KErrNone )
       
   168         {
       
   169         TestModuleIf().Printf( i, KBCTestSpeedDial, 
       
   170                                 KParam, i, &string );
       
   171         i++;
       
   172         }
       
   173 
       
   174     return KErrNone;
       
   175 
       
   176     }
       
   177 
       
   178 
       
   179 TInt CBCTestSpeedDial::TestNewLL( CStifItemParser& aItem )
       
   180     {
       
   181     
       
   182     // Print to UI
       
   183     _LIT( KBCConnSettingsUITest, "BCTestSpeedDial" );
       
   184     _LIT( KNew, "In NewL" );
       
   185     TestModuleIf().Printf( 0, KBCConnSettingsUITest, KNew );
       
   186 
       
   187     // Print to log file
       
   188     iLog->Log( KNew );
       
   189 
       
   190     TInt err = KErrNone;
       
   191     CSpdiaControl* spd = NULL;
       
   192     TRAP( err, spd =  CSpdiaControl::NewL() );
       
   193     delete spd;
       
   194     
       
   195     return err;
       
   196     }
       
   197 
       
   198 TInt CBCTestSpeedDial::TestNewL2L( CStifItemParser& aItem )
       
   199     {
       
   200     CPbkContactEngine* pbk = CPbkContactEngine::NewL( &iSession );    
       
   201     
       
   202     TInt err = KErrNone;
       
   203     CSpdiaControl* spd = NULL;
       
   204     TRAP( err, spd =  CSpdiaControl::NewL( *pbk ) );     
       
   205     delete spd;
       
   206     
       
   207     delete pbk;
       
   208     pbk = 0;
       
   209   
       
   210     return err;
       
   211     }
       
   212 
       
   213 TInt CBCTestSpeedDial::TestAssignDialNumberLL( CStifItemParser& aItem )
       
   214     {
       
   215     CPbkContactEngine* pbk = CPbkContactEngine::NewL( &iSession );
       
   216     CSpdiaControl* spd = CSpdiaControl::NewL();
       
   217     
       
   218     TRAPD( err, spd->AssignDialNumberL( 5 ) );
       
   219 
       
   220     delete spd;
       
   221     spd = 0;
       
   222     delete pbk;
       
   223     pbk = 0;
       
   224         
       
   225     return err;
       
   226     }
       
   227 
       
   228 TInt CBCTestSpeedDial::TestExecuteLDL( CStifItemParser& aItem )
       
   229     {
       
   230     CPbkContactEngine* pbk = CPbkContactEngine::NewL( &iSession );
       
   231     CSpdiaControl* spd = CSpdiaControl::NewL( *pbk );
       
   232     TRAPD( err, spd->ExecuteLD( 1, 1 ) );
       
   233             
       
   234     spd = 0;
       
   235     delete pbk;
       
   236     pbk = 0;            
       
   237     
       
   238     return err;
       
   239     }
       
   240 
       
   241 TInt CBCTestSpeedDial::TestDialNumberLL( CStifItemParser& aItem )
       
   242     {
       
   243     CPbkContactEngine* pbk = CPbkContactEngine::NewL( &iSession );
       
   244     CSpdiaControl* spd = CSpdiaControl::NewL( *pbk );
       
   245     TBuf<100> voice;
       
   246     TRAPD( err,spd->DialNumberL( 5, voice ) );
       
   247     
       
   248     delete spd;
       
   249     spd = 0;
       
   250     delete pbk;
       
   251     pbk = 0;            
       
   252     return err;
       
   253     }
       
   254 
       
   255 TInt CBCTestSpeedDial::TestVoiceMailLL( CStifItemParser& aItem )
       
   256     {
       
   257     CPbkContactEngine* pbk = CPbkContactEngine::NewL(&iSession);
       
   258     CSpdiaControl* spd = CSpdiaControl::NewL();
       
   259     TBuf<100> voice;
       
   260     
       
   261     TRAPD( err, spd->VoiceMailL( voice ) );
       
   262 
       
   263     delete spd;
       
   264     spd = 0;
       
   265     delete pbk;
       
   266     pbk = 0;            
       
   267     
       
   268     return err;
       
   269     }
       
   270 
       
   271 TInt CBCTestSpeedDial::TestPbkEngineL( CStifItemParser& aItem )
       
   272     {
       
   273     CPbkContactEngine* pbk = CPbkContactEngine::NewL( &iSession );
       
   274     CSpdiaControl* spd = CSpdiaControl::NewL( *pbk );
       
   275     CPbkContactEngine* ptest = spd->PbkEngine();
       
   276     
       
   277     TInt reValue = KErrNone;
       
   278     
       
   279     if ( !ptest )
       
   280         {
       
   281         reValue =  KErrAbort;
       
   282         }
       
   283     
       
   284     delete spd;
       
   285     spd = 0;
       
   286     delete pbk;
       
   287     pbk = 0;            
       
   288     return reValue;
       
   289     }
       
   290 
       
   291 TInt CBCTestSpeedDial::TestIndexL( CStifItemParser& aItem )
       
   292     {
       
   293     CSpdiaControl* spd = CSpdiaControl::NewL();
       
   294     TInt result = spd->Index( 5 );
       
   295 
       
   296     delete spd;
       
   297     spd = 0;
       
   298     if ( result > -2 )
       
   299         {
       
   300         return KErrNone;
       
   301         }
       
   302     else
       
   303         {
       
   304         return KErrNotFound;
       
   305         }
       
   306     }
       
   307 
       
   308 TInt CBCTestSpeedDial::TestNumberL( CStifItemParser& aItem )
       
   309     {
       
   310     CPbkContactEngine* pbk = CPbkContactEngine::NewL( &iSession );
       
   311     CSpdiaControl* spd = CSpdiaControl::NewL( *pbk );
       
   312     
       
   313     TInt result = spd->Number( 5 );
       
   314     delete spd;
       
   315     spd = 0;
       
   316     delete pbk;
       
   317     pbk = 0;
       
   318     if ( result > -2 )
       
   319         {
       
   320         return KErrNone;
       
   321         }
       
   322     else
       
   323         {
       
   324         return KErrNotFound;
       
   325         }
       
   326     }
       
   327 
       
   328 TInt CBCTestSpeedDial::TestContactIdL( CStifItemParser& aItem )
       
   329     {
       
   330     CPbkContactEngine* pbk = CPbkContactEngine::NewL( &iSession );
       
   331     CSpdiaControl* spd = CSpdiaControl::NewL( *pbk );
       
   332     
       
   333     TContactItemId result;
       
   334     result = spd->ContactId( 4 );    
       
   335     delete spd;
       
   336     spd = 0;
       
   337     delete pbk;
       
   338     pbk = 0;
       
   339     if ( result > -2 )
       
   340         {
       
   341         return KErrNone;
       
   342         }
       
   343     else
       
   344         {
       
   345         return KErrNotFound;
       
   346         }
       
   347     }
       
   348 
       
   349 TInt CBCTestSpeedDial::TestPhoneDialNumberL( CStifItemParser& aItem )
       
   350     {
       
   351     CPbkContactEngine* pbk = CPbkContactEngine::NewL( &iSession );
       
   352     CSpdiaControl* spd = CSpdiaControl::NewL( *pbk );
       
   353     TDesC telnum = spd->PhoneDialNumber( 5 );    
       
   354     
       
   355     delete spd;
       
   356     spd = 0;
       
   357     delete pbk;
       
   358     pbk = 0;
       
   359     if(&telnum)
       
   360         {                
       
   361         return KErrNone;    
       
   362         }
       
   363     else
       
   364         {
       
   365         return KErrNotFound;
       
   366         }            
       
   367 
       
   368     }
       
   369 
       
   370 TInt CBCTestSpeedDial::TestPhoneNumberL( CStifItemParser& aItem )
       
   371     {
       
   372     CPbkContactEngine* pbk = CPbkContactEngine::NewL( &iSession );
       
   373     CSpdiaControl* spd = CSpdiaControl::NewL( *pbk );
       
   374     TDesC telnum = spd->PhoneNumber( 5 );    
       
   375     delete spd;
       
   376     spd = 0;
       
   377     delete pbk;
       
   378     pbk = 0;
       
   379     if(&telnum)
       
   380         {                
       
   381         return KErrNone;    
       
   382         }
       
   383     else
       
   384         {
       
   385         return KErrNotFound;
       
   386         }
       
   387     }
       
   388 
       
   389 TInt CBCTestSpeedDial::TestThumbIndexL( CStifItemParser& aItem )
       
   390     {
       
   391     CPbkContactEngine* pbk = CPbkContactEngine::NewL( &iSession );
       
   392     CSpdiaControl* spd = CSpdiaControl::NewL( *pbk );
       
   393     TInt index = spd->ThumbIndex( 5 );
       
   394     delete spd;
       
   395     spd = 0;
       
   396     delete pbk;
       
   397     pbk = 0;
       
   398     if( index > -2 && index < 9 )
       
   399         {
       
   400         return KErrNone;    
       
   401         }
       
   402     else
       
   403         {
       
   404         return KErrNotFound;
       
   405         }
       
   406     }
       
   407     
       
   408 TInt CBCTestSpeedDial::TestIconIndexL( CStifItemParser& aItem )
       
   409     {
       
   410     CPbkContactEngine* pbk = CPbkContactEngine::NewL( &iSession );
       
   411     CSpdiaControl* spd = CSpdiaControl::NewL( *pbk );
       
   412     TInt index = spd->IconIndex( 5 );
       
   413     delete spd;
       
   414     spd = 0;
       
   415     delete pbk;
       
   416     pbk = 0;
       
   417     if( index > -2 && index < 9 )
       
   418         {
       
   419         return KErrNone;    
       
   420         }
       
   421     else
       
   422         {
       
   423         return KErrNotFound;
       
   424         }
       
   425     }
       
   426     
       
   427 TInt CBCTestSpeedDial::TestNumberTypeL( CStifItemParser& aItem )
       
   428     {
       
   429     CPbkContactEngine* pbk = CPbkContactEngine::NewL( &iSession );
       
   430     CSpdiaControl* spd = CSpdiaControl::NewL( *pbk );
       
   431     TInt numberType = spd->NumberType( 5 );
       
   432     delete spd;
       
   433     spd = 0;
       
   434     delete pbk;
       
   435     pbk = 0;
       
   436     
       
   437     return KErrNone;
       
   438     }
       
   439     
       
   440 TInt CBCTestSpeedDial::TestIconArrayL( CStifItemParser& aItem )
       
   441     {
       
   442     CPbkContactEngine* pbk = CPbkContactEngine::NewL( &iSession );
       
   443     CSpdiaControl* spd = CSpdiaControl::NewL( *pbk );
       
   444     CArrayPtr<CGulIcon>* result = NULL;
       
   445     result = spd->IconArray();
       
   446     delete spd;
       
   447     spd = 0;
       
   448     delete pbk;
       
   449     pbk = 0;
       
   450     
       
   451     STIF_ASSERT_NOT_NULL( result );
       
   452     return KErrNone;
       
   453     }
       
   454     
       
   455 TInt CBCTestSpeedDial::TestCheckingIfPopUpNeededL( CStifItemParser& aItem )
       
   456     {
       
   457     CPbkContactEngine* pbk = CPbkContactEngine::NewL( &iSession );
       
   458     CSpdiaControl* spd = CSpdiaControl::NewL( *pbk );
       
   459     TBool result = spd->CheckingIfPopUpNeeded();
       
   460     delete spd;
       
   461     spd = 0;
       
   462     delete pbk;
       
   463     pbk = 0;
       
   464     
       
   465     if( result >= 0 )
       
   466         {
       
   467         return KErrNone;    
       
   468         }
       
   469     else
       
   470         {
       
   471         return KErrNotFound;
       
   472         }
       
   473     }
       
   474 
       
   475 TInt CBCTestSpeedDial::TestRemoveDialIndexLL( CStifItemParser& aItem )
       
   476     {
       
   477     CPbkContactEngine* pbk = CPbkContactEngine::NewL(&iSession);
       
   478     CSpdiaControl* spd = CSpdiaControl::NewL( *pbk );
       
   479     TRAPD( err, spd->RemoveDialIndexL( 5, 0 ) );
       
   480     delete spd;
       
   481     spd = 0;
       
   482     delete pbk;
       
   483     pbk = 0;
       
   484     
       
   485     return err;
       
   486     }    
       
   487     
       
   488 TInt CBCTestSpeedDial::TestVMBoxPositionL( CStifItemParser& aItem )
       
   489     {
       
   490     CPbkContactEngine* pbk = CPbkContactEngine::NewL(&iSession);
       
   491     CSpdiaControl* spd = CSpdiaControl::NewL( *pbk );
       
   492     TInt result = spd->VMBoxPosition();
       
   493     delete spd;
       
   494     spd = 0;
       
   495     delete pbk;
       
   496     pbk = 0;
       
   497     
       
   498     if ( result >= 0 )
       
   499         {
       
   500         return KErrNone;
       
   501         }
       
   502     else
       
   503         {
       
   504         return KErrNotFound;
       
   505         }
       
   506     }    
       
   507     
       
   508 TInt CBCTestSpeedDial::TestSpdIconIndexL( CStifItemParser& aItem )
       
   509     {
       
   510     CPbkContactEngine* pbk = CPbkContactEngine::NewL(&iSession);
       
   511     CSpdiaControl* spd = CSpdiaControl::NewL( *pbk );
       
   512     TInt result = spd->SpdIconIndex( 5 );
       
   513     delete spd;
       
   514     spd = 0;
       
   515     delete pbk;
       
   516     pbk = 0;
       
   517     
       
   518     if( result > -2 && result < 9 )
       
   519         {
       
   520         return KErrNone;    
       
   521         }
       
   522     else
       
   523         {
       
   524         return KErrNotFound;
       
   525         }
       
   526     }    
       
   527     
       
   528 TInt CBCTestSpeedDial::TestDeleteIconArrayL( CStifItemParser& aItem )
       
   529     {
       
   530     CPbkContactEngine* pbk = CPbkContactEngine::NewL(&iSession);
       
   531     CSpdiaControl* spd = CSpdiaControl::NewL( *pbk );
       
   532     spd->DeleteIconArray();
       
   533     delete spd;
       
   534     spd = 0;
       
   535     delete pbk;
       
   536     pbk = 0;
       
   537     return KErrNone;
       
   538     }    
       
   539     
       
   540 TInt CBCTestSpeedDial::TestReloadIconArrayL( CStifItemParser& aItem )
       
   541     {
       
   542     CPbkContactEngine* pbk = CPbkContactEngine::NewL(&iSession);
       
   543     CSpdiaControl* spd = CSpdiaControl::NewL( *pbk );
       
   544     spd->ReloadIconArray();
       
   545     delete spd;
       
   546     spd = 0;
       
   547     delete pbk;
       
   548     pbk = 0;
       
   549     return KErrNone;
       
   550     }    
       
   551     
       
   552 TInt CBCTestSpeedDial::TestVoiceMailTypeL( CStifItemParser& aItem )
       
   553     {
       
   554     CPbkContactEngine* pbk = CPbkContactEngine::NewL(&iSession);
       
   555     CSpdiaControl* spd = CSpdiaControl::NewL( *pbk );
       
   556     TInt result = spd->VoiceMailType();
       
   557     delete spd;
       
   558     spd = 0;
       
   559     delete pbk;
       
   560     pbk = 0;
       
   561     
       
   562     if ( result >= 0 )
       
   563         {
       
   564         return KErrNone;
       
   565         }
       
   566     else
       
   567         {
       
   568         return KErrNotFound;
       
   569         }
       
   570     }    
       
   571     
       
   572 TInt CBCTestSpeedDial::TestGetSpdCtrlLastErrorL( CStifItemParser& aItem )
       
   573     {
       
   574     CPbkContactEngine* pbk = CPbkContactEngine::NewL(&iSession);
       
   575     CSpdiaControl* spd = CSpdiaControl::NewL( *pbk );
       
   576     TInt result = spd->GetSpdCtrlLastError();
       
   577     delete spd;
       
   578     spd = 0;
       
   579     delete pbk;
       
   580     pbk = 0;
       
   581     
       
   582     if ( result <= 0 )
       
   583         {
       
   584         return KErrNone;
       
   585         }
       
   586     else
       
   587         {
       
   588         return KErrNotFound;
       
   589         }
       
   590     }    
       
   591     
       
   592 
       
   593 TInt CBCTestSpeedDial::DeleteSelf( CStifItemParser& aItem )
       
   594     {
       
   595     if ( iControl )
       
   596         {
       
   597         delete iControl;
       
   598         iControl = NULL;
       
   599         }
       
   600     return KErrNone;
       
   601     }
       
   602 
       
   603 // -----------------------------------------------------------------------------
       
   604 // CBCTestSpeedDial::?member_function
       
   605 // ?implementation_description
       
   606 // (other items were commented in a header).
       
   607 // -----------------------------------------------------------------------------
       
   608 //
       
   609 /*
       
   610 TInt CBCTestSpeedDial::?member_function(
       
   611    CItemParser& aItem )
       
   612    {
       
   613 
       
   614    ?code
       
   615 
       
   616    }
       
   617 */
       
   618 
       
   619 // ========================== OTHER EXPORTED FUNCTIONS =========================
       
   620 // None
       
   621 
       
   622 //  [End of File] - Do not remove