emailuis/nmailui/inc/nmviewerserviceinterface.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 03 May 2010 12:23:15 +0300
changeset 20 ecc8def7944a
parent 18 578830873419
child 47 f83bd4ae1fe3
permissions -rw-r--r--
Revision: 201015 Kit: 201018

/*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: NMail application service interface used for viewing a mail
*              according to given id. The service utilizes the Qt highway framework.
*
*/

#ifndef NMVIEWERSERVICEINTERFACE_H_
#define NMVIEWERSERVICEINTERFACE_H_

//  INCLUDES
#include <QObject>
#ifdef Q_OS_SYMBIAN
#include <xqserviceprovider.h>
#else
#define NM_WINS_ENV
#include <QVariant>
#endif


//  FORWARD DECLARATIONS
class HbView;
class NmApplication;
class NmUiEngine;
class NmId;

#ifndef NM_WINS_ENV
class NmViewerServiceInterface : public XQServiceProvider
#else
class NmViewerServiceInterface : public QObject
#endif
{
    Q_OBJECT

public:

    NmViewerServiceInterface(QObject *parent,
                              NmApplication *application,
                              NmUiEngine &uiEngine);

    ~NmViewerServiceInterface();


public slots:

    void viewMessage(QVariant mailboxId, QVariant folderId, QVariant messageId);


private:

    NmApplication *mApplication; // Not owned
    NmUiEngine &mUiEngine;
    int mAsyncReqId;
};

#endif /* NMVIEWERSERVICEINTERFACE_H_ */