mmserv/callaudiocontrol/inc/CallAudioControlProperty.h
changeset 0 71ca22bcf22a
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     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:  Defines the CallAudioControlProperty class used by CallAudioControl
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef CallAudioControlProperty_H
       
    19 #define CallAudioControlProperty_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <e32base.h>
       
    23 #include <e32property.h> 
       
    24 #include "CallAudioControlUtility.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CCallAudioControlImpl;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 class CCallAudioControlProperty : public CActive
       
    31     {
       
    32 
       
    33 public:
       
    34 
       
    35     static CCallAudioControlProperty* NewL(
       
    36             CCallAudioControlImpl* aImplParent, const TUid aUid,
       
    37             const TUint32 aKey, TAction aAction);
       
    38 
       
    39     ~CCallAudioControlProperty();
       
    40 
       
    41     void Subscribe();
       
    42     void Unsubscribe();
       
    43     TInt Get(TInt& aValue);
       
    44     TInt Set(TInt aValue);
       
    45 private:
       
    46 
       
    47     // For CActive:
       
    48     void DoCancel();
       
    49     void RunL();
       
    50     TInt RunError();
       
    51 
       
    52     void ConstructL(CCallAudioControlImpl* aImplParent, const TUid aUid,
       
    53             const TUint32 aKey, TAction aAction);
       
    54     CCallAudioControlProperty();
       
    55 
       
    56     // Data:
       
    57     CCallAudioControlImpl* iImplParent;
       
    58     RProperty iProperty;
       
    59     //TRequestStatus iStatus; -MB- REMOVED
       
    60     TAction iAction;
       
    61     // TBool iSubscribed;	
       
    62 
       
    63     };
       
    64 
       
    65 #endif      // CallAudioControlProperty_H
       
    66 // End of File