|
1 /* |
|
2 * Copyright (c) 2009 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: Interface for controlling msg tone |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MIMALERTINTERFACE_H |
|
19 #define MIMALERTINTERFACE_H |
|
20 |
|
21 |
|
22 #include <apgcli.h> |
|
23 #include <mdaaudiosampleplayer.h> |
|
24 #include <mdaaudiotoneplayer.h> |
|
25 #include <bldvariant.hrh> |
|
26 |
|
27 #include <centralrepository.h> |
|
28 #include <cenrepnotifyhandler.h> |
|
29 #include <barsc.h> |
|
30 #include <Profile.hrh> |
|
31 |
|
32 class MIMAlertManagerObserver; |
|
33 |
|
34 class MIMAlertInterface |
|
35 |
|
36 { |
|
37 public: |
|
38 |
|
39 virtual void PlayL(TUint32 aServiceId) = 0; |
|
40 |
|
41 virtual void Stop() = 0; |
|
42 |
|
43 virtual void SetVolume( TInt aVolume ) = 0; |
|
44 |
|
45 |
|
46 virtual void SetRingingType( TProfileRingingType aRingingType ) = 0; |
|
47 |
|
48 |
|
49 virtual void SetVibra( TBool aVibra) = 0; |
|
50 |
|
51 virtual void AddObserverL( const MIMAlertManagerObserver* aObserver ) = 0; |
|
52 |
|
53 virtual void RemoveObserver( const MIMAlertManagerObserver* aObserver ) = 0; |
|
54 |
|
55 |
|
56 |
|
57 virtual ~MIMAlertInterface(){}; |
|
58 |
|
59 |
|
60 }; |
|
61 |
|
62 |
|
63 #endif //MIMALERTINTERFACE_H |