|
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 : CSIPResolvingResult.h |
|
16 * Part of : ServerResolver |
|
17 * Version : SIP/4.0 |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 /** |
|
25 @internalComponent |
|
26 */ |
|
27 #ifndef CSIPRESOLVINGRESULT_H |
|
28 #define CSIPRESOLVINGRESULT_H |
|
29 |
|
30 //INCLUDES |
|
31 #include <e32base.h> |
|
32 #include <in_sock.h> |
|
33 #include <stringpool.h> |
|
34 #include "MSIPResolvingResult.h" |
|
35 |
|
36 // CLASS DEFINITION |
|
37 /** |
|
38 * CSIPResolvingResult implements a |
|
39 */ |
|
40 class CSIPResolvingResult : public CBase, public MSIPResolvingResult |
|
41 { |
|
42 public:// Constructors and destructor |
|
43 |
|
44 /** |
|
45 * Creates a new CSIPResolvingResult instance |
|
46 * and pushes it to CleanupStack |
|
47 * @pre if aForceUDP is ETrue, then aProtocol must be UDP |
|
48 * @param aAddr the resolved address |
|
49 * @param aProtocol the resolved protocol |
|
50 * @param aForceUDP ETrue if protocol must remain UDP. |
|
51 * @returns a new instance of CSIPResolvingResult |
|
52 */ |
|
53 static CSIPResolvingResult* NewLC( TInetAddr aAddr, |
|
54 RStringF aProtocol, |
|
55 TBool aForceUDP ); |
|
56 |
|
57 /** |
|
58 * Destructor. |
|
59 */ |
|
60 ~CSIPResolvingResult(); |
|
61 |
|
62 public:// From MSIPResolvingResult |
|
63 |
|
64 TInetAddr& Address(); |
|
65 |
|
66 RStringF Protocol(); |
|
67 |
|
68 void SetFailed(TBool aFailed); |
|
69 |
|
70 TBool Failed(); |
|
71 |
|
72 TBool ForceUDP(); |
|
73 |
|
74 public: |
|
75 |
|
76 TInt SetProtocol( RStringF aProtocol ); |
|
77 |
|
78 private:// Constructors and destructor |
|
79 |
|
80 CSIPResolvingResult( TInetAddr aAddr, |
|
81 RStringF aProtocol, |
|
82 TBool aForceUDP ); |
|
83 |
|
84 private:// Data |
|
85 |
|
86 RStringF iProtocol; |
|
87 |
|
88 TInetAddr iAddr; |
|
89 |
|
90 TBool iFailed; |
|
91 |
|
92 TBool iForceUDP; |
|
93 }; |
|
94 |
|
95 #endif // CSIPRESOLVINGRESULT_H |
|
96 |
|
97 // End of File |