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