41
|
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: Header file for property observer
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
#ifndef CAUTOAUDIOASYPROPERTYOBSERVER_H__
|
|
18 |
#define CAUTOAUDIOASYPROPERTYOBSERVER_H__
|
|
19 |
|
|
20 |
#include <e32base.h>
|
|
21 |
#include <e32property.h>
|
|
22 |
|
|
23 |
class MAutoAudioAsyPropertyListener;
|
|
24 |
|
|
25 |
/**
|
|
26 |
* This class follows PS key (informs when RTP streaming is enabled or disabled).
|
|
27 |
*/
|
|
28 |
NONSHARABLE_CLASS(CAutoAudioAsyPropertyObserver): public CActive
|
|
29 |
{
|
|
30 |
public:
|
|
31 |
/**
|
|
32 |
* Two-phase constructor
|
|
33 |
*/
|
|
34 |
static CAutoAudioAsyPropertyObserver* NewL ( TUid aCategory, TUint aKey, MAutoAudioAsyPropertyListener& aListener );
|
|
35 |
virtual ~CAutoAudioAsyPropertyObserver ();
|
|
36 |
|
|
37 |
protected:
|
|
38 |
// CActive
|
|
39 |
void DoCancel ();
|
|
40 |
void RunL ();
|
|
41 |
TInt RunError ( TInt aError );
|
|
42 |
|
|
43 |
private:
|
|
44 |
CAutoAudioAsyPropertyObserver ( TUid aCategory, TUint aKey, MAutoAudioAsyPropertyListener& aListener );
|
|
45 |
|
|
46 |
private:
|
|
47 |
/**
|
|
48 |
* Handle to P&S property.
|
|
49 |
* Own.
|
|
50 |
*/
|
|
51 |
RProperty iProperty;
|
|
52 |
|
|
53 |
/**
|
|
54 |
* The UID of the property we are listening for
|
|
55 |
*/
|
|
56 |
TUid iCategory;
|
|
57 |
|
|
58 |
/**
|
|
59 |
* The key we are listening for
|
|
60 |
*/
|
|
61 |
TUint iKey;
|
|
62 |
|
|
63 |
/**
|
|
64 |
* Reference to listener class.
|
|
65 |
* Now own.
|
|
66 |
*/
|
|
67 |
MAutoAudioAsyPropertyListener& iListener;
|
|
68 |
};
|
|
69 |
|
|
70 |
#endif // CAUTOAUDIOASYPROPERTYOBSERVER_H__
|