1 /* |
|
2 * Copyright (c) 2002 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: CNssVASDBEventNotifier is the implementation class for interface |
|
15 * MNssVASDBEventNotifier. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CNSSVASDBEVENTNOTIFIER_H |
|
21 #define CNSSVASDBEVENTNOTIFIER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "nssvasmvasdbeventnotifier.h" |
|
25 #include "nssvascvasdatabase.h" |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * CNssVASDBEventNotifier is the implementation class for interface MNssVASDBEventNotifier. |
|
31 * @lib NssVASApi.lib |
|
32 * @since 2.8 |
|
33 */ |
|
34 class CNssVASDBEventNotifier : public CBase, public MNssVASDBEventNotifier |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * C++ constructor. |
|
40 */ |
|
41 CNssVASDBEventNotifier(CNssVASDatabase* aDatabase); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 virtual ~CNssVASDBEventNotifier(); |
|
47 |
|
48 public: // New functions |
|
49 |
|
50 /** |
|
51 * Add an observer to the VAS DB |
|
52 * @since 2.0 |
|
53 * @param aObserver, Observer to be added |
|
54 * @return none |
|
55 */ |
|
56 void AddObserverL(MNssVASDatabaseObserver* aObserver); |
|
57 |
|
58 public: // Functions from base classes |
|
59 |
|
60 /** |
|
61 * Remove an observer from VAS DB |
|
62 * @param aObserver, Observer to be removed |
|
63 * @leave KErrNotFound if given observer has never been added |
|
64 */ |
|
65 void RemoveObserverL(MNssVASDatabaseObserver* aObserver); |
|
66 |
|
67 |
|
68 private: |
|
69 |
|
70 /** |
|
71 * EPOC constructor |
|
72 */ |
|
73 void ConstructL(); |
|
74 |
|
75 private: |
|
76 // pointer to VAS Database |
|
77 CNssVASDatabase* iDatabase; |
|
78 }; |
|
79 |
|
80 #endif // CVASDBEVENTNOTIFIER_H |
|
81 |
|
82 // End of File |
|