|
1 /* |
|
2 * Copyright (c) 2005-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 : MSipDialogs.h |
|
16 * Part of : SIPDialogs |
|
17 * Version : SIP/4.0 |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 /** |
|
25 @internalComponent |
|
26 */ |
|
27 |
|
28 #ifndef MSIPDIALOGS_H |
|
29 #define MSIPDIALOGS_H |
|
30 |
|
31 #include "SipStackServerDefs.h" |
|
32 |
|
33 class MTransactionOwner; |
|
34 class CSIPRequest; |
|
35 class CSIPResponse; |
|
36 |
|
37 |
|
38 /** |
|
39 * This class defines transaction owner for a dialog. |
|
40 * Transaction uses this class. |
|
41 */ |
|
42 class MSipDialogs |
|
43 { |
|
44 public: |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 virtual ~MSipDialogs() { } |
|
50 |
|
51 /** |
|
52 * Method for getting transaction owner for the dialog defined |
|
53 * in the request. If request is malformed, call-id matches one |
|
54 * of dialogs but to-tag or from-tag not match dialog's defined ones, |
|
55 * error response is created and transaction owner is equal to 0. |
|
56 * |
|
57 * @param aRequest SIP request |
|
58 * @param aResponse SIP response |
|
59 * @return aTransactionOwner Transaction owner or 0 if dialog not exists. |
|
60 */ |
|
61 virtual MTransactionOwner* TransactionOwnerL( |
|
62 CSIPRequest& aRequest, |
|
63 CSIPResponse** aResponse) = 0; |
|
64 }; |
|
65 |
|
66 #endif // MSIPDIALOGS_H |
|
67 |
|
68 // End of File |