|
1 /* |
|
2 * Copyright (c) 2005-2009 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: |
|
15 * Name : CSIPClientData.h |
|
16 * Part of : SIP Client Resolver |
|
17 * Version : 1.0 |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 /** |
|
25 @internalComponent |
|
26 */ |
|
27 #ifndef CSIPCLIENTDATA_H |
|
28 #define CSIPCLIENTDATA_H |
|
29 |
|
30 // INCLUDES |
|
31 #include <e32base.h> |
|
32 #include "MSipClient.h" |
|
33 |
|
34 // FORWARD DECLARATIONS |
|
35 class CSdpMediaField; |
|
36 |
|
37 // CLASS DEFINITION |
|
38 /** |
|
39 * CSIPClientData implements a data container for |
|
40 * SIP client information. |
|
41 */ |
|
42 class CSIPClientData : public CBase, public MSipClient |
|
43 { |
|
44 public: // Constructors and destructor |
|
45 |
|
46 static CSIPClientData* NewL( const TUid& aImplementationUid, |
|
47 const TUid& aClientUid, |
|
48 TBool aRomBased, |
|
49 TBool aHasDynamicCapabilities ); |
|
50 |
|
51 static CSIPClientData* NewLC( const TUid& aImplementationUid, |
|
52 const TUid& aClientUid, |
|
53 TBool aRomBased, |
|
54 TBool aHasDynamicCapabilities ); |
|
55 |
|
56 ~CSIPClientData(); |
|
57 |
|
58 |
|
59 public: // From MSipClient |
|
60 |
|
61 const TUid& ClientUid() const; |
|
62 TBool RomBased() const; |
|
63 TBool AllowStarting() const; |
|
64 RPointerArray< CSIPHeaderBase >& SIPHeaders(); |
|
65 CSIPFeatureSet& SIPFeatureSet(); |
|
66 CSdpDocument& SdpDocument(); |
|
67 |
|
68 |
|
69 public: // New methods |
|
70 |
|
71 const TUid& ImplementationUid() const; |
|
72 |
|
73 TBool HasDynamicCapabilities() const; |
|
74 |
|
75 void SetAllowStarting( TBool aAllowStarting ); |
|
76 |
|
77 void AddMediaFieldL( CSdpMediaField* aMediaField ); |
|
78 |
|
79 CSIPClientData* CloneWithoutCapabilitiesLC(); |
|
80 |
|
81 private: // Constructors |
|
82 |
|
83 /// Default constructor. |
|
84 CSIPClientData( const TUid& aImplementationUid, |
|
85 const TUid& aClientUid, |
|
86 TBool aRomBased, |
|
87 TBool aHasDynamicCapabilities ); |
|
88 |
|
89 /// 2nd phase constructor. |
|
90 void ConstructL(); |
|
91 |
|
92 private: // Data |
|
93 |
|
94 // Implementation Uid of the client's ECom plugin |
|
95 TUid iImplementationUid; |
|
96 |
|
97 // Client Uid. |
|
98 TUid iClientUid; |
|
99 |
|
100 // ETrue if application is ROM base, EFalse otherwise. |
|
101 TBool iRomBased; |
|
102 |
|
103 // ETrue if the client provides its capabilities dynamically |
|
104 TBool iHasDynamicCapabilities; |
|
105 |
|
106 // ETrue if application is allowed to be started, EFalse otherwise. |
|
107 TBool iAllowStarting; |
|
108 |
|
109 // SIP header collection. Owned. |
|
110 RPointerArray< CSIPHeaderBase > iSIPHeaders; |
|
111 |
|
112 // SIP feature set. Owned |
|
113 CSIPFeatureSet* iSIPFeatureSet; |
|
114 |
|
115 // Sdp document object. Owned. |
|
116 CSdpDocument* iSdpDocument; |
|
117 }; |
|
118 |
|
119 #endif // CSIPCLIENTDATA_H |