|         |      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 #include "msgsendinterface.h" | 
|         |     20 #include "msgserviceviewmanager.h" | 
|         |     21  | 
|         |     22 //---------------------------------------------------------------------------- | 
|         |     23 // MsgSendInterface::MsgSendInterface | 
|         |     24 // @see header | 
|         |     25 //---------------------------------------------------------------------------- | 
|         |     26 MsgSendInterface::MsgSendInterface(MsgServiceViewManager* viewManager) | 
|         |     27 :XQServiceProvider(QLatin1String("messaging.com.nokia.symbian.IMessageSend"), | 
|         |     28         viewManager), | 
|         |     29 mViewManager(viewManager) | 
|         |     30     { | 
|         |     31     publishAll();     | 
|         |     32     } | 
|         |     33  | 
|         |     34 //---------------------------------------------------------------------------- | 
|         |     35 // MsgSendInterface::~MsgSendInterface | 
|         |     36 // @see header | 
|         |     37 //---------------------------------------------------------------------------- | 
|         |     38 MsgSendInterface::~MsgSendInterface() | 
|         |     39     { | 
|         |     40     } | 
|         |     41  | 
|         |     42 //---------------------------------------------------------------------------- | 
|         |     43 // MsgSendInterface::send | 
|         |     44 // @see header | 
|         |     45 //---------------------------------------------------------------------------- | 
|         |     46 void MsgSendInterface::send(const QString phoneNumber,  | 
|         |     47                             const qint32 contactId,  | 
|         |     48                             const QString displayName) | 
|         |     49     {    | 
|         |     50     mViewManager->send(phoneNumber,contactId,displayName);     | 
|         |     51     } | 
|         |     52  | 
|         |     53 //---------------------------------------------------------------------------- | 
|         |     54 // MsgSendInterface::send | 
|         |     55 // @see header | 
|         |     56 //---------------------------------------------------------------------------- | 
|         |     57 void MsgSendInterface::send(const QString phoneNumber,  | 
|         |     58                             const QString alias,  | 
|         |     59                             const QString bodyText) | 
|         |     60     {    | 
|         |     61     mViewManager->send(phoneNumber, alias, bodyText);     | 
|         |     62     } | 
|         |     63  | 
|         |     64 //---------------------------------------------------------------------------- | 
|         |     65 // MsgSendInterface::send | 
|         |     66 // @see header | 
|         |     67 //---------------------------------------------------------------------------- | 
|         |     68 void MsgSendInterface::send(const QVariantMap addressList,  | 
|         |     69               const QString bodyText) | 
|         |     70       { | 
|         |     71       mViewManager->send(addressList,bodyText);     | 
|         |     72       } | 
|         |     73 //EOF | 
|         |     74  |