messagingapp/msgservices/msgserviceapp/inc/msgsendinterface.h
author hgs
Tue, 07 Sep 2010 13:28:39 +0530
changeset 62 fdbe8253b596
parent 37 518b245aa84c
permissions -rw-r--r--
201035_03

/*
 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
 * which accompanies this distribution, and is available
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
 *
 * Initial Contributors:
 * Nokia Corporation - initial contribution.
 *
 * Contributors:
 * 
 * Description: Message send service interface used for interfacing between
 *              QT highway and other applications.
 *
 */

#ifndef MSGSENDINTERFACE_H_
#define MSGSENDINTERFACE_H_

// INCLUDES
#include <xqserviceprovider.h>

// FORWARD DECLARATIONS
class MsgServiceViewManager;

class MsgSendInterface : public XQServiceProvider
    {
    Q_OBJECT
    
public:
    /*
     * Constructor
     */
    MsgSendInterface(MsgServiceViewManager* viewManager);
    
    /*
     * Destructor
     */
    ~MsgSendInterface();
    
public slots:
    
    /**
     * Send message.
     * @param phoneNumber phone number.
     * @param contactId contactId.
     * @param displayName display name.
     */
    void send(const QString phoneNumber, const qint32 contactId, 
            const QString displayName);
    
    /**
     * Send message.
     * @param phoneNumber phone number.
     * @param alias alias name.
     * @param bodyText body text.
     */
    void send(const QString phoneNumber, const QString alias, 
                            const QString bodyText);

    /**
     * Send message.
     * @param addressList list of phone numbers and displaynames. 
     * key is the phone number and value is the display name.
     * @param bodyText body text.
     */
    void send(const QVariantMap addressList, 
              const QString bodyText = QString());

private:
    
    /**
     * Pointer to view manager
     * Not owned.
     */
    MsgServiceViewManager* mViewManager;
    };


#endif /* MSGSENDINTERFACE_H_ */