|
1 /* |
|
2 * Copyright (c) 2004 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: Implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <sipclienttransaction.h> |
|
19 #include <sipnotifydialogassoc.h> |
|
20 #include <sipdialog.h> |
|
21 #include <sipregistrationbinding.h> |
|
22 |
|
23 #include "CTcSIPConnectionContainer.h" |
|
24 #include "TCmdSendNotify.h" |
|
25 #include "SIPConstants.h" |
|
26 |
|
27 /** |
|
28 * INPUT: |
|
29 * Headers: - |
|
30 * Parameters: - |
|
31 * IDs: NotifyDialogId |
|
32 * |
|
33 * OUTPUT: |
|
34 * Parameters: - |
|
35 * IDs: TransactionId, DialogId |
|
36 */ |
|
37 void TCmdSendNotify::ExecuteL() |
|
38 { |
|
39 |
|
40 // Get SIP objects from registry |
|
41 CSIPNotifyDialogAssoc* notifyDialogAssoc = |
|
42 GetNotifyDialogAssocL( ); |
|
43 |
|
44 // -- Execution ----------------------------------------------------------- |
|
45 |
|
46 // Start SIP Invite transaction. |
|
47 CSIPClientTransaction* transaction = notifyDialogAssoc->SendNotifyL(); |
|
48 |
|
49 // -- Response creation --------------------------------------------------- |
|
50 |
|
51 AddIdResponseL( KTransactionId, transaction ); |
|
52 AddIdResponseL( KDialogId, notifyDialogAssoc->Dialog() ); |
|
53 } |
|
54 |
|
55 TBool TCmdSendNotify::Match( const TTcIdentifier& aId ) |
|
56 { |
|
57 return TTcSIPCommandBase::Match( aId, _L8("SendNotify") ); |
|
58 } |
|
59 |
|
60 TTcCommandBase* TCmdSendNotify::CreateL( MTcTestContext& aContext ) |
|
61 { |
|
62 return new( ELeave ) TCmdSendNotify( aContext ); |
|
63 } |