|
1 /* |
|
2 * Copyright (c) 2004-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 : MSIPResolvingResult.h |
|
16 * Part of : ServerResolver |
|
17 * Version : SIP/4.0 |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 /** |
|
25 @internalComponent |
|
26 */ |
|
27 #ifndef MSIPRESOLVINGRESULT_H |
|
28 #define MSIPRESOLVINGRESULT_H |
|
29 |
|
30 //INCLUDES |
|
31 #include <e32std.h> |
|
32 #include <in_sock.h> |
|
33 |
|
34 class RStringF; |
|
35 |
|
36 class MSIPResolvingResult |
|
37 { |
|
38 public: |
|
39 |
|
40 /** |
|
41 * Destructor. |
|
42 */ |
|
43 virtual ~MSIPResolvingResult () {} |
|
44 |
|
45 /** |
|
46 * Gets the resolved address. |
|
47 * |
|
48 * @returns the resolved address |
|
49 */ |
|
50 virtual TInetAddr& Address() = 0; |
|
51 |
|
52 /** |
|
53 * Gets the resolved protocol. |
|
54 * |
|
55 * @returns the resolved protocol |
|
56 */ |
|
57 virtual RStringF Protocol() = 0; |
|
58 |
|
59 /** |
|
60 * Sets this address failed. |
|
61 * Must be called when a transport error related to |
|
62 * this result occures. |
|
63 * @param aFailed the address has failed |
|
64 */ |
|
65 virtual void SetFailed(TBool aFailed) = 0; |
|
66 |
|
67 /** |
|
68 * Checks if sending to the address has failed. |
|
69 * @return ETrue if sending to the address has failed. |
|
70 * Otherwise EFalse. |
|
71 */ |
|
72 virtual TBool Failed() = 0; |
|
73 |
|
74 /** |
|
75 * Checks if the protocol can not be changed and must remain UDP. |
|
76 * @return ETrue must use UDP. |
|
77 * Otherwise EFalse. |
|
78 */ |
|
79 virtual TBool ForceUDP() = 0; |
|
80 }; |
|
81 |
|
82 #endif // MSIPRESOLVINGRESULT_H |