|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // SIP extension events definition |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @publishedAll |
|
21 @released since v9.2 |
|
22 */ |
|
23 |
|
24 |
|
25 #ifndef SIPCONNPREFS_H |
|
26 #define SIPCONNPREFS_H |
|
27 |
|
28 #include <connpref.h> |
|
29 #include <cdbcols.h> |
|
30 |
|
31 /** The numeric value of SIP protocol family ID .*/ |
|
32 const TUint KAFSip = 0x10000; |
|
33 |
|
34 |
|
35 struct SSipConnPref |
|
36 /** |
|
37 This contains the information about the Id of the profile |
|
38 @publishedAll |
|
39 @released since v9.2 |
|
40 */ |
|
41 { |
|
42 /** The numeric value of SIP Profile ID **/ |
|
43 TUint32 iProfileId; |
|
44 }; |
|
45 |
|
46 |
|
47 class TSipConnPref : public TConnPref |
|
48 /** |
|
49 This contains the information about the type of the connection preferences used by the SIP in the form of the profiles |
|
50 @publishedAll |
|
51 @released since v9.2 |
|
52 */ |
|
53 { |
|
54 public: |
|
55 /** Constructor. */ |
|
56 TSipConnPref(); |
|
57 /** Sets the profile ID same as the prameter **/ |
|
58 inline void SetProfileId(TUint32 aProfileId); |
|
59 /** Gets the default profile ID **/ |
|
60 inline TUint32 GetProfileId() const; |
|
61 /** cast to appropriate SIP connection provider type **/ |
|
62 inline static TSipConnPref& TSipConnPref::Cast(const TConnPref& aPref); |
|
63 |
|
64 protected: |
|
65 inline SSipConnPref* PrefPtr() const; |
|
66 |
|
67 }; |
|
68 |
|
69 #include "sipconnpref.inl" |
|
70 |
|
71 #endif // sipconnpref.h |