|
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: Abstract interface for observable classes |
|
15 * |
|
16 * Copyright © 2007 Nokia. All rights reserved. |
|
17 * This material, including documentation and any related computer |
|
18 * programs, is protected by copyright controlled by Nokia. All |
|
19 * rights are reserved. Copying, including reproducing, storing, |
|
20 * adapting or translating, any or all of this material requires the |
|
21 * prior written consent of Nokia. This material also contains |
|
22 * confidential information which may not be disclosed to others |
|
23 * without the prior written consent of Nokia. |
|
24 |
|
25 * |
|
26 * |
|
27 */ |
|
28 |
|
29 |
|
30 // INCLUDE FILES |
|
31 #include "Cam.hrh" |
|
32 |
|
33 #ifndef MCAMOBSERVABLE_H |
|
34 #define MCAMOBSERVABLE_H |
|
35 |
|
36 class MCamObserver; |
|
37 |
|
38 class MCamObservable |
|
39 { |
|
40 public: |
|
41 /** |
|
42 * Registers an observer if not previously registered |
|
43 * @param aObserver The observer concerned |
|
44 * @since 3.0 |
|
45 */ |
|
46 virtual void RegisterObserverL( MCamObserver* aObserver ) = 0; |
|
47 |
|
48 /** |
|
49 * Deregisters an observer if previously registered |
|
50 * @param aObserver The observer concerned |
|
51 * @since 3.0 |
|
52 */ |
|
53 virtual void DeregisterObserver( MCamObserver* aObserver ) = 0; |
|
54 |
|
55 /** |
|
56 * Broadcasts an event code to all registered observers |
|
57 * @param aEvent The event code |
|
58 */ |
|
59 virtual void BroadcastEvent( TCamObserverEvent aEvent ) = 0; |
|
60 }; |
|
61 |
|
62 #endif // MCAMOBSERVABLE_H |