devicediagnostics/diagsuites/diagcoveragesuiteplugin/inc/diagcoveragesuiteplugin.h
changeset 0 3ce708148e4d
equal deleted inserted replaced
-1:000000000000 0:3ce708148e4d
       
     1 /*
       
     2 * Copyright (c) 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:  This is the declaration of the Coverage Suite Plugin class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef DIAGCOVERAGESUITEPLUGIN_H
       
    20 #define DIAGCOVERAGESUITEPLUGIN_H
       
    21 
       
    22 // System Include Files
       
    23 #include <DiagSuitePluginBase.h>            // CDiagSuitePluginBase
       
    24 
       
    25 /**
       
    26  *  Diagnostics Coverage Suite Plugin
       
    27  *  This class defines the coverage suite plugin.  This plugin is the container
       
    28  *  for all test plugins which test coverage functionality.
       
    29  *
       
    30  *  @lib diagpluginbase.lib
       
    31  *  @lib diagframework.lib
       
    32  *  @lib commonengine.lib
       
    33  *  @lib aknicon.lib
       
    34  *  @lib egul.lib
       
    35  */
       
    36 class CDiagCoverageSuitePlugin : public CDiagSuitePluginBase
       
    37     {
       
    38 
       
    39 public: // New functions
       
    40 
       
    41     /**
       
    42      * Two-phased constructor.
       
    43      *
       
    44      * @return An instance of CDiagCoverageSuitePlugin.
       
    45      */
       
    46     static MDiagPlugin* NewL( TAny* aInitParams );
       
    47 
       
    48     /**
       
    49     * Destructor.
       
    50     */
       
    51     ~CDiagCoverageSuitePlugin();
       
    52 
       
    53 
       
    54 private: // New functions
       
    55 
       
    56     /**
       
    57      * The default constructor.
       
    58      */
       
    59     CDiagCoverageSuitePlugin( CDiagPluginConstructionParam* aInitParams  );
       
    60 
       
    61     /**
       
    62      * Two-phased constructor.
       
    63      */
       
    64     void ConstructL();
       
    65 
       
    66 
       
    67 private: // From base class CDiagSuitePluginBase
       
    68 
       
    69     /**
       
    70     * @see CDiagSuitePluginBase::Visible()
       
    71     */
       
    72     virtual TBool IsVisible() const;
       
    73 
       
    74     /**
       
    75     * @see CDiagSuitePluginBase::GetPluginNameL
       
    76     */
       
    77     virtual HBufC* GetPluginNameL( TNameLayoutType aLayoutType ) const;
       
    78 
       
    79     /**
       
    80     * @see CDiagSuitePluginBase::Uid
       
    81     */
       
    82     virtual TUid Uid() const;
       
    83 
       
    84     /**
       
    85     * @see CDiagSuitePluginBase::CreateIconL
       
    86     */
       
    87     virtual CGulIcon* CreateIconL() const;
       
    88 
       
    89 
       
    90 private: // From base class CActive
       
    91     /**
       
    92     * Handle active object completion event
       
    93     */
       
    94     virtual void RunL();
       
    95 
       
    96     /**
       
    97     * Handle cancel
       
    98     */
       
    99     virtual void DoCancel();
       
   100 
       
   101     };
       
   102 
       
   103 #endif // DIAGCOVERAGESUITEPLUGIN_H
       
   104