|
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: Implements MSIPProfileRegistryObserver interface. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CSIPPROFILEREGISTRYOBSERVER_H |
|
20 #define CSIPPROFILEREGISTRYOBSERVER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <sipprofileregistryobserver.h> |
|
24 |
|
25 // CLASS DECLARATION |
|
26 |
|
27 /** |
|
28 * Class implements MSIPProfileRegistryObserver interface. |
|
29 * Observs changes in the SIP profile registry. |
|
30 * @lib wpsipadapter.lib |
|
31 * @since 2.0 |
|
32 */ |
|
33 class CSIPProfileRegistryObserver : public CBase, |
|
34 public MSIPProfileRegistryObserver |
|
35 { |
|
36 public: |
|
37 |
|
38 static CSIPProfileRegistryObserver* NewLC(); |
|
39 static CSIPProfileRegistryObserver* NewL(); |
|
40 virtual ~CSIPProfileRegistryObserver(); |
|
41 |
|
42 /** |
|
43 * An event related to SIP Profile has accorred |
|
44 * @param aProfileId a profile Id |
|
45 * @param aEvent an occurred event |
|
46 */ |
|
47 void ProfileRegistryEventOccurred( TUint32 aProfileId, |
|
48 TEvent aEvent ); |
|
49 |
|
50 /** |
|
51 * An asynchronous error has occurred related to SIP profile |
|
52 * Event is send to those observers, who have the |
|
53 * corresponding profile instantiated. |
|
54 * @param aProfileId the id of failed profile |
|
55 * @param aError an occurred error |
|
56 */ |
|
57 void ProfileRegistryErrorOccurred( TUint32 aProfileId, TInt aError ); |
|
58 |
|
59 private: |
|
60 CSIPProfileRegistryObserver(); |
|
61 void ConstructL(); |
|
62 |
|
63 private: // Friend classes |
|
64 //friend class UT_CWPSIPAdapter; // For testing purpose |
|
65 |
|
66 }; |
|
67 |
|
68 #endif // CSIPPROFILEREGISTRYOBSERVER_H |
|
69 |
|
70 // End of file. |