equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 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:Message send functionality handler. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MSG_SEND_MANAGER_H |
|
19 #define MSG_SEND_MANAGER_H |
|
20 |
|
21 #include <QObject> |
|
22 |
|
23 #include "servicediscoveryaction.h" |
|
24 |
|
25 class ConvergedMessage; |
|
26 class MessageServiceAction; |
|
27 |
|
28 /** |
|
29 * This class manages the message send functionality. |
|
30 * It loads service plugins and handles send functionality. |
|
31 */ |
|
32 class MsgSendManager : public QObject |
|
33 { |
|
34 Q_OBJECT |
|
35 |
|
36 public: |
|
37 /** |
|
38 * Constructor |
|
39 */ |
|
40 MsgSendManager(); |
|
41 |
|
42 /** |
|
43 * Destructor |
|
44 */ |
|
45 ~MsgSendManager(); |
|
46 /** |
|
47 * Send message |
|
48 * @param msg Message to be sent |
|
49 * @param serviceId service id of the service |
|
50 */ |
|
51 void send(const ConvergedMessage& msg, const QString serviceId); |
|
52 |
|
53 signals: |
|
54 /** |
|
55 * Signal emitted when an error is generated. |
|
56 * @param error The error as a string to be displayed on the screen. |
|
57 */ |
|
58 |
|
59 void serviceError(const QString& error); |
|
60 |
|
61 private: |
|
62 // List of service plugins |
|
63 MessageServiceAction* msgAction; |
|
64 |
|
65 }; |
|
66 |
|
67 #endif // MSG_SEND_MANAGER_H |
|
68 |
|
69 // EOF |