messagingapp/msgui/msgapp/src/msgsendserviceinterface.cpp
changeset 23 238255e8b033
equal deleted inserted replaced
5:4697dfb2d7ad 23:238255e8b033
       
     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 Application Launcher interface used for interfacing between
       
    15  *              QT highway and other applications
       
    16  *
       
    17  */
       
    18 
       
    19 #include "msgsendserviceinterface.h"
       
    20 #include "msgviewmanager.h"
       
    21 //INCLUDES
       
    22 
       
    23 MsgSendServiceInterface::MsgSendServiceInterface(QObject* parent, MsgViewManager* manager)
       
    24 :XQServiceProvider( QLatin1String("com.nokia.services.hbserviceprovider.imessage.send"),parent),
       
    25 mViewManager(manager)
       
    26     {
       
    27     publishAll();    
       
    28     }
       
    29 
       
    30 MsgSendServiceInterface::~MsgSendServiceInterface()
       
    31     {
       
    32     }
       
    33 
       
    34 void MsgSendServiceInterface::send(QVariant data)
       
    35     {   
       
    36     mViewManager->setServiceRequest(true);
       
    37     mViewManager->send(data);    
       
    38     }