|
1 /* |
|
2 * Copyright (c) 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: SIP URI descriptor |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef TPHCNTSIPURI_H |
|
20 #define TPHCNTSIPURI_H |
|
21 |
|
22 #include <e32std.h> |
|
23 |
|
24 /** |
|
25 * SIP URI descriptor |
|
26 * |
|
27 * @lib PhoneCntFinder |
|
28 * @since S60 v3.1 |
|
29 */ |
|
30 class TPhCntSipURI |
|
31 { |
|
32 |
|
33 public: |
|
34 |
|
35 /** |
|
36 * Constructor. |
|
37 * |
|
38 * @since S60 v3.1 |
|
39 * @param aSipURI Sip URI. |
|
40 */ |
|
41 TPhCntSipURI( |
|
42 const TDesC& aSipURI, |
|
43 TInt aDigitsForMatching = 0 ); |
|
44 |
|
45 /** |
|
46 * Gives the username part. |
|
47 * |
|
48 * @since S60 v3.1 |
|
49 * @return Username part of SIP URI. |
|
50 */ |
|
51 const TDesC& UserNamePart() const; |
|
52 |
|
53 /** |
|
54 * Gives the sip uri, where extra SIP chars has been removed. |
|
55 * Sip uri will be in format "username@domain" |
|
56 * |
|
57 * @since S60 v3.1 |
|
58 * @return Sip uri |
|
59 */ |
|
60 const TDesC& SipURI() const; |
|
61 |
|
62 /** |
|
63 * Gives the fixed username part. |
|
64 * User part is |
|
65 * |
|
66 * @since S60 v3.1 |
|
67 * @return Username part of SIP URI. |
|
68 */ |
|
69 const TDesC& FixedUserNamePart() const; |
|
70 |
|
71 protected: |
|
72 |
|
73 void RemoveUnusedChars(); |
|
74 |
|
75 private: // Data |
|
76 |
|
77 /** |
|
78 * Descriptor containing sip uri. |
|
79 */ |
|
80 const TDesC& iSipURI; |
|
81 |
|
82 /** |
|
83 * Sip uri, where not needed parts has been removed. |
|
84 */ |
|
85 TPtrC iSipURIStripped; |
|
86 |
|
87 /** |
|
88 * Username part. |
|
89 */ |
|
90 TPtrC iUserNamePart; |
|
91 |
|
92 /** |
|
93 * Fixed username part. |
|
94 */ |
|
95 TPtrC iFixedUserNamePart; |
|
96 |
|
97 /** |
|
98 * Digits for matchig. |
|
99 */ |
|
100 TInt iDigitsForMatching; |
|
101 |
|
102 }; |
|
103 |
|
104 |
|
105 |
|
106 #endif // TPHCNTSIPURI_H |