|
1 /* |
|
2 * Copyright (c) 2007-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 : CSipAllowEventsStrategy2.h |
|
16 * Part of : SIP Client Resolver |
|
17 * Version : 1.0 |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 /** |
|
25 @internalComponent |
|
26 */ |
|
27 |
|
28 #ifndef CSIPALLOWEVENTSSTRATEGY2_H |
|
29 #define CSIPALLOWEVENTSSTRATEGY2_H |
|
30 |
|
31 #include "CSipHeaderStrategyBase.h" |
|
32 |
|
33 NONSHARABLE_CLASS(CSipAllowEventsStrategy2) |
|
34 : public CSipHeaderStrategyBase |
|
35 { |
|
36 public: |
|
37 |
|
38 static CSipAllowEventsStrategy2* NewL( |
|
39 MSipClients& aSipClients, |
|
40 CSipHeaderStrategyBase* aNextStrategy, |
|
41 CSipHeaderStrategyBase* aNextStrategy2); |
|
42 |
|
43 static CSipAllowEventsStrategy2* NewLC( |
|
44 MSipClients& aSipClients, |
|
45 CSipHeaderStrategyBase* aNextStrategy, |
|
46 CSipHeaderStrategyBase* aNextStrategy2); |
|
47 |
|
48 ~CSipAllowEventsStrategy2 (); |
|
49 |
|
50 public: // From CSipHeaderStrategyBase |
|
51 |
|
52 CSIPResponse* ApplyL( |
|
53 CSIPRequest& aRequest, |
|
54 RArray<TUid>& aUids, |
|
55 TBool& aContinueSearch, |
|
56 CSIPClientResolver2& aClientResolver2 ); |
|
57 |
|
58 protected: // From CSipHeaderStrategyBase |
|
59 |
|
60 TBool MatchResolvedClientL( CSIPResolvedClient2& aClient, |
|
61 CSIPRequest& aRequest, |
|
62 TUid& aClientUid, |
|
63 const CUri8& aUri8 ); |
|
64 |
|
65 private: |
|
66 |
|
67 CSipAllowEventsStrategy2( |
|
68 MSipClients& aSipClients, |
|
69 CSipHeaderStrategyBase* aNextStrategy, |
|
70 CSipHeaderStrategyBase* aNextStrategy2); |
|
71 |
|
72 private: // Data |
|
73 |
|
74 RStringF iEventHeaderName; |
|
75 |
|
76 private: // For testing purposes |
|
77 |
|
78 UNIT_TEST(CSipAllowEventsStrategy2Test) |
|
79 }; |
|
80 |
|
81 #endif // CSIPALLOWEVENTSSTRATEGY2_H |
|
82 |
|
83 // End of File |