emailuis/nmailui/inc/nmviewerserviceinterface.h
changeset 18 578830873419
child 20 ecc8def7944a
equal deleted inserted replaced
4:e7aa27f58ae1 18:578830873419
       
     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 #ifdef Q_OS_SYMBIAN
       
    25 #include <xqserviceprovider.h>
       
    26 #else
       
    27 #define NM_WINS_ENV
       
    28 #include <QVariant>
       
    29 #endif
       
    30 
       
    31 
       
    32 //  FORWARD DECLARATIONS
       
    33 class HbView;
       
    34 class NmApplication;
       
    35 class NmUiEngine;
       
    36 class NmId;
       
    37 
       
    38 #ifndef NM_WINS_ENV
       
    39 class NmViewerServiceInterface : public XQServiceProvider
       
    40 #else
       
    41 class NmViewerServiceInterface : public QObject
       
    42 #endif
       
    43 {
       
    44     Q_OBJECT
       
    45 
       
    46 public:
       
    47 
       
    48     NmViewerServiceInterface(QObject *parent,
       
    49                               NmApplication *application,
       
    50                               NmUiEngine &uiEngine);
       
    51 
       
    52     ~NmViewerServiceInterface();
       
    53 
       
    54 
       
    55 public slots:
       
    56 
       
    57     void viewMessage(QVariant mailboxId, QVariant folderId, QVariant messageId);
       
    58 
       
    59 
       
    60 private:
       
    61 
       
    62     NmApplication *mApplication; // Not owned
       
    63     NmUiEngine &mUiEngine;
       
    64     int mAsyncReqId;
       
    65 };
       
    66 
       
    67 #endif /* NMVIEWERSERVICEINTERFACE_H_ */