mmserv/sts/tsrc/ststester/src/ststester.h
changeset 14 80975da52420
child 16 43d09473c595
equal deleted inserted replaced
12:5a06f39ad45b 14:80975da52420
       
     1 /*
       
     2  * Copyright (c) 2010 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  * The file defines the interface for the STS Tester.
       
    16  */
       
    17 
       
    18 #ifndef STSTESTER_H_
       
    19 #define STSTESTER_H_
       
    20 
       
    21 #include "testappbase.h"
       
    22 
       
    23 class CSystemToneService;
       
    24 
       
    25 enum TOperations
       
    26     {
       
    27     EOperation_PlayDefaultBeep = KOperation_FirstCustomIndex,
       
    28     EOperation_PlayClockAlarm,
       
    29     EOperation_StopClockAlarm
       
    30     };
       
    31 
       
    32 class CStsTester : public CTestAppBase
       
    33     {
       
    34 public:
       
    35     // Methods
       
    36 
       
    37     static void ExecuteL();
       
    38 
       
    39 private:
       
    40     // Methods
       
    41 
       
    42     CStsTester();
       
    43 
       
    44     ~CStsTester();
       
    45 
       
    46     void InitL();
       
    47 
       
    48     void Main();
       
    49 
       
    50     void MainL();
       
    51 
       
    52     // inherited from CTestAppBase
       
    53     virtual void ExecuteOperation(TInt aOperation,
       
    54             const TDesC& aOperationText);
       
    55 
       
    56 private:
       
    57     // Attributes
       
    58 
       
    59     enum TPlayState
       
    60         {
       
    61         EStopped, EPlaying
       
    62         };
       
    63 
       
    64     // STS attributes
       
    65     CSystemToneService* iSts;
       
    66     unsigned int iCurrentContext;
       
    67     TPlayState iPlayState;
       
    68 
       
    69     };
       
    70 
       
    71 #endif // STSTESTER_H_