bluetoothengine/headsetsimulator/profiles/hfpprofile/inc/features/hfpcallinglineidentification.h
branchheadsetsimulator
changeset 60 90dbfc0435e3
equal deleted inserted replaced
59:02103bf20ee5 60:90dbfc0435e3
       
     1 /* 
       
     2  *
       
     3  * Copyright (c) <2010> Comarch S.A. and/or its subsidiary(-ies).
       
     4  * All rights reserved.
       
     5  * This component and the accompanying materials are made available
       
     6  * under the terms of the License "Eclipse Public License v1.0"
       
     7  * which accompanies this distribution, and is available
       
     8  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     9  *
       
    10  * Original Contributors:
       
    11  * Comarch S.A. - original contribution.
       
    12  *
       
    13  * Contributors:
       
    14  *
       
    15  * Description:
       
    16  *
       
    17  */
       
    18 
       
    19 #ifndef HSHFPCALLINGLINEIDENTIFICATION_H
       
    20 #define HSHFPCALLINGLINEIDENTIFICATION_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 #include "hfpfeaturecommons.h"
       
    25 
       
    26 class CHsHFPCommand;
       
    27 class CHsHFPSettings;
       
    28 
       
    29 /**
       
    30  * @brief Represents "Calling Line Identification" feature
       
    31  */
       
    32 class CHsHFPCallingLineIdentification : public CBase,
       
    33         public MHsHFPProcedureCommons
       
    34     {
       
    35 public:
       
    36     /**
       
    37      * Two-phased constructor.
       
    38      * 
       
    39      * @param aObserver feature observer
       
    40      * 
       
    41      * @return instance of class
       
    42      */
       
    43     static CHsHFPCallingLineIdentification* NewL(
       
    44             MHsHFPFeatureProviderObserver* aObserver);
       
    45 
       
    46     /**
       
    47      * Two-phased constructor.
       
    48      * 
       
    49      * @param aObserver feature observer
       
    50      * 
       
    51      * @return instance of class
       
    52      */
       
    53     static CHsHFPCallingLineIdentification* NewLC(
       
    54             MHsHFPFeatureProviderObserver* aObserver);
       
    55 
       
    56     /** 
       
    57      * Destructor
       
    58      */
       
    59     ~CHsHFPCallingLineIdentification();
       
    60 
       
    61 public:
       
    62     //Method inherited from MHsHFPProcedureCommons
       
    63     TInt ProcessCommand(const CHsHFPCommand &aInputCmd,
       
    64             CHsHFPCommand &aOutputCmd);
       
    65 
       
    66 private:
       
    67     /**
       
    68      * Constructor for performing 1st stage construction
       
    69      * 
       
    70      * @param aObserver feature observer
       
    71      */
       
    72     CHsHFPCallingLineIdentification(MHsHFPFeatureProviderObserver* aObserver);
       
    73 
       
    74     /**
       
    75      * Constructor for performing 2nd stage construction
       
    76      */
       
    77     void ConstructL();
       
    78 
       
    79 private:
       
    80     /** Pointer to observer */
       
    81     MHsHFPFeatureProviderObserver* iObserver;
       
    82 
       
    83     /** Denotes if OK command is expected */
       
    84     TBool iWaitingForOK;
       
    85 
       
    86     /** Profile setting */
       
    87     CHsHFPSettings* iSettings;
       
    88     };
       
    89 
       
    90 #endif // HSHFPCALLINGLINEIDENTIFICATION_H