messagingapp/msgservices/msgserviceapp/src/msgsendinterface.cpp
changeset 27 e4592d119491
child 44 36f374c67aa8
equal deleted inserted replaced
25:84d9eb65b26f 27:e4592d119491
       
     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 //EOF
       
    65