0
|
1 |
/*
|
|
2 |
* Copyright (c) 2004 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: This file contains definitions of Audio Clients List Manager.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
#ifndef AUDIOCLIENTSLISTMANAGERAO_H
|
|
22 |
#define AUDIOCLIENTSLISTMANAGERAO_H
|
|
23 |
|
|
24 |
#include <e32base.h>
|
|
25 |
#include <GlobalAudioSettings.h>
|
|
26 |
#include <e32property.h>
|
|
27 |
|
|
28 |
/**
|
|
29 |
* Defines audio clients list manager class.
|
|
30 |
*
|
|
31 |
* @lib GlobalAudioSettings.lib
|
|
32 |
* @since Series 60 3.2
|
|
33 |
*/
|
|
34 |
class CAudioClientsListManagerAO: public CActive
|
|
35 |
{
|
|
36 |
public:
|
|
37 |
// 2 Phase constructor
|
|
38 |
static CAudioClientsListManagerAO* NewL(
|
|
39 |
CGlobalAudioSettings& aGlobalAudioSettings,
|
|
40 |
RPointerArray<MAudioClientsListObserver>& aArray,
|
|
41 |
TUint32 aKey );
|
|
42 |
// Destructor
|
|
43 |
~CAudioClientsListManagerAO();
|
|
44 |
// Starts monitoring audio clients list
|
|
45 |
TInt MonitorStart();
|
|
46 |
// Stops monitoring audio clients list
|
|
47 |
TInt MonitorStop();
|
|
48 |
// Returns the audio clients list
|
|
49 |
TInt GetAudioClientsList(
|
|
50 |
CGlobalAudioSettings::TAudioClientListType aType,
|
|
51 |
RArray<TProcessId>& aList );
|
|
52 |
|
|
53 |
protected:
|
|
54 |
// From CActive begins
|
|
55 |
void RunL();
|
|
56 |
void DoCancel();
|
|
57 |
TInt RunError(TInt aError);
|
|
58 |
// From CActive ends
|
|
59 |
|
|
60 |
private:
|
|
61 |
// Constructor
|
|
62 |
CAudioClientsListManagerAO(CGlobalAudioSettings& aGlobalAudioSettings,
|
|
63 |
RPointerArray<MAudioClientsListObserver>& aArray,
|
|
64 |
TUint32 aKey );
|
|
65 |
// 2nd phase constructor
|
|
66 |
void ConstructL();
|
|
67 |
|
|
68 |
private:
|
|
69 |
// Handle to property
|
|
70 |
RProperty iActiveAudioClients;
|
|
71 |
// Reference to CGlobalAudioSettings
|
|
72 |
CGlobalAudioSettings& iGlobalAudioSettings;
|
|
73 |
// List of Audio Clients List Observer objects
|
|
74 |
RPointerArray<MAudioClientsListObserver>& iAudioClientsListObserverArray;
|
|
75 |
//P&S key
|
|
76 |
TUint32 iKey;
|
|
77 |
};
|
|
78 |
|
|
79 |
#endif // AUDIOCLIENTSLISTMANAGERAO_H
|
|
80 |
|
|
81 |
// End of file
|