idlefw/tsrc/devicestatusplugin/mt_devstaplg/MT_DevStaPlg.h
branchRCL_3
changeset 28 053c6c7c14f3
equal deleted inserted replaced
27:2c7f27287390 28:053c6c7c14f3
       
     1 /*
       
     2 * Copyright (c) 2004 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:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __MT_DEVSTAPLG_H__
       
    20 #define __MT_DEVSTAPLG_H__
       
    21 
       
    22 //  EXTERNAL INCLUDES
       
    23 #include <digia/eunit/ceunittestsuiteclass.h>
       
    24 
       
    25 //  INTERNAL INCLUDES
       
    26 #include "aicontentobserver.h"
       
    27 #include "stubdataholder.h"
       
    28 #include "ccontentcache.h"
       
    29 
       
    30 //  FORWARD DECLARATIONS
       
    31 class CHsContentPublisher;
       
    32 class CContentObserver;
       
    33 
       
    34 #include <e32def.h>
       
    35 #ifndef NONSHARABLE_CLASS
       
    36     #define NONSHARABLE_CLASS(x) class x
       
    37 #endif
       
    38 
       
    39 
       
    40 //  CLASS DEFINITION
       
    41 /**
       
    42  *
       
    43  * EUnitWizard generated test class.
       
    44  *
       
    45  */
       
    46 NONSHARABLE_CLASS( MT_DevStaPlg )
       
    47      : public CEUnitTestSuiteClass//, public MAiContentObserver
       
    48     {
       
    49     public:     // Constructors and destructors
       
    50 
       
    51         /**
       
    52          * Two phase construction
       
    53          */
       
    54         static MT_DevStaPlg* NewL();
       
    55         static MT_DevStaPlg* NewLC();
       
    56         /**
       
    57          * Destructor
       
    58          */
       
    59         ~MT_DevStaPlg();
       
    60 
       
    61     private:    // Constructors and destructors
       
    62 
       
    63         MT_DevStaPlg();
       
    64         void ConstructL();
       
    65 
       
    66     public:     // From observer interface
       
    67 
       
    68 /*
       
    69         TInt StartTransaction(TInt aTxId);
       
    70         TInt Commit(TInt aTxId);
       
    71         TInt Rollback(TInt aTxId);
       
    72         TInt Publish(MAiPropertyExtension& aPlugin, TInt aContent, TInt aResource, TInt aIndex );
       
    73         TInt Publish(MAiPropertyExtension& aPlugin, TInt aContent, const TDesC16& aText, TInt aIndex );
       
    74         TInt Publish(MAiPropertyExtension& aPlugin, TInt aContent, const TDesC8& aBuf, TInt aIndex );
       
    75         TInt Publish(MAiPropertyExtension& aPlugin, TInt aContent, RFile& aFile, TInt aIndex );
       
    76         TInt Clean(MAiPropertyExtension& aPlugin, TInt aContent, TInt aIndex);
       
    77         TAny* Extension(TUid aUid);
       
    78         */
       
    79 
       
    80 
       
    81     private:    // New methods
       
    82 
       
    83          void SetupL();
       
    84          void SetupEmptyL();
       
    85 
       
    86          void Teardown();
       
    87 
       
    88          // void TestL();
       
    89 
       
    90          void TestPropertyL();
       
    91          // void TestProfilePublisher1L();
       
    92          // void TestProfilePublisher2L();
       
    93          void TestOperatorLogoPublisherL();
       
    94          void TestOperatorProgNamePublisherL();
       
    95          void TestOperatorNetinfoNamePublisher_LongL();
       
    96          void TestOperatorNetinfoNamePublisher_ShortL();
       
    97          void TestOperatorNetinfoNamePublisher_TagL();
       
    98          void TestOperatorProviderNamePublisher_InSPDINoPLMNL();
       
    99          void TestOperatorProviderNamePublisher_InSPDIPLMNL();
       
   100          void TestBTSAPPublisherL();
       
   101          void TestSimRegPublisherL();
       
   102          void TestHCZPublisherL();
       
   103          void TestCUGPublisherL();
       
   104          void TestMCNPublisherL();
       
   105          void TestContentRequest1L();
       
   106          void TestContentRequest2L();
       
   107          void TestContentRequest3L();
       
   108          void TestContentRequest4L();
       
   109          void TestContentRequest5L();
       
   110          void TestContentRequest6L();
       
   111          void TestContentRequest7L();
       
   112          void TestContentRequest8L();
       
   113          void TestContentRequest9L();
       
   114          void TestContentRequest10L();
       
   115          void TestContentRequest13L();
       
   116          void TestContentRequest14L();
       
   117          void TestContentRequest15L();
       
   118 
       
   119 
       
   120     private:    // Data
       
   121 
       
   122         EUNIT_DECLARE_TEST_TABLE;
       
   123 
       
   124         CHsContentPublisher* iPublisher;
       
   125 
       
   126         CContentObserver* iCache;
       
   127 
       
   128         RLibrary iLibrary;
       
   129         
       
   130 
       
   131 
       
   132     };
       
   133 
       
   134 #endif      //  __MT_DEVSTAPLG_H__
       
   135 
       
   136 // End of file