|
1 /* |
|
2 * Copyright (c) 2005-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: Provide interface for the client requestin register availability. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __MUSAVAPROFILEREGISTRYADAPTERSTUB_H__ |
|
21 #define __MUSAVAPROFILEREGISTRYADAPTERSTUB_H__ |
|
22 |
|
23 |
|
24 #include "musunittesting.h" |
|
25 #include "musavasipprofileregistryadapter.h" |
|
26 #include <e32base.h> |
|
27 |
|
28 |
|
29 class MSIPProfileRegistryObserver; |
|
30 |
|
31 /** |
|
32 * Implemets register vailability. |
|
33 * |
|
34 * Provide interface for the client to availability class. |
|
35 * |
|
36 * @lib musavailabilityplugin.lib |
|
37 * @since S60 v3.2 |
|
38 */ |
|
39 class CMusAvaProfileRegistryAdapterStub : public MMusAvaSipProfileRegistryAdapter |
|
40 { |
|
41 public: |
|
42 |
|
43 /** |
|
44 * Two-phased constructor |
|
45 * |
|
46 * @since S60 v3.2 |
|
47 * @return Returns pointer to MMusAvaSipProfileRegistryAdapter object |
|
48 */ |
|
49 static CMusAvaProfileRegistryAdapterStub* NewL(); |
|
50 |
|
51 |
|
52 static CMusAvaProfileRegistryAdapterStub* NewLC(); |
|
53 |
|
54 /** |
|
55 * Destructor |
|
56 */ |
|
57 |
|
58 ~CMusAvaProfileRegistryAdapterStub(); |
|
59 |
|
60 protected: |
|
61 |
|
62 /** |
|
63 * Constructor |
|
64 * |
|
65 * @since S60 v3.2 |
|
66 * @param aObserver Pointer to observer intercase |
|
67 * @param aName availability name |
|
68 * @param aModules is data container |
|
69 * @return |
|
70 */ |
|
71 CMusAvaProfileRegistryAdapterStub(); |
|
72 |
|
73 void ConstructL(); |
|
74 |
|
75 // from base class CMusAvaAvailability |
|
76 |
|
77 public: |
|
78 |
|
79 /** |
|
80 * An event related to SIP Profile has accorred |
|
81 * @param aProfileId a profile Id |
|
82 * @param aEvent an occurred event |
|
83 **/ |
|
84 virtual void ProfileRegistryEventOccurred( |
|
85 TUint32 aProfileId, |
|
86 MSIPProfileRegistryObserver::TEvent aEvent ); |
|
87 |
|
88 /** |
|
89 * An asynchronous error has occurred related to SIP profile |
|
90 * Event is send to those observers, who have the |
|
91 * corresponding profile instantiated. |
|
92 * @param aProfileId the id of failed profile |
|
93 * @param aError an occurred error |
|
94 */ |
|
95 virtual void ProfileRegistryErrorOccurred( |
|
96 TUint32 aProfileId, |
|
97 TInt aError ); |
|
98 |
|
99 |
|
100 private: // Data |
|
101 |
|
102 TUint32 iProfileId; |
|
103 MSIPProfileRegistryObserver::TEvent iEvent; |
|
104 TInt iError; |
|
105 |
|
106 MUS_UNITTEST( UT_CMusAvaSipProfileRegistryObserver ) |
|
107 }; |
|
108 |
|
109 |
|
110 #endif // __MUSAVAPROFILEREGISTRYADAPTERSTUB_H__ |