|
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 the License "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: Defination of class CMessageDetail |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __MESSAGEDETAIL_H |
|
21 #define __MESSAGEDETAIL_H |
|
22 |
|
23 |
|
24 /** |
|
25 * This class provides function to get the message details. |
|
26 * For SMS message, it gives bodytext, sender and recipient info. |
|
27 * For MMS, it gives list of attachment information, recipient, sender. |
|
28 */ |
|
29 class CMessageDetail : public CBase |
|
30 { |
|
31 |
|
32 public: |
|
33 /** |
|
34 * Two-phased constructor. |
|
35 * @param aServerSession It is an object of CMsvSession Class which |
|
36 * represents a channel of communication between a client thread |
|
37 * and the Message Server thread . |
|
38 * @return CMessageDetail |
|
39 */ |
|
40 |
|
41 static CMessageDetail* NewL( CMsvSession& aServerSession ); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 ~CMessageDetail(); |
|
47 |
|
48 private: |
|
49 |
|
50 /** |
|
51 * Constructor. |
|
52 * @param aServerSession It is an object of CMsvSession Class which |
|
53 * represents a channel of communication between a client thread |
|
54 * and the Message Server thread . |
|
55 */ |
|
56 CMessageDetail( CMsvSession& aServerSession ); |
|
57 |
|
58 |
|
59 public: |
|
60 |
|
61 /** |
|
62 * Gets the message details. |
|
63 * Issues the synchronous or asynchronous request for function call |
|
64 * depending on the aNotifyCallback. |
|
65 * @param aMessageId Message Entry Id |
|
66 * @param aMessageDetail Return parameter for synchronous call |
|
67 * @return void |
|
68 */ |
|
69 void GetMessageDetailL( TMsvId aMessageId, |
|
70 CMessageDetailInfo*& aMessageDetail ); |
|
71 |
|
72 private: |
|
73 |
|
74 /** |
|
75 * Starts get detail request |
|
76 * @return void |
|
77 */ |
|
78 void ProcessRequestL(); |
|
79 |
|
80 /** |
|
81 * Gets the Sender Recipient information for SMS |
|
82 * @return void |
|
83 */ |
|
84 void GetSmsSenderRecipientL(); |
|
85 |
|
86 /** |
|
87 * Gets the Sender Recipient information for MMS |
|
88 * @return void |
|
89 */ |
|
90 void GetMmsSenderRecipientL(); |
|
91 |
|
92 |
|
93 private: |
|
94 |
|
95 /** |
|
96 * Represents a channel of communication between a client thread |
|
97 * and the Message Server thread |
|
98 */ |
|
99 CMsvSession& iServerSession; |
|
100 |
|
101 /** |
|
102 * Message Id |
|
103 */ |
|
104 TMsvId iMessageId; |
|
105 |
|
106 /** |
|
107 * Message detail |
|
108 */ |
|
109 CMessageDetailInfo* iMessageDetail; |
|
110 }; |
|
111 |
|
112 |
|
113 #endif __MESSAGEDETAIL_H |