messagingapp/msgservices/msgserviceapp/src/msgviewinterface.cpp
changeset 27 e4592d119491
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 view service interface used for interfacing between
       
    15  *              QT highway and other applications.
       
    16  *
       
    17  */
       
    18 
       
    19 #include "msgservicewindow.h"
       
    20 #include "msgviewinterface.h"
       
    21 #include "msgserviceviewmanager.h"
       
    22 
       
    23 //----------------------------------------------------------------------------
       
    24 // MsgViewInterface::MsgViewInterface
       
    25 // @see header
       
    26 //----------------------------------------------------------------------------
       
    27 MsgViewInterface::MsgViewInterface(MsgServiceViewManager* viewManager)
       
    28 :XQServiceProvider( QLatin1String("messaging.com.nokia.symbian.IMessageView"), 
       
    29         viewManager),
       
    30  mViewManager(viewManager)
       
    31     {
       
    32     publishAll();    
       
    33     }
       
    34 
       
    35 //----------------------------------------------------------------------------
       
    36 // MsgViewInterface::~MsgViewInterface
       
    37 // @see header
       
    38 //----------------------------------------------------------------------------
       
    39 MsgViewInterface::~MsgViewInterface()
       
    40     {
       
    41     }
       
    42 
       
    43 //----------------------------------------------------------------------------
       
    44 // MsgViewInterface::view
       
    45 // @see header
       
    46 //----------------------------------------------------------------------------
       
    47 void MsgViewInterface::view(int msgId)
       
    48     {
       
    49     mViewManager->view(msgId);
       
    50     }