emailuis/nmailui/inc/nmviewerserviceinterface.h
branchRCL_3
changeset 63 d189ee25cf9d
equal deleted inserted replaced
61:dcf0eedfc1a3 63:d189ee25cf9d
       
     1 /*
       
     2 * Copyright (c) 2010 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: NMail application service interface used for viewing a mail
       
    15 *              according to given id. The service utilizes the Qt highway framework.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef NMVIEWERSERVICEINTERFACE_H_
       
    20 #define NMVIEWERSERVICEINTERFACE_H_
       
    21 
       
    22 //  INCLUDES
       
    23 #include <QObject>
       
    24 #include <xqserviceprovider.h>
       
    25 
       
    26 //  FORWARD DECLARATIONS
       
    27 class NmApplication;
       
    28 class NmUiEngine;
       
    29 class NmId;
       
    30 
       
    31 class NmViewerServiceInterface : public XQServiceProvider
       
    32 {
       
    33     Q_OBJECT
       
    34 public:
       
    35     NmViewerServiceInterface(QObject *parent,
       
    36                               NmApplication *application,
       
    37                               NmUiEngine &uiEngine);
       
    38     ~NmViewerServiceInterface();
       
    39 
       
    40 
       
    41 public slots:
       
    42     void viewMessage(QVariant mailboxId, QVariant folderId, QVariant messageId);
       
    43 
       
    44 private:
       
    45     NmApplication *mApplication; // Not owned
       
    46     NmUiEngine &mUiEngine;
       
    47     int mAsyncReqId;
       
    48 };
       
    49 
       
    50 #endif /* NMVIEWERSERVICEINTERFACE_H_ */