37
|
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 service interface used for interfacing between
|
|
15 |
* QT highway and other applications.
|
|
16 |
*
|
|
17 |
*/
|
|
18 |
|
|
19 |
#ifndef MSGSENDINTERFACE_H_
|
|
20 |
#define MSGSENDINTERFACE_H_
|
|
21 |
|
|
22 |
// INCLUDES
|
|
23 |
#include <xqserviceprovider.h>
|
|
24 |
|
|
25 |
// FORWARD DECLARATIONS
|
|
26 |
class MsgServiceViewManager;
|
|
27 |
|
|
28 |
class MsgSendInterface : public XQServiceProvider
|
|
29 |
{
|
|
30 |
Q_OBJECT
|
|
31 |
|
|
32 |
public:
|
|
33 |
/*
|
|
34 |
* Constructor
|
|
35 |
*/
|
|
36 |
MsgSendInterface(MsgServiceViewManager* viewManager);
|
|
37 |
|
|
38 |
/*
|
|
39 |
* Destructor
|
|
40 |
*/
|
|
41 |
~MsgSendInterface();
|
|
42 |
|
|
43 |
public slots:
|
|
44 |
|
|
45 |
/**
|
|
46 |
* Send message.
|
|
47 |
* @param phoneNumber phone number.
|
|
48 |
* @param contactId contactId.
|
|
49 |
* @param displayName display name.
|
|
50 |
*/
|
|
51 |
void send(const QString phoneNumber, const qint32 contactId,
|
|
52 |
const QString displayName);
|
|
53 |
|
|
54 |
/**
|
|
55 |
* Send message.
|
|
56 |
* @param phoneNumber phone number.
|
|
57 |
* @param alias alias name.
|
|
58 |
* @param bodyText body text.
|
|
59 |
*/
|
|
60 |
void send(const QString phoneNumber, const QString alias,
|
|
61 |
const QString bodyText);
|
|
62 |
|
|
63 |
/**
|
|
64 |
* Send message.
|
|
65 |
* @param addressList list of phone numbers and displaynames.
|
|
66 |
* key is the phone number and value is the display name.
|
|
67 |
* @param bodyText body text.
|
|
68 |
*/
|
|
69 |
void send(const QVariantMap addressList,
|
|
70 |
const QString bodyText = QString());
|
|
71 |
|
|
72 |
private:
|
|
73 |
|
|
74 |
/**
|
|
75 |
* Pointer to view manager
|
|
76 |
* Not owned.
|
|
77 |
*/
|
|
78 |
MsgServiceViewManager* mViewManager;
|
|
79 |
};
|
|
80 |
|
|
81 |
|
|
82 |
#endif /* MSGSENDINTERFACE_H_ */
|