messagingapp/msgservices/msgserviceapp/inc/msgviewinterface.h
changeset 37 518b245aa84c
equal deleted inserted replaced
25:84d9eb65b26f 37:518b245aa84c
       
     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 view service interface used for interfacing between
       
    15  *              QT highway and other applications.
       
    16  *
       
    17  */
       
    18 
       
    19 #ifndef __MSG_VIEW_INTERFACE_H__
       
    20 #define __MSG_VIEW_INTERFACE_H__
       
    21 
       
    22 #include <QObject>
       
    23 #include <xqserviceprovider.h>
       
    24 
       
    25 class MsgServiceViewManager;
       
    26 
       
    27 class MsgViewInterface : public XQServiceProvider
       
    28     {
       
    29     Q_OBJECT
       
    30     
       
    31 public:
       
    32     /**
       
    33      * Constructor
       
    34      */
       
    35     MsgViewInterface(MsgServiceViewManager* viewManager);
       
    36     
       
    37     /**
       
    38      * Destructor
       
    39      */
       
    40     ~MsgViewInterface();
       
    41     
       
    42 public slots:
       
    43     /**
       
    44      * Opens the appropriate viewer for a given message id.
       
    45      * @param msgId message Id
       
    46      */
       
    47     void view(int msgId);
       
    48 
       
    49 private:
       
    50     /**
       
    51      * Pointer to view manager. 
       
    52      * Not owned.
       
    53      */
       
    54     MsgServiceViewManager* mViewManager;
       
    55     };
       
    56 
       
    57 #endif /* __MSG_VIEW_INTERFACE_H__ */