1 /* |
|
2 * Copyright (c) 2007 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: Definition of the class CPbkxRclCbRSender. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPBKXRCLCBRSENDER_H |
|
20 #define CPBKXRCLCBRSENDER_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 class CPbkContactItem; |
|
25 class CAiwServiceHandler; |
|
26 |
|
27 /** |
|
28 * Class that sends call back request using CAiwServiceHandler. |
|
29 * |
|
30 * @lib pbkxrclengine.lib |
|
31 * @since 3.1 |
|
32 */ |
|
33 class CPbkxRclCbRSender : public CBase |
|
34 { |
|
35 public: // constructor and destructor |
|
36 |
|
37 /** |
|
38 * Two-phased constructor. |
|
39 * |
|
40 * @return Created object. |
|
41 */ |
|
42 static CPbkxRclCbRSender* NewL(); |
|
43 |
|
44 /** |
|
45 * Two-phased constructor. |
|
46 * |
|
47 * Leaves pointer to the created object in cleanupstack. |
|
48 * |
|
49 * @return Created object. |
|
50 */ |
|
51 static CPbkxRclCbRSender* NewLC(); |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 virtual ~CPbkxRclCbRSender(); |
|
57 |
|
58 public: // new methods |
|
59 |
|
60 /** |
|
61 * Sends callback request to the given contact. |
|
62 * |
|
63 * @param aContactItem Contact item for which callback request is sent. |
|
64 */ |
|
65 void SendCallbackRequestL( CPbkContactItem& aContactItem ); |
|
66 |
|
67 private: // constructors |
|
68 |
|
69 /** |
|
70 * Constructor. |
|
71 */ |
|
72 CPbkxRclCbRSender(); |
|
73 |
|
74 /** |
|
75 * Second-phase constructor. |
|
76 */ |
|
77 void ConstructL(); |
|
78 |
|
79 private: // data |
|
80 |
|
81 // Service handler for sending the callback request. Owned. |
|
82 CAiwServiceHandler* iServiceHandler; |
|
83 |
|
84 }; |
|
85 |
|
86 #endif |
|
87 |
|