mmappfw_plat/mpx_base_view_plugins_api/tsrc/ui_mpxbaseviewpluginstest/src/mpxbaseviewpluginstestBlocks.cpp
changeset 0 a2952bb97e68
equal deleted inserted replaced
-1:000000000000 0:a2952bb97e68
       
     1 /*
       
     2 * Copyright (c) 2002 - 2007 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:  Cmpxbaseviewpluginstest block implementation for STIF Test Framework TestScripter
       
    15 *
       
    16 */
       
    17 
       
    18 // [INCLUDE FILES] - do not remove
       
    19 #include <e32svr.h>
       
    20 #include <StifParser.h>
       
    21 #include <Stiftestinterface.h>
       
    22 #include "mpxbaseviewpluginstest.h"
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // Cmpxbaseviewpluginstest::Delete
       
    26 // Delete here all resources allocated and opened from test methods. 
       
    27 // Called from destructor. 
       
    28 // -----------------------------------------------------------------------------
       
    29 //
       
    30 void Cmpxbaseviewpluginstest::Delete() 
       
    31     {
       
    32     // CMPXViewPlugin
       
    33     }
       
    34 
       
    35 // -----------------------------------------------------------------------------
       
    36 // Cmpxbaseviewpluginstest::RunMethodL
       
    37 // Run specified method. Contains also table of test mothods and their names.
       
    38 // -----------------------------------------------------------------------------
       
    39 //
       
    40 TInt Cmpxbaseviewpluginstest::RunMethodL( 
       
    41     CStifItemParser& aItem ) 
       
    42     {
       
    43 
       
    44     static TStifFunctionInfo const KFunctions[] =
       
    45         {  
       
    46         // Copy this line for every implemented function.
       
    47         // First string is the function name used in TestScripter script file.
       
    48         // Second is the actual implementation member function. 
       
    49         ENTRY( "Example", Cmpxbaseviewpluginstest::ExampleL ),
       
    50       
       
    51         ENTRY( "CMPXViewPluginNewL", Cmpxbaseviewpluginstest::CMPXViewPluginNewL ),
       
    52         ENTRY( "CMPXViewPluginDestruct", Cmpxbaseviewpluginstest::CMPXViewPluginDestruct ),
       
    53      
       
    54         ENTRY( "CMPXAknViewPluginDestruct", Cmpxbaseviewpluginstest::CMPXAknViewPluginDestruct ),
       
    55         ENTRY( "CMPXAknViewPluginCreateViewL", Cmpxbaseviewpluginstest::CMPXAknViewPluginCreateViewL ),
       
    56         ENTRY( "CMPXAknViewPluginDestroyView", Cmpxbaseviewpluginstest::CMPXAknViewPluginDestroyView ),
       
    57         ENTRY( "CMPXAknViewPluginActivateViewL", Cmpxbaseviewpluginstest::CMPXAknViewPluginActivateViewL ),
       
    58         ENTRY( "CMPXAknViewPluginSetAsDefaultViewL", Cmpxbaseviewpluginstest::CMPXAknViewPluginSetAsDefaultViewL ),
       
    59         ENTRY( "CMPXAknViewPluginDeactivateView", Cmpxbaseviewpluginstest::CMPXAknViewPluginDeactivateView ),
       
    60         
       
    61         ENTRY( "CMPXAknDialogPluginDestruct", Cmpxbaseviewpluginstest::CMPXAknDialogPluginDestruct ),
       
    62         ENTRY( "CMPXAknDialogPluginCreateViewL", Cmpxbaseviewpluginstest::CMPXAknDialogPluginCreateViewL ),
       
    63         ENTRY( "CMPXAknDialogPluginDestroyView", Cmpxbaseviewpluginstest::CMPXAknDialogPluginDestroyView ),
       
    64         ENTRY( "CMPXAknDialogPluginActivateViewL", Cmpxbaseviewpluginstest::CMPXAknDialogPluginActivateViewL ),
       
    65         ENTRY( "CMPXAknDialogPluginSetAsDefaultViewL", Cmpxbaseviewpluginstest::CMPXAknDialogPluginSetAsDefaultViewL ),
       
    66         ENTRY( "CMPXAknDialogPluginDeactivateView", Cmpxbaseviewpluginstest::CMPXAknDialogPluginDeactivateView ),
       
    67         ENTRY( "CDummyMPXAknViewPluginConstruct", Cmpxbaseviewpluginstest::CDummyMPXAknViewPluginConstruct ),
       
    68         ENTRY( "CDummyMPXAknDialogPluginConstruct", Cmpxbaseviewpluginstest::CDummyMPXAknDialogPluginConstruct ),
       
    69         ENTRY( "CDummyMPXViewPluginDesConstruct", Cmpxbaseviewpluginstest::CDummyMPXViewPluginDesConstruct ),
       
    70                
       
    71         
       
    72         //ADD NEW ENTRY HERE 
       
    73         //[test cases entries] - Do not remove
       
    74 
       
    75         };
       
    76 
       
    77     const TInt count = sizeof( KFunctions ) / 
       
    78                         sizeof( TStifFunctionInfo );
       
    79 
       
    80     return RunInternalL( KFunctions, count, aItem );
       
    81 
       
    82     }
       
    83 
       
    84 // -----------------------------------------------------------------------------
       
    85 // Cmpxbaseviewpluginstest::ExampleL
       
    86 // Example test method function.
       
    87 // (other items were commented in a header).
       
    88 // -----------------------------------------------------------------------------
       
    89 //
       
    90 TInt Cmpxbaseviewpluginstest::ExampleL( CStifItemParser& aItem )
       
    91     {
       
    92 
       
    93     // Print to UI
       
    94     _LIT( Kmpxbaseviewpluginstest, "mpxbaseviewpluginstest" );
       
    95     _LIT( KExample, "In Example" );
       
    96     TestModuleIf().Printf( 0, Kmpxbaseviewpluginstest, KExample );
       
    97     // Print to log file
       
    98     iLog->Log( KExample );
       
    99     
       
   100     TInt i = 0;
       
   101     TPtrC string;
       
   102     _LIT( KParam, "Param[%i]: %S" );
       
   103     while ( aItem.GetNextString ( string ) == KErrNone )
       
   104         {
       
   105         TestModuleIf().Printf( i, Kmpxbaseviewpluginstest, 
       
   106                                 KParam, i, &string );
       
   107         i++;
       
   108         }
       
   109 
       
   110     return KErrNone;
       
   111 
       
   112     }
       
   113 
       
   114 // -----------------------------------------------------------------------------
       
   115 // Cmpxbaseviewpluginstest::CMPXViewPluginNewL
       
   116 // Create CMPXViewPlugin
       
   117 // (other items were commented in a header).
       
   118 // -----------------------------------------------------------------------------
       
   119 //
       
   120 TInt Cmpxbaseviewpluginstest::CMPXViewPluginNewL( CStifItemParser& /*aItem*/ )
       
   121     {
       
   122     iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXViewPluginNewL"));
       
   123     TInt err = KErrNone;
       
   124     if ( iViewPlugin != NULL)
       
   125             {
       
   126             delete iViewPlugin;
       
   127             }
       
   128     iViewPlugin = NULL;
       
   129 
       
   130 	TUid aUid = TUid::Uid(270531770);
       
   131 
       
   132     iViewPlugin = CMPXViewPlugin::NewL( aUid, this );
       
   133     if ( iViewPlugin == NULL)
       
   134         {
       
   135         err = KErrNotFound;
       
   136         }   
       
   137     iLog->Log(_L("Error: CMPXViewPluginNewL not created: %d"), err);
       
   138 	return err;   
       
   139     }
       
   140 // -----------------------------------------------------------------------------
       
   141 // Cmpxbaseviewpluginstest::CMPXViewPluginDestruct
       
   142 // Destruct CMPXViewPlugin
       
   143 // (other items were commented in a header).
       
   144 // -----------------------------------------------------------------------------
       
   145 //
       
   146 TInt Cmpxbaseviewpluginstest::CMPXViewPluginDestruct( CStifItemParser& /*aItem*/ )
       
   147     {
       
   148     iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXViewPluginDestruct"));
       
   149     TInt err = KErrNone;
       
   150     if ( iViewPlugin )
       
   151            {
       
   152            delete iViewPlugin;
       
   153            REComSession::FinalClose();
       
   154            iViewPlugin = NULL;
       
   155            }
       
   156     if ( err != KErrNone)
       
   157     	{
       
   158          iLog->Log(_L("Cmpxbaseviewpluginstest::DeleteCMPXViewPlugin testing CMPXViewPlugin::~ end err=%d"), err);
       
   159     	}  	 
       
   160     return err;
       
   161     }
       
   162 
       
   163 // -----------------------------------------------------------------------------
       
   164 // Cmpxbaseviewpluginstest::CMPXAknViewPluginDestruct
       
   165 // Destruct CMPXAknViewPlugin
       
   166 // (other items were commented in a header).
       
   167 // -----------------------------------------------------------------------------
       
   168 //
       
   169 TInt Cmpxbaseviewpluginstest::CMPXAknViewPluginDestruct( CStifItemParser& /*aItem*/ )
       
   170     {
       
   171     iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknViewPluginDestruct"));
       
   172     TInt err = KErrNone;
       
   173     iViewPlugin = CMPXViewPlugin::NewL( KMPXAudioEffectsViewImplementationId, this );
       
   174     if ( iViewPlugin )
       
   175 	      {
       
   176 	       delete iViewPlugin;
       
   177 	       REComSession::FinalClose();
       
   178 	       iViewPlugin = NULL;
       
   179 	      }
       
   180     if ( err != KErrNone )
       
   181     	 {
       
   182     	 iLog->Log(_L("Cmpxbaseviewpluginstest::DeleteCMPXAknViewPlugin testing CMPXAknViewPlugin::~ end err=%d"), err); 	 
       
   183     	 }
       
   184      return err;
       
   185     }
       
   186 // -----------------------------------------------------------------------------
       
   187 // Cmpxbaseviewpluginstest::CDummyMPXViewPluginConstruct
       
   188 // CDummyMPXViewPlugin Construct
       
   189 // (other items were commented in a header).
       
   190 // -----------------------------------------------------------------------------
       
   191 //
       
   192 TInt Cmpxbaseviewpluginstest::CDummyMPXAknViewPluginConstruct( CStifItemParser& /*aItem*/ )
       
   193     {
       
   194     iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknViewPluginCreateViewL"));
       
   195     TInt err = KErrNone;
       
   196 
       
   197    	idummyMPXViewPlugin = new CDummyMPXViewPlugin(KMPXAudioEffectsViewImplementationId,this);
       
   198    		
       
   199     if ( err != KErrNone )
       
   200 	    {
       
   201          iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknViewPluginCreateViewL err=%d"), err);
       
   202 	    } 
       
   203     return err;
       
   204     }
       
   205 // -----------------------------------------------------------------------------
       
   206 // Cmpxbaseviewpluginstest::CDummyMPXViewPluginConstruct
       
   207 // CDummyMPXViewPlugin Construct
       
   208 // (other items were commented in a header).
       
   209 // -----------------------------------------------------------------------------
       
   210 //
       
   211 TInt Cmpxbaseviewpluginstest::CDummyMPXAknDialogPluginConstruct( CStifItemParser& /*aItem*/ )
       
   212     {
       
   213     iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknViewPluginCreateViewL"));
       
   214     TInt err = KErrNone;
       
   215  
       
   216    	idummyMPXViewPlugin = new CDummyMPXViewPlugin(KMPXMetadataEditorDialogImplementationId,this);
       
   217    		
       
   218     if ( err != KErrNone )
       
   219 	    {
       
   220          iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknViewPluginCreateViewL err=%d"), err);
       
   221 	    } 
       
   222     return err;
       
   223     }
       
   224 // -----------------------------------------------------------------------------
       
   225 // Cmpxbaseviewpluginstest::CDummyMPXViewPluginDesConstruct
       
   226 // CDummyMPXViewPlugin DesConstruct
       
   227 // (other items were commented in a header).
       
   228 // -----------------------------------------------------------------------------
       
   229 //
       
   230 TInt Cmpxbaseviewpluginstest::CDummyMPXViewPluginDesConstruct( CStifItemParser& /*aItem*/ )
       
   231     {
       
   232     iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknViewPluginCreateViewL"));
       
   233     TInt err = KErrNone;
       
   234     if ( idummyMPXViewPlugin != NULL )
       
   235     	{
       
   236     	delete idummyMPXViewPlugin;
       
   237     	idummyMPXViewPlugin = NULL;
       
   238     	}
       
   239     	
       
   240     if ( err != KErrNone )
       
   241     	  {
       
   242            iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknViewPluginCreateViewL err=%d"), err);
       
   243     	  } 
       
   244     return err;
       
   245     }
       
   246 // -----------------------------------------------------------------------------
       
   247 // Cmpxbaseviewpluginstest::CMPXAknViewPluginCreateViewL
       
   248 // CMPXAknViewPlugin CreateViewL
       
   249 // (other items were commented in a header).
       
   250 // -----------------------------------------------------------------------------
       
   251 //
       
   252 TInt Cmpxbaseviewpluginstest::CMPXAknViewPluginCreateViewL( CStifItemParser& /*aItem*/ )
       
   253     {
       
   254     iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknViewPluginCreateViewL"));
       
   255     TInt err = KErrNone;
       
   256     
       
   257     TRAP( err, idummyMPXViewPlugin->CreateViewL());
       
   258 
       
   259     if ( err != KErrNone )
       
   260     	  {
       
   261            iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknViewPluginCreateViewL err=%d"), err);
       
   262     	  } 
       
   263     return err;
       
   264     }
       
   265 // -----------------------------------------------------------------------------
       
   266 // Cmpxbaseviewpluginstest::CMPXAknViewPluginDestroyView
       
   267 // CMPXAknViewPlugin DestroyView
       
   268 // (other items were commented in a header).
       
   269 // -----------------------------------------------------------------------------
       
   270 //
       
   271 TInt Cmpxbaseviewpluginstest::CMPXAknViewPluginDestroyView( CStifItemParser& /*aItem*/ )
       
   272     {
       
   273     iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknViewPluginDestroyView"));
       
   274     TInt err = KErrNone;
       
   275     
       
   276     idummyMPXViewPlugin->DestroyView();
       
   277     
       
   278     if ( err != KErrNone )
       
   279     	  {
       
   280            iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknViewPluginDestroyView end err=%d"), err);
       
   281     	  }  
       
   282     
       
   283     return err;
       
   284     }
       
   285 // -----------------------------------------------------------------------------
       
   286 // Cmpxbaseviewpluginstest::CMPXAknViewPluginActivateViewL
       
   287 // CMPXAknViewPlugin ActivateViewL
       
   288 // (other items were commented in a header).
       
   289 // -----------------------------------------------------------------------------
       
   290 //
       
   291 TInt Cmpxbaseviewpluginstest::CMPXAknViewPluginActivateViewL( CStifItemParser& /*aItem*/ )
       
   292     {
       
   293     iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknViewPluginActivateViewL"));
       
   294     TInt err = KErrNone;
       
   295 
       
   296     _LIT( Kparam, "viewname" );
       
   297     const TDesC* KFrom = &Kparam;
       
   298 
       
   299     TRAP(err,idummyMPXViewPlugin->ActivateViewL());
       
   300     
       
   301     if ( err != KErrNone )
       
   302     	  {
       
   303            iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknViewPluginActivateViewL err=%d"), err);
       
   304     	  }  	 
       
   305     return err;
       
   306     }
       
   307 // -----------------------------------------------------------------------------
       
   308 // Cmpxbaseviewpluginstest::CMPXAknViewPluginSetAsDefaultViewL
       
   309 // CMPXAknViewPlugin SetAsDefaultViewL
       
   310 // (other items were commented in a header).
       
   311 // -----------------------------------------------------------------------------
       
   312 //
       
   313 TInt Cmpxbaseviewpluginstest::CMPXAknViewPluginSetAsDefaultViewL( CStifItemParser& /*aItem*/ )
       
   314     {
       
   315     iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknViewPluginSetAsDefaultViewL"));
       
   316     TInt err = KErrNone;
       
   317 
       
   318     TRAP(err,idummyMPXViewPlugin->SetAsDefaultViewL());
       
   319     
       
   320     if ( err != KErrNone )
       
   321     	  {
       
   322            iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknViewPluginSetAsDefaultViewL err=%d"), err);
       
   323     	  }  	 
       
   324     return err;
       
   325     }
       
   326 // -----------------------------------------------------------------------------
       
   327 // Cmpxbaseviewpluginstest::CMPXAknViewPluginDeactivateView
       
   328 // CMPXAknViewPlugin DeactivateView
       
   329 // (other items were commented in a header).
       
   330 // -----------------------------------------------------------------------------
       
   331 //
       
   332 TInt Cmpxbaseviewpluginstest::CMPXAknViewPluginDeactivateView( CStifItemParser& /*aItem*/ )
       
   333     {
       
   334     iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknViewPluginDeactivateView"));
       
   335     TInt err = KErrNone;
       
   336 
       
   337     idummyMPXViewPlugin->DeactivateView();
       
   338     
       
   339     if ( err != KErrNone )
       
   340     	  {
       
   341            iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknViewPluginDeactivateView err=%d"), err);
       
   342     	  }  	 
       
   343     return err;
       
   344     }
       
   345 // -----------------------------------------------------------------------------
       
   346 // Cmpxbaseviewpluginstest::CMPXAknDialogPluginDestruct
       
   347 // CMPXAknDialogPlugin Destruct
       
   348 // (other items were commented in a header).
       
   349 // -----------------------------------------------------------------------------
       
   350 //
       
   351 TInt Cmpxbaseviewpluginstest::CMPXAknDialogPluginDestruct( CStifItemParser& /*aItem*/ )
       
   352 {
       
   353 	iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknDialogPluginDestruct"));
       
   354 	TInt err = KErrNone;
       
   355 	
       
   356 	iViewPlugin = CMPXViewPlugin::NewL( KMPXMetadataEditorDialogImplementationId, this );
       
   357 	if ( iViewPlugin )
       
   358 	       {
       
   359 	       TRAP(err , delete iViewPlugin);
       
   360 	       REComSession::FinalClose();
       
   361 	       iViewPlugin = NULL;
       
   362 	       }
       
   363 	if ( err != KErrNone )
       
   364 		  {
       
   365 	       iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknDialogPluginDestruct err=%d"), err);
       
   366 		  }  	 
       
   367 	return err;
       
   368 }
       
   369 // -----------------------------------------------------------------------------
       
   370 // Cmpxbaseviewpluginstest::CMPXAknDialogPluginCreateViewL
       
   371 // CMPXAknDialogPlugin CreateViewL
       
   372 // (other items were commented in a header).
       
   373 // -----------------------------------------------------------------------------
       
   374 //
       
   375 TInt Cmpxbaseviewpluginstest::CMPXAknDialogPluginCreateViewL( CStifItemParser& /*aItem*/ )
       
   376     {
       
   377     iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknDialogPluginCreateViewL"));
       
   378     TInt err = KErrNone;
       
   379     
       
   380     TRAP( err, idummyMPXViewPlugin->CreateViewL());
       
   381 
       
   382     if ( err != KErrNone )
       
   383     	  {
       
   384            iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknDialogPluginCreateViewL err=%d"), err);
       
   385     	  } 
       
   386     return err;
       
   387     }
       
   388 // -----------------------------------------------------------------------------
       
   389 // Cmpxbaseviewpluginstest::CMPXAknDialogPluginDestroyView
       
   390 // CMPXAknDialogPlugin DestroyView
       
   391 // (other items were commented in a header).
       
   392 // -----------------------------------------------------------------------------
       
   393 //
       
   394 TInt Cmpxbaseviewpluginstest::CMPXAknDialogPluginDestroyView( CStifItemParser& /*aItem*/ )
       
   395     {
       
   396     iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknDialogPluginDestroyView"));
       
   397     TInt err = KErrNone;
       
   398 
       
   399     idummyMPXViewPlugin->DestroyView();
       
   400     
       
   401     if ( err != KErrNone )
       
   402     	  {
       
   403            iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknDialogPluginDestroyView end err=%d"), err);
       
   404     	  }  
       
   405     
       
   406     return err;
       
   407     }
       
   408 // -----------------------------------------------------------------------------
       
   409 // Cmpxbaseviewpluginstest::CMPXAknDialogPluginActivateViewL
       
   410 // CMPXAknDialogPlugin ActivateViewL
       
   411 // (other items were commented in a header).
       
   412 // -----------------------------------------------------------------------------
       
   413 //
       
   414 TInt Cmpxbaseviewpluginstest::CMPXAknDialogPluginActivateViewL( CStifItemParser& /*aItem*/ )
       
   415     {
       
   416     iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknDialogPluginActivateViewL"));
       
   417     TInt err = KErrNone;
       
   418 
       
   419     TRAP(err,idummyMPXViewPlugin->ActivateViewL());
       
   420     
       
   421     if ( err != KErrNone )
       
   422     	  {
       
   423            iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknDialogPluginActivateViewL err=%d"), err);
       
   424     	  }  	 
       
   425     return err;
       
   426     }
       
   427 // -----------------------------------------------------------------------------
       
   428 // Cmpxbaseviewpluginstest::CMPXAknDialogPluginSetAsDefaultViewL
       
   429 // CMPXAknDialogPlugin SetAsDefaultViewL
       
   430 // (other items were commented in a header).
       
   431 // -----------------------------------------------------------------------------
       
   432 //
       
   433 TInt Cmpxbaseviewpluginstest::CMPXAknDialogPluginSetAsDefaultViewL( CStifItemParser& /*aItem*/ )
       
   434     {
       
   435     iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknDialogPluginSetAsDefaultViewL"));
       
   436     TInt err = KErrNone;
       
   437 
       
   438     TRAP(err,idummyMPXViewPlugin->SetAsDefaultViewL());
       
   439     
       
   440     if ( err == KErrNotSupported )
       
   441     	  {
       
   442            iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknDialogPluginSetAsDefaultViewL err=%d"), err);
       
   443     	   err = KErrNone;
       
   444     	  }  	 
       
   445     return err;
       
   446     }
       
   447 // -----------------------------------------------------------------------------
       
   448 // Cmpxbaseviewpluginstest::CMPXAknDialogPluginDeactivateView
       
   449 // CMPXAknDialogPlugin DeactivateView
       
   450 // (other items were commented in a header).
       
   451 // -----------------------------------------------------------------------------
       
   452 //
       
   453 TInt Cmpxbaseviewpluginstest::CMPXAknDialogPluginDeactivateView( CStifItemParser& /*aItem*/ )
       
   454     {
       
   455     iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknDialogPluginDeactivateView"));
       
   456     TInt err = KErrNone;
       
   457 
       
   458     idummyMPXViewPlugin->DeactivateView();
       
   459     
       
   460     if ( err != KErrNone )
       
   461     	  {
       
   462            iLog->Log(_L("Cmpxbaseviewpluginstest::CMPXAknDialogPluginDeactivateView err=%d"), err);
       
   463     	  }  	 
       
   464     return err;
       
   465     }
       
   466 
       
   467 // -----------------------------------------------------------------------------
       
   468 // Cmpxbaseviewpluginstest::HandleCustomCommand
       
   469 // Handle CustomCommand
       
   470 // (other items were commented in a header).
       
   471 // -----------------------------------------------------------------------------
       
   472 //
       
   473 void Cmpxbaseviewpluginstest::HandleCustomCommand( 
       
   474     const TUid& /*aUid*/,
       
   475     const TInt /*aCommand*/,
       
   476     const TDesC8& /*aData*/ )
       
   477     {
       
   478 	iLog->Log(_L("CCommonTestClass::HandleCustomCommand CMPXViewPlugin::HandleCustomCommand is called"));
       
   479     }
       
   480 
       
   481 /*
       
   482 TInt Cmpxbaseviewpluginstest::?member_function(
       
   483    CItemParser& aItem )
       
   484    {
       
   485 
       
   486    ?code
       
   487 
       
   488    }
       
   489 */
       
   490 
       
   491 // ========================== OTHER EXPORTED FUNCTIONS =========================
       
   492 // None
       
   493 
       
   494 //  [End of File] - Do not remove