|
1 /* |
|
2 * Copyright (c) 2002-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: An observer API for ETel store events |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef VPBKSIMSTOREIMPL_METELSTORENOTIFICATIONOBSERVER_H |
|
21 #define VPBKSIMSTOREIMPL_METELSTORENOTIFICATIONOBSERVER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 |
|
26 namespace VPbkSimStoreImpl { |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * An observer API for ETel store events |
|
34 * |
|
35 */ |
|
36 NONSHARABLE_CLASS( METelStoreNotificationObserver ) |
|
37 { |
|
38 public: // New functions |
|
39 |
|
40 /** |
|
41 * Called when ETel store notification arrives |
|
42 * @param aSimIndex the index that has been changed |
|
43 * @param aEvent the ETel store event bit field |
|
44 * @return ETrue if the class handles the update |
|
45 */ |
|
46 virtual TBool ETelStoreChanged( TInt aSimIndex, TUint32 aEvents ) = 0; |
|
47 |
|
48 /** |
|
49 * Called when ETel store notification is completed with error |
|
50 * @param aError the error code received from ETel |
|
51 * @return ETrue if the error is handled |
|
52 */ |
|
53 virtual TBool ETelStoreChangeError( TInt aError ) = 0; |
|
54 |
|
55 protected: // Destruction |
|
56 |
|
57 /** |
|
58 * Destructor. |
|
59 */ |
|
60 virtual ~METelStoreNotificationObserver() {} |
|
61 }; |
|
62 } // namespace VPbkSimStoreImpl |
|
63 #endif // VPBKSIMSTOREIMPL_METELSTORENOTIFICATIONOBSERVER_H |
|
64 |
|
65 // End of File |