equal
deleted
inserted
replaced
14 * Description: |
14 * Description: |
15 * |
15 * |
16 */ |
16 */ |
17 #include "nmframeworkadapterheaders.h" |
17 #include "nmframeworkadapterheaders.h" |
18 |
18 |
19 #include "nmfwamessagecreationoperation.h" |
|
20 |
19 |
21 /*! |
20 /*! |
22 \class NmFwaMessageCreationOperation |
21 \class NmFwaMessageCreationOperation |
23 |
22 |
24 \brief NmFwaMessageCreationOperation is an async operation which creates a new message. |
23 \brief NmFwaMessageCreationOperation is an async operation which creates a new message. |
48 */ |
47 */ |
49 NmFwaMessageCreationOperation::~NmFwaMessageCreationOperation() |
48 NmFwaMessageCreationOperation::~NmFwaMessageCreationOperation() |
50 { |
49 { |
51 doCancelOperation(); |
50 doCancelOperation(); |
52 delete mMessage; |
51 delete mMessage; |
|
52 NMLOG("NmFwaMessageCreationOperation::~NmFwaMessageCreationOperation --->"); |
53 } |
53 } |
54 |
54 |
55 /*! |
55 /*! |
56 Called after base object construction via timer event, runs the async operation. |
56 Called after base object construction via timer event, runs the async operation. |
57 |
57 |
142 NmId NmFwaMessageCreationOperation::getMessageId() |
142 NmId NmFwaMessageCreationOperation::getMessageId() |
143 { |
143 { |
144 NmId messageId; |
144 NmId messageId; |
145 |
145 |
146 if (mMessage) { |
146 if (mMessage) { |
147 messageId = mMessage->envelope().id(); |
147 messageId = mMessage->envelope().messageId(); |
148 } |
148 } |
149 |
149 |
150 return messageId; |
150 return messageId; |
151 } |
151 } |
152 |
152 |
174 fsMessage = NULL; |
174 fsMessage = NULL; |
175 |
175 |
176 completeOperation(NmNoError); |
176 completeOperation(NmNoError); |
177 } |
177 } |
178 else if (status == TFSProgress::EFSStatus_RequestCancelled) { |
178 else if (status == TFSProgress::EFSStatus_RequestCancelled) { |
179 operationCancelled(); |
179 completeOperation(NmCancelError); |
180 } |
180 } |
181 else { |
181 else { |
182 completeOperation(NmGeneralError); |
182 completeOperation(NmGeneralError); |
183 } |
183 } |
184 } |
184 } |
185 } |
185 } |
|
186 |