|
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 : CSIPNaptrOrigDomain.h |
|
16 * Part of : ServerResolver |
|
17 * Version : SIP/4.0 |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 /** |
|
25 @internalComponent |
|
26 */ |
|
27 #ifndef CSIPNAPTRORIGDOMAIN_H |
|
28 #define CSIPNAPTRORIGDOMAIN_H |
|
29 |
|
30 //INCLUDES |
|
31 #include "CSIPQueryConditionBase.h" |
|
32 #include "_sipcodecdefs.h" |
|
33 |
|
34 // FORWARD DECLARATIONS |
|
35 class CSIPQueryBase; |
|
36 class MSIPServerQuery; |
|
37 |
|
38 // CLASS DEFINITION |
|
39 /** |
|
40 * CSIPNaptrOrigDomain implements a |
|
41 */ |
|
42 class CSIPNaptrOrigDomain : public CSIPQueryConditionBase |
|
43 { |
|
44 public:// Constructors and destructor |
|
45 |
|
46 /** |
|
47 * Creates a new CSIPNaptrOrigDomain instance |
|
48 * @param aServerQuery an MSIPServerQuery reference |
|
49 * @returns a new instance of CSIPNaptrOrigDomain |
|
50 */ |
|
51 static CSIPNaptrOrigDomain* NewL( MSIPServerQuery& aServerQuery ); |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 ~CSIPNaptrOrigDomain(); |
|
57 |
|
58 public: |
|
59 |
|
60 CSIPQueryBase& QueryBase(); |
|
61 |
|
62 CSIPQueryConditionBase* HandleQueryResultL( TInt aStatus ); |
|
63 |
|
64 private:// Constructors and destructor |
|
65 |
|
66 void ConstructL(); |
|
67 |
|
68 CSIPNaptrOrigDomain( MSIPServerQuery& aServerQuery ); |
|
69 |
|
70 private:// New functions for internal use |
|
71 |
|
72 void CheckIfOnlyUDPResultsL() const; |
|
73 |
|
74 private:// Data |
|
75 |
|
76 CSIPQueryBase* iQueryBase; |
|
77 |
|
78 MSIPServerQuery& iServerQuery; |
|
79 |
|
80 private: // For testing purposes |
|
81 |
|
82 UNIT_TEST(CSIPNaptrOrigDomainTest) |
|
83 }; |
|
84 #endif // end of CSIPNAPTRORIGDOMAIN_H |
|
85 |
|
86 // End of File |