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 __MUSAVASIPPROFILEAVAILABILITY_H__ |
|
21 #define __MUSAVASIPPROFILEAVAILABILITY_H__ |
|
22 |
|
23 |
|
24 #include "musunittesting.h" |
|
25 #include "musavaavailability.h" |
|
26 #include "musavasipconnectionadapter.h" |
|
27 #include "musavasipprofileregistryadapter.h" |
|
28 #include <sipprofileregistryobserver.h> |
|
29 #include <e32base.h> |
|
30 |
|
31 |
|
32 class CMusAvaSettingsImp; |
|
33 class CSIPProfileRegistry; |
|
34 class CSIPProfile; |
|
35 class MMusAvaObserver; |
|
36 class CMusAvaSharedObject; |
|
37 class CSIPProfile; |
|
38 class CSIPProfileRegistry; |
|
39 class CSIPConnection; |
|
40 |
|
41 |
|
42 /** |
|
43 * Implemets register vailability. |
|
44 * |
|
45 * Provide interface for the client to availability class. |
|
46 * |
|
47 * @lib musavailabilityplugin.lib |
|
48 * @since S60 v3.2 |
|
49 */ |
|
50 class CMusAvaSipprofileAvailability : public CMusAvaAvailability |
|
51 |
|
52 { |
|
53 public: |
|
54 |
|
55 /** |
|
56 * Two-phased constructor |
|
57 * |
|
58 * @since S60 v3.2 |
|
59 * @param aObserver Pointer to observer intercase |
|
60 * @param aModules is data container |
|
61 * @return Returns pointer to CMusAvaInterface object |
|
62 */ |
|
63 static CMusAvaSipprofileAvailability* NewL( |
|
64 MMusAvaAvailabilityObserver& aObserver); |
|
65 |
|
66 |
|
67 static CMusAvaSipprofileAvailability* NewLC( |
|
68 MMusAvaAvailabilityObserver& aObserver); |
|
69 |
|
70 /** |
|
71 * Destructor |
|
72 */ |
|
73 |
|
74 ~CMusAvaSipprofileAvailability(); |
|
75 |
|
76 protected: |
|
77 |
|
78 /** |
|
79 * Constructor |
|
80 * |
|
81 * @since S60 v3.2 |
|
82 * @param aObserver Pointer to observer intercase |
|
83 * @param aName availability name |
|
84 * @param aModules is data container |
|
85 * @return |
|
86 */ |
|
87 CMusAvaSipprofileAvailability( |
|
88 MMusAvaAvailabilityObserver& aObserver); |
|
89 |
|
90 void ConstructL(); |
|
91 |
|
92 // from base class CMusAvaAvailability |
|
93 |
|
94 public: |
|
95 |
|
96 /** |
|
97 * Executes for the availability. |
|
98 */ |
|
99 virtual void DoExecuteL(); |
|
100 |
|
101 /** |
|
102 * Stop the execution. |
|
103 */ |
|
104 virtual void Stop(); |
|
105 |
|
106 /** |
|
107 * From CMusAvaAvailability. |
|
108 * Returns availability name. |
|
109 * |
|
110 * @return Name of *this* availability. |
|
111 */ |
|
112 virtual MMusAvaObserver::TAvailabilityName Name(); |
|
113 |
|
114 private: // Helpers |
|
115 |
|
116 /** |
|
117 * Creates proposal sip address and send event. |
|
118 * |
|
119 */ |
|
120 TBool IsProfileExist(); |
|
121 |
|
122 /** |
|
123 * Sets the iState to current state of sip profile existence. |
|
124 * |
|
125 */ |
|
126 void SetProfileState(); |
|
127 |
|
128 private: // Data |
|
129 |
|
130 /** |
|
131 * Pointer to CMusAvaSharedObject object |
|
132 */ |
|
133 CMusAvaSharedObject* iSharedObj; |
|
134 |
|
135 |
|
136 MUS_UNITTEST( UT_CMusAvaSipprofileAvailability ) |
|
137 }; |
|
138 |
|
139 |
|
140 #endif // __MUSAVASIPPROFILEAVAILABILITY_H__ |
|
141 |
|