messagingapp/msgservices/msgserviceapp/inc/msgsendinterface.h
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 #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 private:
       
    64     
       
    65     /**
       
    66      * Pointer to view manager
       
    67      * Not owned.
       
    68      */
       
    69     MsgServiceViewManager* mViewManager;
       
    70     };
       
    71 
       
    72 
       
    73 #endif /* MSGSENDINTERFACE_H_ */