|
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 the License "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: |
|
15 * Implementation of class RFavouritesDbNotifier |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 // INCLUDE FILES |
|
22 |
|
23 #include "FavouritesDbNotifier.h" |
|
24 #include "FavouritesDb.h" |
|
25 #include "FavouritesMsg.h" |
|
26 |
|
27 // ================= MEMBER FUNCTIONS ======================= |
|
28 |
|
29 // --------------------------------------------------------- |
|
30 // RFavouritesDbNotifier::Open |
|
31 // --------------------------------------------------------- |
|
32 // |
|
33 EXPORT_C TInt RFavouritesDbNotifier::Open( RFavouritesDb& aDb ) |
|
34 { |
|
35 return RFavouritesHandle::Open( aDb, EFavengOpenNotifier, TIpcArgs() ); |
|
36 } |
|
37 |
|
38 // --------------------------------------------------------- |
|
39 // RFavouritesDbNotifier::NotifyAllEvents |
|
40 // --------------------------------------------------------- |
|
41 // |
|
42 EXPORT_C void RFavouritesDbNotifier::NotifyAllEvents( TRequestStatus& aStatus ) |
|
43 { |
|
44 SendReceive( EFavengNotifyAllEvents, TIpcArgs(), aStatus ); |
|
45 } |
|
46 |
|
47 // --------------------------------------------------------- |
|
48 // RFavouritesDbNotifier::NotifyChange |
|
49 // --------------------------------------------------------- |
|
50 // |
|
51 EXPORT_C void RFavouritesDbNotifier::NotifyChange( TRequestStatus& aStatus ) |
|
52 { |
|
53 SendReceive( EFavengNotifyChange, TIpcArgs(), aStatus ); |
|
54 } |
|
55 |
|
56 // --------------------------------------------------------- |
|
57 // RFavouritesDbNotifier::Cancel |
|
58 // --------------------------------------------------------- |
|
59 // |
|
60 EXPORT_C void RFavouritesDbNotifier::Cancel() |
|
61 { |
|
62 (void)SendReceive( EFavengNotifyCancel ); |
|
63 } |
|
64 |
|
65 // End of File |