cellular/telephonysettings/tsrc/public/basic/PhoneSettingsTest/inc/PhoneSettingsTestCli.h
changeset 0 ff3b6d0fd310
equal deleted inserted replaced
-1:000000000000 0:ff3b6d0fd310
       
     1 /*
       
     2 * Copyright (c) 2002 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: Declaration of CPhoneSettingsTestCli class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef PHONESETTINGSTESTCLI_H
       
    21 #define PHONESETTINGSTESTCLI_H
       
    22 
       
    23 #include <e32base.h>
       
    24 #include "PhoneSettingsTestParser.h"
       
    25 
       
    26 // Forward declarations 
       
    27 class CPhoneSettingsTestCliObserver;
       
    28 class CPsetCli; 
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 NONSHARABLE_CLASS(CPhoneSettingsTestCli) : public CBase 
       
    33     
       
    34     {
       
    35     public:  // Constructors and destructor
       
    36 
       
    37         /**
       
    38         * Two-phased constructor.
       
    39         */
       
    40         static CPhoneSettingsTestCli* NewL(
       
    41             CPhoneSettingsTestParser& aPhoneSettingsTestParser,
       
    42             MPhoneSettingsTestMessageHandler& aPhoneSettingsTestMessageHandler );
       
    43 
       
    44         /**
       
    45         * Destructor.
       
    46         */
       
    47         virtual ~CPhoneSettingsTestCli();
       
    48 
       
    49     private:
       
    50 
       
    51         /**
       
    52         * C++ default constructor.
       
    53         */
       
    54         CPhoneSettingsTestCli(
       
    55                     CPhoneSettingsTestParser& aPhoneSettingsTestParser,
       
    56                     MPhoneSettingsTestMessageHandler& aPhoneSettingsTestMessageHandler );
       
    57 
       
    58         /**
       
    59         * By default Symbian 2nd phase constructor is private.
       
    60         */
       
    61         void ConstructL();
       
    62 
       
    63     private: // Functions for handling CActiveSchedulerWait 
       
    64     
       
    65         /**
       
    66         * CActiveSchedulerWait callback function  
       
    67         */        
       
    68         static TInt DoCallBackL( TAny* aAny );
       
    69          
       
    70         /**
       
    71         * CActiveSchedulerWait wait function 
       
    72         */        
       
    73         void WaitTimer( TInt aWaitTime );
       
    74         
       
    75         /**
       
    76         * CActiveSchedulerWait stop function 
       
    77         */        
       
    78         void Stop();
       
    79 
       
    80     public: // Test functions 
       
    81     
       
    82         /**
       
    83         * SetupL 
       
    84         * Set up tester 
       
    85         */        
       
    86         void SetupL();
       
    87         
       
    88         /**
       
    89         * TearDownL
       
    90         * Cleanup tester 
       
    91         */        
       
    92         void TearDownL();
       
    93             
       
    94         /**
       
    95         * Test CPsetCli construction and destruction 
       
    96         * Function type: Library
       
    97         */        
       
    98         TInt TestCPsetCliConstructAndDestructL(TTestResult& aResult);
       
    99 
       
   100         /**
       
   101         * Test CPsetCli::CancelAll
       
   102         * Function type: Library
       
   103         */        
       
   104         TInt TestCancelAll(TTestResult& aResult);
       
   105 
       
   106         /**
       
   107         * Test CPsetCli::GetClipModeL
       
   108         * Function type: Library
       
   109         */        
       
   110         TInt TestGetClipModeL(TTestResult& aResult);
       
   111 
       
   112         /**
       
   113         * Test CPsetCli::GetClirModeL
       
   114         * Function type: Library
       
   115         */        
       
   116         TInt TestGetClirModeL(TTestResult& aResult);
       
   117 
       
   118         /**
       
   119         * Test CPsetCli::GetCnapL
       
   120         * Function type: Library
       
   121         */        
       
   122         TInt TestGetCnapL(TTestResult& aResult);
       
   123 
       
   124         /**
       
   125         * Test CPsetCli::GetColpModeL
       
   126         * Function type: Library
       
   127         */        
       
   128         TInt TestGetColpModeL(TTestResult& aResult);
       
   129 
       
   130         /**
       
   131         * Test CPsetCli::GetColrModeL
       
   132         * Function type: Library
       
   133         */        
       
   134         TInt TestGetColrModeL(TTestResult& aResult);
       
   135 
       
   136         /**
       
   137         * Test CPsetCli::SetRequestObserver
       
   138         * Function type: Library
       
   139         */        
       
   140         TInt TestSetRequestObserver(TTestResult& aResult);
       
   141         
       
   142     private: // Data
       
   143         
       
   144         // Reference to test data parsing interface object
       
   145         CPhoneSettingsTestParser& iTestParser; 
       
   146 
       
   147         // Reference to logging message interface object        
       
   148         MPhoneSettingsTestMessageHandler& iTestMessageHandler; 
       
   149         
       
   150         // Pointer to Phone Settings Cli Observer object 
       
   151         CPhoneSettingsTestCliObserver* iPhoneSettingsTestCliObserver;
       
   152 
       
   153         // Pointer to Phone Settings Request Observer object 
       
   154         CPhoneSettingsTestPsetRequestObserver* iPhoneSettingsTestPsetRequestObserver;	    
       
   155 	            
       
   156         // Pointer to Phone Settings Container object 
       
   157         CPsetContainer* iPsetContainer; 
       
   158         
       
   159         // Pointer to Phone Settings Cli object 
       
   160         CPsetCli* iPsetCli; 
       
   161         
       
   162         // RMobilePhone object 
       
   163         RMobilePhone iPhone; 
       
   164     	
       
   165     	// RTelServer object     	
       
   166     	RTelServer iTelServer; 
       
   167     	
       
   168     	// RMobileLine object 
       
   169     	RMobileLine iLine; 	  
       
   170     	
       
   171     	// Instance of scheduler wait class        
       
   172         CActiveSchedulerWait iWaitTimer;               
       
   173     };
       
   174 
       
   175 #endif      // PHONESETTINGSTESTCLI_H
       
   176 
       
   177 // End of File