|
1 /* |
|
2 * Copyright (c) 2005-2006 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: This is client interface class for SIP-server |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __MUSAVASIPSTUB_H__ |
|
20 #define __MUSAVASIPSTUB_H__ |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <sip.h> |
|
25 |
|
26 class CMusAvaSharedObject; |
|
27 class CSIP; |
|
28 class CMusAvaSipObserver; |
|
29 class MSIPObserver; |
|
30 class MSIPConnectionObserver; |
|
31 class CMusAvaSipConnectionObserver; |
|
32 |
|
33 /** |
|
34 * CMusAvaSIPStub class represent the interface for module fetcher. |
|
35 * |
|
36 * This interface class encapsulates module selection for availability Plug-in. |
|
37 * |
|
38 * @lib musavailabilityplugin.lib |
|
39 * @since S60 v3.2 |
|
40 */ |
|
41 |
|
42 class CMusAvaSIPStub : public CBase |
|
43 { |
|
44 public: |
|
45 |
|
46 |
|
47 /** |
|
48 * Two-phased constructor |
|
49 * |
|
50 * @since S60 v3.2 |
|
51 * @param aCMusAvaSharedObj Pointer to CMusAvaSharedObject |
|
52 * @return Returns pointer to CMusAvaSIPStub object |
|
53 */ |
|
54 static CMusAvaSIPStub* NewL( CMusAvaSharedObject& aMusAvaSharedObject ); |
|
55 |
|
56 /** |
|
57 * Destructor |
|
58 * |
|
59 * @since S60 v3.2 |
|
60 * @param |
|
61 * @return |
|
62 */ |
|
63 |
|
64 virtual ~CMusAvaSIPStub(); |
|
65 |
|
66 protected: |
|
67 |
|
68 /** |
|
69 * Constructor |
|
70 * |
|
71 * @since S60 v3.2 |
|
72 * @param aCMusAvaSharedObj Pointer to CMusAvaSharedObject |
|
73 * @return |
|
74 */ |
|
75 |
|
76 CMusAvaSIPStub( CMusAvaSharedObject& aMusAvaSharedObject ); |
|
77 |
|
78 /** |
|
79 * Perform the second phase construction of a |
|
80 * CMusAvaSIPStub object |
|
81 * |
|
82 * @since S60 v3.2 |
|
83 * @param |
|
84 * @return |
|
85 */ |
|
86 |
|
87 void ConstructL(); |
|
88 |
|
89 public: |
|
90 |
|
91 /** |
|
92 * Returns MSIPConnectionObserver object |
|
93 * |
|
94 * @since S60 v3.2 |
|
95 * @param |
|
96 * @return referense to MSIPConnectionObserver |
|
97 */ |
|
98 MSIPConnectionObserver& SIPConnection(); |
|
99 |
|
100 /** |
|
101 * Returns CSip object |
|
102 * |
|
103 * @since S60 v3.2 |
|
104 * @param |
|
105 * @return referense to Sip Object |
|
106 */ |
|
107 CSIP& Sip(); |
|
108 |
|
109 /** |
|
110 * Returns MSIPObserver object |
|
111 * |
|
112 * @since S60 v3.2 |
|
113 * @param |
|
114 * @return rreference to MSIPObserver object |
|
115 */ |
|
116 MSIPObserver& SIPObserver(); |
|
117 |
|
118 private: |
|
119 |
|
120 /** |
|
121 * Pointer to CMusAvaSharedObject object |
|
122 */ |
|
123 CMusAvaSharedObject* iMusAvaSharedObject; |
|
124 |
|
125 /** |
|
126 * Pointer to CSIP object |
|
127 */ |
|
128 CSIP* iSip; |
|
129 |
|
130 /** |
|
131 * SIP reference counter |
|
132 */ |
|
133 TInt iSipRefCounter; |
|
134 |
|
135 /** |
|
136 * Pointer to CMusAvaSipObserver object |
|
137 */ |
|
138 CMusAvaSipObserver* iSipObserver; |
|
139 |
|
140 /** |
|
141 * Pointer to CMusAvaSipConnectionObserver object |
|
142 */ |
|
143 CMusAvaSipConnectionObserver* iSipConnectionObserver; |
|
144 |
|
145 }; |
|
146 |
|
147 #endif |
|
148 |